1. 24 8月, 2010 4 次提交
    • J
      xml2sexprtest: Remove graphics from unrelated tests · e27277eb
      Jiri Denemark 提交于
      This caused unnecessary make check failures when libvirt is configured
      --with-rhel5-api
      e27277eb
    • J
      xen tests: Fix missing "type ioemu" with rhel5-api · 20311a9a
      Jiri Denemark 提交于
      The most common cause of errors with rhel5-api turn on was missing
      "(type ioemu)" in sexpr or its equivalent in XM configuration file. This
      happens because the presence of that part in sexpr (or cfg) depends on
      xen version the host is running. Let's avoid it by explicitly specifying
      interface model which ensures "type ioemu" will always be emitted.
      
      This patch adds
      
          <model type='e1000'/>
      
      withing the interface element in all affected xml files. And
      
          (model 'e1000')
      
      to all corresponding sexpr files with similar fix to cfg files. Such
      configuration works regardless on Xen version.
      20311a9a
    • J
      nodeinfotest: Print libvirt error on failure · 0eb009d2
      Jiri Denemark 提交于
      If linuxNodeInfoCPUPopulate() fails, the test would just print "FAILED"
      which is not very informative. It's better to print the real error.
      0eb009d2
    • 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
  2. 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
  3. 21 8月, 2010 4 次提交
  4. 20 8月, 2010 12 次提交
  5. 19 8月, 2010 1 次提交
    • E
      build: fix compiler warning · 9ba934c6
      Eric Blake 提交于
      node_device/node_device_driver.c: In function 'nodeDeviceVportCreateDelete':
      node_device/node_device_driver.c:423: error: implicit declaration of function 'stat' [-Wimplicit-function-declaration]
      
      * src/node_device/node_device_driver.c (includes): Add <sys/stat.h>.
      9ba934c6
  6. 18 8月, 2010 7 次提交
    • D
      xen: Fix scheduler setting problems · 1dcd5ab9
      Daniel Veillard 提交于
      Doing `virsh schedinfo rhel5u3 --cap 65535' the hypervisor does the
      call, but does not change the value nor raise an error. Best is just to
      consider it's not in the allowed values. The problem is that the error
      won't be output since the xend driver will then be called and raise an
      error
      
          error: this function is not supported by the hypervisor: unsupported
          in xendConfigVersion < 4
      
      which will override the useful information from
      xenUnifiedDomainSetSchedulerParameters(). So best is to also invert the
      order in which the xen sub-drivers are called.
      
      * src/xen/xen_hypervisor.c: mark 65535 cap value as out of bound
      * src/xen/xen_hypervisor.c: reverse the order of the calls to the xen
        sub drivers to get the error message if needed
      1dcd5ab9
    • J
      47c74e82
    • D
      nodedev: Fix sysfs paths for vport operations · b31ef773
      Dave Allan 提交于
      Some kernels, such as the one used in RHEL-5, have vport_create and
      vport_delete operation files in /sys/class/scsi_host/hostN directory
      instead of /sys/class/fc_host/hostN. Let's check both paths for
      compatibility reasons.
      
      This also removes unnecessary '/' characters from sysfs paths containing
      LINUX_SYSFS_FC_HOST_PREFIX.
      b31ef773
    • D
      xen: Fix device count on detach · 8ebda736
      Daniel Berrange 提交于
      8ebda736
    • D
      remote: Fix incorrect use of private data field · 9f45fabd
      Daniel Berrange 提交于
      NodeDeviceCreateXML and NodeDeviceDestroy methods added for NPIV were
      using the wrong privateData field for the remote driver. This doesn't
      impact KVM, since the remote driver handles everything, thus
      privateData == devMonPrivateData. It does impact Xen though, because
      the remote driver only handles a subset of methods and thus
      privateData != devMonPrivateData.
      9f45fabd
    • M
      esx: Fix memory leak when looking up an non-existing domain by name · f688face
      Matthias Bolte 提交于
      In case an optional object cannot be found the lookup function is
      left early and the cleanup code is not executed.
      
      This pattern occurs in some other functions too.
      f688face
    • C
      Fix up qemu domain save/managed save locking. · 4303c91c
      Chris Lalancette 提交于
      The current version of the qemu managed save implementation
      is subject to a race where the domain shuts down between
      the time that we start the command and the time that we
      actually try to do the save.  Close this race by making
      qemuDomainSaveFlags() expect both the driver and the passed-in
      vm object to be locked before executing.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      4303c91c
  7. 17 8月, 2010 7 次提交
    • E
      docs: mention domain <clock> improvements · 2ad42978
      Eric Blake 提交于
      Add documentation for features added a while ago.
      
      * docs/formatdomain.html.in (Time keeping): Update documentation
      of <clock> element to match 0.8.0 addition.
      2ad42978
    • S
      cygwin: build fix · b8564da1
      Stefan Berger 提交于
      Fixing a problem in the build on cygwin due to missing #define's.
      b8564da1
    • J
      qemu: Fix copy&paste error in warning message · 0a5f3ae0
      Jiri Denemark 提交于
      This also makes the message consistent with the message used in error
      path of qemudDomainAttachHostPciDevice.
      0a5f3ae0
    • J
      5afec517
    • J
      qemu: Re-reserve all PCI addresses on libvirtd restart · 4f86613b
      Jiri Denemark 提交于
      When reconnecting to existing VMs, we re-reserved only those PCI
      addresses which were explicitly mentioned in domain XML. Since some
      addresses are always reserved (e.g., 0:0:0 and 0:0:1), we need to handle
      those too.
      
      Also all this should only be done if device flag is supported by qemu.
      4f86613b
    • J
      build: fix AppArmor compilation · 8e3eeb4e
      Jamie Strandboge 提交于
      * src/security/virt-aa-helper.c: Add missing include.
      8e3eeb4e
    • S
      nwfilter: extend nwfilter reload support · cf6f8b9a
      Stefan Berger 提交于
      In this patch I am extending and fixing the nwfilter module's reload support to stop all ongoing threads (for learning IP addresses of interfaces) and rebuild the filtering rules of all interfaces of all VMs when libvirt is started. Now libvirtd rebuilds the filters upon the SIGHUP signal and libvirtd restart.
      
      About the patch: The nwfilter functions require a virConnectPtr. Therefore I am opening a connection in qemudStartup, which later on needs to be closed outside where the driver lock is held since otherwise it ends up in a deadlock due to virConnectClose() trying to lock the driver as well.
      
      I have tested this now for a while with several machines running and needing the IP address learner thread(s). The rebuilding of the firewall rules seems to work fine following libvirtd restart or a SIGHUP. Also the termination of libvirtd worked fine.
      cf6f8b9a
  8. 15 8月, 2010 4 次提交