1. 19 7月, 2011 1 次提交
    • D
      Quieten build & ensure API build scripts exit with non-zero status · 8665f855
      Daniel P. Berrange 提交于
      The current API build scripts will continue and exit with a zero
      status even if they find problems. This has been the cause of many
      build problems, or hidden build errors, in the past. Change the
      scripts so they always exit with a non-zero status for any problems
      they do not understand. Also turn off all debug output by default
      so they respect $(AM_V_GEN)
      
      * docs/Makefile.am: Use $(AM_V_GEN) for API/HTML scripts
      * docs/apibuild.py, python/generator.py: Exit with non-zero status
        if problems are found. Also be silent, not outputting any debug
        messages.
      * src/Makefile.am: Use $(AM_V_GEN) for ESX generator
      * python/Makefile.am: Tweak rule
      8665f855
  2. 22 6月, 2011 1 次提交
    • D
      Fix to python API extractor and API doc generation · d42ea21a
      Daniel Veillard 提交于
      This fixes a number of issues most of them raised by Eric Blake on the
      generated documentation output:
         - parsing of "long long int" and similar
         - add parsing of unions within a struct
         - remove spurious " * " fron comments on structure fields and enums
         - fix concatenation of base type and name in arrays
         - extend XSLT to cope with union in structs
      
      * docs/apibuild.py: fix and extend API extraction tool
      * docs/newapi.xsl: extend the stylesheets to cope with union in
        public structures
      d42ea21a
  3. 01 6月, 2011 1 次提交
  4. 31 5月, 2011 1 次提交
    • M
      Ignore backward compatibility macros in apibuild.py · 1767c8d7
      Matthias Bolte 提交于
      This fixes this three warnings from the parser by allowing the parser
      to ignore some macros in the same way as it can ignore functions.
      
      Parsing ./../include/libvirt/libvirt.h
      Misformatted macro comment for _virSchedParameter
       Expecting '* _virSchedParameter:' got '* virSchedParameter:'
      Misformatted macro comment for _virBlkioParameter
       Expecting '* _virBlkioParameter:' got '* virBlkioParameter:'
      Misformatted macro comment for _virMemoryParameter
       Expecting '* _virMemoryParameter:' got '* virMemoryParameter:'
      1767c8d7
  5. 16 5月, 2011 1 次提交
    • D
      Introduce yet another migration version in API. · 65043d2d
      Daniel P. Berrange 提交于
      Migration just seems to go from bad to worse. We already had to
      introduce a second migration protocol when adding the QEMU driver,
      since the one from Xen was insufficiently flexible to cope with
      passing the data the QEMU driver required.
      
      It turns out that this protocol still has some flaws that we
      need to address. The current sequence is
      
       *  Src: DumpXML
                - Generate XML to pass to dst
      
       *  Dst: Prepare
                - Get ready to accept incoming VM
                - Generate optional cookie to pass to src
      
       *  Src: Perform
                - Start migration and wait for send completion
                - Kill off VM if successful, resume if failed
      
       *  Dst: Finish
                - Wait for recv completion and check status
                - Kill off VM if unsuccessful
      
      The problems with this are:
      
       - Since the first step is a generic 'DumpXML' call, we can't
         add in other migration specific data. eg, we can't include
         any VM lease data from lock manager plugins
       - Since the first step is a generic 'DumpXML' call, we can't
         emit any 'migration begin' event on the source, or have
         any hook that runs right at the start of the process
       - Since there is no final step on the source, if the Finish
         method fails to receive all migration data & has to kill
         the VM, then there's no way to resume the original VM
         on the source
      
      This patch attempts to introduce a version 3 that uses the
      improved 5 step sequence
      
       *  Src: Begin
                - Generate XML to pass to dst
                - Generate optional cookie to pass to dst
      
       *  Dst: Prepare
                - Get ready to accept incoming VM
                - Generate optional cookie to pass to src
      
       *  Src: Perform
                - Start migration and wait for send completion
                - Generate optional cookie to pass to dst
      
       *  Dst: Finish
                - Wait for recv completion and check status
                - Kill off VM if failed, resume if success
                - Generate optional cookie to pass to src
      
       *  Src: Confirm
                - Kill off VM if success, resume if failed
      
      The API is designed to allow both input and output cookies
      in all methods where applicable. This lets us pass around
      arbitrary extra driver specific data between src & dst during
      migration. Combined with the extra 'Begin' method this lets
      us pass lease information from source to dst at the start of
      migration
      
      Moving the killing of the source VM out of Perform and
      into Confirm, means we can now recover if the dst host
      can't successfully Finish receiving migration data.
      65043d2d
  6. 18 2月, 2011 1 次提交
  7. 17 2月, 2011 1 次提交
  8. 13 10月, 2010 1 次提交
    • D
      Fixes for documentation extraction · 0df67151
      Daniel Veillard 提交于
      * include/libvirt/libvirt.h.in: some of the function type description
        were broken so they could not be automatically documented
      * src/util/event.c docs/apibuild.py: event.c exports one public API
        so it needs to be scanned too, avoid a few warnings
      0df67151
  9. 23 3月, 2010 1 次提交
  10. 25 2月, 2010 1 次提交
  11. 06 11月, 2009 1 次提交
    • P
      Add sentinel attribute for NULL terminated arg lists · 649bcd72
      Paolo Bonzini 提交于
      * src/internal.h (ATTRIBUTE_SENTINEL): New, it's a ggc feature and
        protected as such
      * src/util/buf.c (virBufferStrcat): Use it.
      * src/util/ebtables.c (ebtablesAddRemoveRule): Use it.
      * src/util/iptables.c (iptableAddRemoveRule: Use it.
      * src/util/qparams.h (new_qparam_set, append_qparams): Use it.
      * docs/apibuild.py: avoid breaking the API generator with that new
        internal keyword macro
      649bcd72
  12. 06 10月, 2009 1 次提交
  13. 02 10月, 2009 1 次提交
  14. 28 9月, 2009 1 次提交
    • D
      Fix API doc extractor to stop munging comment formatting · 5486abfe
      Daniel P. Berrange 提交于
      The python method help docs are copied across from the C
      funtion comments, but in the process all line breaks and
      indentation was being lost. This made the resulting text
      and code examples completely unreadable. Both the API
      doc extractor and the python generator were destroying
      whitespace & this fixes them to preserve it exactly.
      
      * docs/apibuild.py: Preserve all whitespace when extracting
        function comments. Print function comment inside a <![CDATA[
        section to fully preserve all whitespace. Look for the
        word 'returns' to describe return values, instead of 'return'
        to avoid getting confused with code examples including the
        C 'return' statement.
      * python/generator.py: Preserve all whitespace when printing
        function help docs
      * src/libvirt.c: Change any return parameter indicated by
        'return' to be 'returns', to avoid confusing the API extractor
      * docs/libvirt-api.xml: Re-build for fixed descriptions
      5486abfe
  15. 21 9月, 2009 1 次提交
    • D
      Move all shared utility files to src/util/ · 1355e055
      Daniel P. Berrange 提交于
      * src/bridge.c, src/bridge.h, src/buf.c, src/buf.h, src/cgroup.c,
        src/cgroup.h, src/conf.c, src/conf.h, src/event.c, src/event.h,
        src/hash.c, src/hash.h, src/hostusb.c, src/hostusb.h,
        src/iptables.c, src/iptables.h, src/logging.c, src/logging.h,
        src/memory.c, src/memory.h, src/pci.c, src/pci.h, src/qparams.c,
        src/qparams.h, src/stats_linux.c, src/stats_linux.h,
        src/threads-pthread.c, src/threads-pthread.h, src/threads-win32.c,
        src/threads-win32.h, src/threads.c, src/threads.h, src/util.c,
        src/util.h, src/uuid.c, src/uuid.h, src/virterror.c,
        src/virterror_internal.h, src/xml.c, src/xml.h: Move all files
        into src/util/
      * daemon/Makefile.am: Add -Isrc/util/ to build flags
      * src/Makefile.am: Add -Isrc/util/ to build flags and update for
        moved files
      * src/libvirt_private.syms: Export cgroup APIs since they're now
        in util rather than linking directly to drivers
      * src/xen/xs_internal.c: Disable bogus virEventRemoveHandle call
        when built under PROXY
      * proxy/Makefile.am: Update for changed file locations. Remove
        bogus build of event.c
      * tools/Makefile.am, tests/Makefile.am: Add -Isrc/util/ to build flags
      1355e055
  16. 02 8月, 2009 1 次提交
  17. 24 4月, 2009 1 次提交
    • D
      release of 0.6.3 · 9cae1d5e
      Daniel Veillard 提交于
      * NEWS configure.in libvirt.spec.in docs/*: release of 0.6.3
      * po/*: regenerated
      * src/libvirt.c src/virterror.c: fixed some function comments
      Daniel
      9cae1d5e
  18. 20 1月, 2009 1 次提交
  19. 25 11月, 2008 1 次提交
    • D
      Release of 0.5.0 · 517ff04b
      Daniel Veillard 提交于
      * configure.in docs/* NEWS: release of 0.5.0
      * po/*: updated from the translators and merged
      * docs/apibuild.py src/libvirt.c: avoid some warnings at doc
        generation time
      daniel
      517ff04b
  20. 25 7月, 2008 1 次提交
    • D
      Remove Xen centric comments, rebuild the docs · 01fd287b
      Daniel Veillard 提交于
      * include/libvirt/libvirt.h include/libvirt/libvirt.h.in:
        remove Xen centric comments patch from Guido Günther
      * docs/apibuild.py: ignore VIR_DEPRECATED
      * docs/libvirt-*.xml docs/html/libvirt-*.html: regenerated the
        documentation for the API
      Daniel
      01fd287b
  21. 14 3月, 2008 1 次提交
  22. 06 2月, 2008 1 次提交
  23. 14 8月, 2007 1 次提交
  24. 26 7月, 2007 1 次提交
  25. 24 7月, 2007 1 次提交
  26. 29 6月, 2007 1 次提交
  27. 27 6月, 2007 1 次提交
  28. 17 4月, 2007 1 次提交
  29. 16 3月, 2007 1 次提交
    • D
      * include/libvirt/libvirt.h[.in] include/libvirt/virterror.h · 635ae389
      Daniel Veillard 提交于
        proxy/libvirt_proxy.c qemud/Makefile.am qemud/conf.c qemud/conf.h
        qemud/dispatch.c qemud/internal.h qemud/protocol.h
        src/driver.h src/internal.h src/libvirt.c src/libvirt_sym.version
        src/proxy_internal.c src/proxy_internal.h src/qemu_internal.c
        src/test.c src/virsh.c src/virterror.c src/xen_internal.c
        src/xen_internal.h src/xend_internal.c src/xm_internal.c
        src/xml.h src/xs_internal.c: applied patch from Richard Jones
        adding virConnectGetCapabilities(), plus various small little
        fixes
      * docs/*: fixed the api extractor script and regenerated
      Daniel
      635ae389
  30. 15 2月, 2007 1 次提交
  31. 23 11月, 2006 1 次提交
    • D
      * docs//*: regenerated · 66ab526b
      Daniel Veillard 提交于
      * include/libvirt/libvirt.h include/libvirt/libvirt.h.in src/driver.h
        src/libvirt.c src/proxy_internal.c src/test.c src/virsh.c
        src/xen_internal.c src/xend_internal.c src/xm_internal.c
        src/xs_internal.c: added support for dumping core of domains
        assuming a xend with the latest patch to do so.
      Daniel
      66ab526b
  32. 19 9月, 2006 1 次提交
  33. 03 7月, 2006 1 次提交
  34. 14 6月, 2006 1 次提交
    • D
      * docs//*: rebuilt the documentation · 7efa1c11
      Daniel Veillard 提交于
      * src/driver.h src/libvirt.c src/test.c src/xen_internal.c
        src/xend_internal.c src/xs_internal.c: started to fix some of
        the driver related problem raised by Daniel Berrange, added a
        ver version field to drivers.
      Daniel
      7efa1c11
  35. 27 3月, 2006 1 次提交
    • D
      * doc/*: updated module list and rebuilt · 4faeeb10
      Daniel Veillard 提交于
      * include/libvirt.h include/libvirt.h.in: added intialization function
      * include/virterror.h src/virterror.c: one more error code
      * src/internal.h: first part of Jim's format checking
      * src/libvirt.c src/xen_internal.[ch] src/xend_internal.[ch]
        src/xs_internal.[ch]: initialization and registration of drivers
      Daniel
      4faeeb10
  36. 21 3月, 2006 1 次提交
  37. 21 2月, 2006 1 次提交
  38. 10 2月, 2006 2 次提交
  39. 18 1月, 2006 1 次提交