]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix qemu driver's interpretation of <hostdev managed='yes'/>
authorMark McLoughlin <markmc@redhat.com>
Wed, 6 May 2009 15:56:20 +0000 (15:56 +0000)
committerMark McLoughlin <markmc@redhat.com>
Wed, 6 May 2009 15:56:20 +0000 (15:56 +0000)
This change:

  Tue Mar  3 08:55:13 GMT 2009 Daniel P. Berrange <berrange@redhat.com>

       Don't try to detach & reset PCI devices while running test
       suite for XML-> ARGV conversion.
       * src/qemu_driver.c: Add qemuPrepareHostDevices() helper to
       detach and reset PCI devices.
       * src/qemu_conf.c: Don't detach & reset PCI devices while
       building the command line argv

accidentally did this:

-            if (hostdev->managed) {
+        if (!hostdev->managed) {

Which results in managed='yes' not causing the device to be
detached when the guest is starting.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
ChangeLog
src/qemu_driver.c

index 2ab74af998e79ca639cd82804ce9535c4e4bb88f..68865df352a20ecc279eb36b6436d3e77d6e2371 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed May  6 16:55:02 GMT 2009 Mark McLoughlin <markmc@redhat.com>
+
+       * src/qemu_driver.c: fix handling of <hostdev managed='yes'>
+
 Wed May  6 10:19:36 EDT 2009 Cole Robinson <crobinso@redhat.com>
 
        * src/qemu_driver.c : Refresh QEMU driver capabilities for each
index 589802613cb921c42c8f219652b09bdf8dd75ae3..59312c022e8f50d3c8333e185b5064061541f9c9 100644 (file)
@@ -1215,7 +1215,7 @@ static int qemuPrepareHostDevices(virConnectPtr conn,
         if (hostdev->source.subsys.type != VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI)
             continue;
 
-        if (!hostdev->managed) {
+        if (hostdev->managed) {
             pciDevice *dev = pciGetDevice(conn,
                                           hostdev->source.subsys.u.pci.domain,
                                           hostdev->source.subsys.u.pci.bus,