1. 02 9月, 2009 3 次提交
    • C
      Fix bugs in virDomainMigrate v2 code. · 6dfc042c
      Chris Lalancette 提交于
      Paolo Bonzini points out that in my refactoring of the code for
      virDomainMigrate(), I added a check for the return value from
      virDomainMigratePerform().  The problem is that we don't want to
      exit if we fail, we actually want to go on and do
      virDomainMigrateFinish2() with a non-0 return code to clean things
      up.  Remove the check.
      
      While reproducing this issue, I also noticed that we wouldn't
      always properly propagate an error message.  In particular, I
      found that if you blocked off the migration ports (with iptables)
      and then tried the migration, it would actually fail but we would
      get no failure output from Qemu.  Therefore, we would think we
      succeeded, and leave a huge mess behind us.  Execute the monitor
      command "info migrate", and look for a failure string in there
      as well.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      6dfc042c
    • M
      Secret manipulation public API implementation · b35f0131
      Miloslav Trmač 提交于
      * include/libvirt/virterror.h, src/virterror.c: Add VIR_ERR_INVALID_SECRET
        and VIR_FROM_SECRET
      * src/libvirt.c: Define stubs for every new public API
      b35f0131
    • M
      Secret manipulation internal API · eb42e0ab
      Miloslav Trmač 提交于
      * include/libvirt/virterror.h, src/virterror.c: Add VIR_WAR_NO_SECRET
      * src/libvirt_private.syms, src/datatypes.h, src/datatypes.c: Type
        virSecret struct definition and helper APIs
      * src/driver.h: Sub-driver API definitions for secrets
      * src/libvirt.c: Define new sub-driver for secrets
      eb42e0ab
  2. 01 9月, 2009 1 次提交
  3. 18 8月, 2009 1 次提交
    • C
      Fix up connection reference counting. · cb51aa48
      Chris Lalancette 提交于
      Currently the reference counting for connections is busted.  I
      first noticed it while trying to use virConnectRef; it would
      eventually cause a crash in the remote_internal driver, although
      that was really just a victim.  Really, we should only call the
      close callbacks on the methods when the references drop to 0.  To
      accomplish this, move all of the close callbacks into
      virUnrefConnect (since there are lots of internal users of that
      function), and arrange for virConnectClose to call that.
      
      V2: Make sure to drop the connection lock before we call the close
          callbacks, otherwise we could deadlock the daemon
      V3: Fix up a crash when we got an error from one of the drivers
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      cb51aa48
  4. 11 8月, 2009 1 次提交
  5. 06 8月, 2009 2 次提交
    • A
      Consolidate code for parsing the logging env · 63fbcc69
      Amy Griffis 提交于
      * src/logging.c src/logging.h src/libvirt_private.syms:
        define new functions virLogSetFromEnv and virLogParseDefaultPriority
      * qemud/qemud.c src/libvirt.c tests/eventtest.c: cleanup to use the
        unified functions
      63fbcc69
    • A
      Tighten libvirt's parsing of logging env · 22a1ec68
      Amy Griffis 提交于
      * src/libvirt.c src/logging.c: Don't convert high priority levels to the
        debug level. Don't parse LIBVIRT_LOG_FILTERS and LIBVIRT_LOG_OUTPUTS
        when they're set to the empty string. Warn when the user specifies an
        invalid value (empty string remains a noop).
      * po/POTFILES.in: src/logging.c now include translatable strings
      22a1ec68
  6. 02 8月, 2009 2 次提交
  7. 27 7月, 2009 1 次提交
    • C
      Don't allow NULL paths for BlockStats and InterfaceStats · 13f3d40c
      Cole Robinson 提交于
      Do the check in libvirt.c, to save drivers from the burden. This changes
      behavior slightly in the qemu driver: we no longer explictly error if
      passed an empty string. An error will still be thrown when the device
      lookup fails.
      13f3d40c
  8. 24 7月, 2009 2 次提交
    • E
      First version of the Power Hypervisor driver · a7a82f98
      Eduardo Otubo 提交于
      Features supported:
      - Connects to HMC/VIOS or IVM systems.
      - Life cycle commands (resume and shutdown).
      - dumpxml
      - 'list' and 'list --all'
      
      What is being implemented:
      - better and centralized control for UUID
      - definexml
      - CPU management commands
      
      * src/domain_conf.c src/domain_conf.h: first version of the driver
      * configure.in src/Makefile.am include/libvirt/virterror.h
        src/domain_conf.[ch] src/libvirt.c src/virterror.c: glue the driver
        in the general framework
      a7a82f98
    • M
      First version of the driver for VMWare ESX · e2aeee68
      Matthias Bolte 提交于
      * src/esx/esx_*.[ch]: the driver, uses a remote minimal SOAP client
        to talk to the VI services on ESX nodes.
      * configure.in include/libvirt/virterror.h src/Makefile.am src/driver.h
        src/libvirt.c src/virterror.c: glue in the new driver
      e2aeee68
  9. 22 7月, 2009 3 次提交
    • N
      Add support for physical memory access for QEmu · e4c48e02
      Nguyen Anh Quynh 提交于
      * include/libvirt/libvirt.h include/libvirt/libvirt.h.in: adds the new
        flag VIR_MEMORY_PHYSICAL for virDomainMemoryPeek
      * src/libvirt.c: update the front-end checking
      * src/qemu_driver.c: extend the QEmu driver
      e4c48e02
    • M
      Add internal XML parsing/formatting flag · aa98871c
      Mark McLoughlin 提交于
      We need to store things like device names and PCI slot numbers in the
      qemu domain state file so that we don't lose that information on
      libvirtd restart. Add a flag to indicate that this information should
      be parsed or formatted.
      
      Make bit 16 and above of the flags bitmask for internal use only and
      consume the first bit for this new status flag.
      
      * include/libvirt/libvirt.h: add VIR_DOMAIN_XML_FLAGS_MASK
      
      * src/libvirt.c: reject private flags in virDomainGetXMLDesc()
      
      * src/domain_conf.h: add VIR_DOMAIN_XML_INTERNAL_STATUS
      
      * src/domain_conf.c: pass the flag from virDomainObjParseXML() and
        virDomainSaveStatus
      aa98871c
    • T
      Fix documentation of virStoragePoolUndefine return · 683241de
      Thomas Treutner 提交于
      * src/libvirt.c: the documented return was wrong
      683241de
  10. 21 7月, 2009 1 次提交
    • D
      Activate the interface drivers, and cleanups · 909d647a
      Daniel Veillard 提交于
      * src/libvirt.c: activate the interface drivers
      * po/POTFILES.in: add the netcf driver as a source of localization strings
      * src/interface_driver.c: NETCF_ENOMEM -> VIR_ERR_NO_MEMORY mapping was
        breaking syntax checking
      909d647a
  11. 16 7月, 2009 2 次提交
    • L
      Implement the new virinterface functions · d4ad29be
      Laine Stump 提交于
      * src/driver.h: add new driver functions virDrvNumOfDefinedInterfaces
        and virDrvListDefinedInterfaces
      * src/libvirt.c: implements the entry points, calling new driver
        functions
      * qemud/remote.c qemud/remote_dispatch_args.h qemud/remote_protocol.[chx]
        qemud/remote_dispatch_prototypes.h qemud/remote_dispatch_ret.h
        qemud/remote_dispatch_table.h src/remote_internal.c: implement the
        client/server side of the RPC
      d4ad29be
    • D
      Allow autostart of libvirtd to be disabled with LIBVIRT_AUTOSTART=0 · 89c5ce4d
      Daniel P. Berrange 提交于
      * src/remote_internal.c: Disable libvirtd autostart if the
        LIBVIRT_AUTOSTART=0 env variable is set
      * src/libvirt.c: Document environment variables can impact
        the virConnectOpen API
      89c5ce4d
  12. 15 7月, 2009 1 次提交
    • D
      Fix error reporting for security driver over remote protocol · 84565934
      Daniel P. Berrange 提交于
      * qemud/remote.c: Send back the actual libvirt connection error
        rather than formatting a generic error for security driver
        methods
      * src/libvirt.c: Fix virDomainGetSecurityLabel, and
        virNodeGetSecurityModel to correctly set the error on
        the virConnectPtr object, and raise a full error rather
        than warning when not supported
      84565934
  13. 01 7月, 2009 1 次提交
    • D
      Regenerated the documentation and localization files · 88b4cc5f
      Daniel Veillard 提交于
      * src/libvirt.c src/virterror.c: fix some missing comments in public
        modules.
      * docs/libvirt-api.xml docs/libvirt-refs.xml
        docs/devhelp/libvirt-libvirt.html docs/html/libvirt-libvirt.html:
        regenerated documentation
      * po/*: updated the polish localization and regenerated
      Daniel
      88b4cc5f
  14. 26 6月, 2009 1 次提交
    • D
      big cleanup of the debug configuration option · 173c230e
      Daniel Veillard 提交于
      * src/Makefile.am src/libvirt.c src/libvirt_private.syms src/logging.c
        src/logging.h src/util.c src/libvirt_debug.syms: big cleanup of
        the debug configuration option and code by Amy Griffis
      daniel
      173c230e
  15. 25 6月, 2009 1 次提交
  16. 12 6月, 2009 1 次提交
  17. 30 5月, 2009 1 次提交
    • D
      release of libvirt-0.6.4 · 66220e3e
      Daniel Veillard 提交于
      * configure.in libvirt.spec.in NEWS docs/* po/*: release of
        libvirt-0.6.4
      * src/libvirt.c src/virterror.c: some comments cleanups
      Daniel
      66220e3e
  18. 29 5月, 2009 1 次提交
  19. 25 5月, 2009 1 次提交
    • D
      Include the OpenNebula driver · b811851b
      Daniel Veillard 提交于
      * src/opennebula/one_conf.[ch] src/opennebula/one_driver.[ch]:
        the OpenNebula driver
      * configure.in include/libvirt/virterror.h qemud/Makefile.am
        qemud/qemud.c src/Makefile.am src/domain_conf.[ch] src/driver.h
        src/libvirt.c src/virterror.c: integration of the OpenNebula
        driver in the libvirt infrastructure
      * AUTHORS: add Abel Miguez Rodriguez
      daniel
      b811851b
  20. 21 5月, 2009 1 次提交
  21. 20 5月, 2009 1 次提交
    • D
      Add the Interface config APIs · 73bc0114
      Daniel Veillard 提交于
      * configure.in include/libvirt/libvirt.h[.in]
        include/libvirt/virterror.h qemud/remote.c
        qemud/remote_dispatch_args.h qemud/remote_dispatch_prototypes.h
        qemud/remote_dispatch_ret.h qemud/remote_dispatch_table.h
        qemud/remote_protocol.[chx] src/Makefile.am src/datatypes.c
        src/datatypes.h src/driver.h src/libvirt.c src/remote_internal.c
        src/virterror.c src/libvirt_private.syms src/libvirt_public.syms:
        Add the Interface config APIs and remote stubs for those, patch
        by Laine Stump
      * AUTHORS: add Laine
      daniel
      73bc0114
  22. 13 5月, 2009 1 次提交
  23. 05 5月, 2009 1 次提交
  24. 24 4月, 2009 2 次提交
  25. 21 4月, 2009 1 次提交
  26. 18 4月, 2009 1 次提交
    • D
      integration of the VirtualBox support · 10d16508
      Daniel Veillard 提交于
      * configure.in include/libvirt/virterror.h src/Makefile.am
        src/domain_conf.[ch] src/driver.h src/virterror.c src/vbox/README
        src/vbox/vbox_CAPI_v2_2.h src/vbox/vbox_V2_2.c
        src/vbox/vbox_XPCOMCGlue.[ch] src/vbox/vbox_driver.[ch]
        src/vbox/vbox_tmpl.c: integration of the VirtualBox support
        patches by Pritesh Kothari
      Daniel
      10d16508
  27. 17 4月, 2009 1 次提交
    • D
      Small doc fixes · 81e6a221
      Daniel Veillard 提交于
      * src/libvirt.c: fix the doc of virNodeGetFreeMemory to say bytes
      * docs/drvlxc.html.in docs/drvlxc.html: fix command used in examples
      daniel
      81e6a221
  28. 31 3月, 2009 1 次提交
  29. 17 3月, 2009 1 次提交
  30. 04 3月, 2009 1 次提交
  31. 03 3月, 2009 1 次提交