1. 13 1月, 2012 1 次提交
    • A
      Fix qapi code generation fix · 19bf7c87
      Avi Kivity 提交于
      The fixes to qapi code generation had multiple bugs:
      - the Null class used to drop output was missing some methods
      - in some scripts it was never instantiated, leading to a None return,
        which is missing even more methods
      - the --source and --header options were swapped
      
      Luckily, all those bugs were hidden by a makefile bug which caused the
      old behaviour (with the race) to be invoked.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      19bf7c87
  2. 27 12月, 2011 1 次提交
    • A
      Fix qapi code generation wrt parallel build · 8d3bc517
      Avi Kivity 提交于
      Make's multiple output syntax
      
        x.c x.h: x.template
             gen < x.template
      
      actually invokes the command once for x.c and once for x.h (with differing $@
      in each invocation).  During a parallel build, the two commands may be invoked
      in parallel; this opens up a race, where the second invocation trashes a file
      supposedly produced during the first, and now in use by a dependent command.
      
      The various qapi code generators are susceptible to this; fix by making them
      generate just one file per invocation.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8d3bc517
  3. 04 10月, 2011 1 次提交
  4. 22 7月, 2011 1 次提交
    • M
      qapi: add qapi-visit.py code generator · 06d64c62
      Michael Roth 提交于
      This is the code generator for qapi visiter functions used to
      marshal/unmarshal/dealloc qapi types. It generates the following 2
      files:
      
        $(prefix)qapi-visit.c: visiter function for a particular c type, used
                               to automagically convert qobjects into the
                               corresponding C type and vice-versa, and well
                               as for deallocation memory for an existing C
                               type
      
        $(prefix)qapi-visit.h: declarations for previously mentioned visiter
                               functions
      
      $(prefix) is used as decribed for qapi-types.py
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@gmail.com>
      06d64c62