1. 04 9月, 2010 3 次提交
  2. 03 9月, 2010 4 次提交
    • E
      build: avoid uninitialized variable warning · 2ce55fe7
      Eric Blake 提交于
      * src/vbox/vbox_tmpl.c (vboxAttachDrives): Capture return value.
      2ce55fe7
    • M
      esx: Rework datastore path parsing and handling · 84768912
      Matthias Bolte 提交于
      Instead of splitting the path part of a datastore path into
      directory and file name, keep this in one piece. An example:
      
        "[datastore] directory/file"
      
      was split into this before:
      
        datastoreName = "datastore"
        directoryName = "directory"
        fileName = "file"
      
      Now it's split into this:
      
        datastoreName = "datastore"
        directoryName = "directory"
        directoryAndFileName = "directory/file"
      
      This simplifies code using esxUtil_ParseDatastorePath, because
      directoryAndFileName is used more often than fileName. Also the
      old approach expected the datastore path to reference an actual
      file, but this isn't always correct, especially when listing
      volumes. In that case esxUtil_ParseDatastorePath is used to parse
      a path that references a directory. This fails for a vpx://
      connection because the vCenter returns directory paths with a
      trailing '/'. The new approach is robust against this and the
      actual decision if the datastore path should reference a file or
      a directory is up to the caller of esxUtil_ParseDatastorePath.
      
      Update the tests accordingly.
      84768912
    • E
      vbox: factor a large function · 2af93cd4
      Eric Blake 提交于
      * src/vbox/vbox_tmpl.c (vboxDomainDefineXML): Split...
      (vboxSetBootDeviceOrder, vboxAttachDrives, vboxAttachSound)
      (vboxAttachNetwork, vboxAttachSerial, vboxAttachParallel)
      (vboxAttachVideo, vboxAttachDisplay, vboxAttachUSB): ...into new
      helper functions.
      2af93cd4
    • E
      lxc: avoid large stacks with veth creation · f694036f
      Eric Blake 提交于
      * src/lxc/veth.h (vethCreate): Change prototype.
      * src/lxc/veth.c (vethCreate): Always malloc veth2, and allocate
      veth1 if needed.
      (getFreeVethName): Adjust signature, and use virAsprintf.
      * src/lxc/lxc_driver.c (lxcSetupInterfaces): Adjust caller.
      f694036f
  3. 02 9月, 2010 4 次提交
  4. 01 9月, 2010 2 次提交
  5. 31 8月, 2010 3 次提交
  6. 27 8月, 2010 3 次提交
  7. 25 8月, 2010 2 次提交
  8. 24 8月, 2010 5 次提交
    • D
      Fix handling of sparse NUMA topologies · 628c9357
      Daniel P. Berrange 提交于
      When finding a sparse NUMA topology, libnuma will return ENOENT
      the first time it is invoked. On subsequent invocations it
      will return success, but with an all-1's CPU mask. Check for
      this, to avoid polluting the capabilities XML with 4096 bogus
      CPUs
      
      * src/nodeinfo.c: Check for all-1s CPU mask
      628c9357
    • D
      Log return value for virConnectGetCapabilities · ac7baddf
      Daniel P. Berrange 提交于
      Enabling debug doesn't show the capabilities XML for a connection.
      Add an extra debug statement for the return value
      
      * src/libvirt.c: Enable debug logging of capabilities XML
      ac7baddf
    • S
      Allow chardev of type 'file' for UML domains. · 21dcce53
      Soren Hansen 提交于
      Like the comment suggested, we just open the file and pass the file
      descriptor to uml. The input "stream" is set to "null", since I couldn't
      find any useful way to actually use a file for input for a chardev and
      this also mimics what e.g. QEmu does internally.
      Signed-off-by: NSoren Hansen <soren@linux2go.dk>
      21dcce53
    • M
      esx: Improve object-by-type lookup performance · 8c48743b
      Matthias Bolte 提交于
      Instead of using one big traversal spec for lookup use a set of
      more fine grained traversal specs that are selected based on the
      actual needs of the lookup.
      
      This gives up to 20% speedup for certain operations like domain
      listing due to less HTTP(S) traffic.
      8c48743b
    • E
      xenapi: support xenapi 5.6.0 headers · 5bf86904
      Eric Blake 提交于
      * src/xenapi/xenapi_driver.c (xenapiDomainGetInfo): Avoid using
      XEN_VM_POWER_STATE_UNKNOWN, which disappeared in newer xenapi.
      * src/xenapi/xenapi_utils.c (mapPowerState): Likewise.
      5bf86904
  9. 23 8月, 2010 1 次提交
    • D
      Add support for -enable-kqemu flag · 6e44ec7a
      Daniel P. Berrange 提交于
      Previously QEMU enabled KQEMU by default and had -no-kqemu.
      0.11.x switched to requiring -enable-kqemu. 0.12.x dropped
      kqemu entirely. This patch adds support for -enable-kqemu
      so 0.11.x works. It replaces a huge set of if() with a
      switch() to make the code a bit more readable.
      
      * src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Support
        -enable-kqemu
      6e44ec7a
  10. 21 8月, 2010 4 次提交
  11. 20 8月, 2010 9 次提交