Always reset PCI devices

This commit is contained in:
Daniel P. Berrange 2009-03-02 20:22:35 +00:00
parent 644b41a94d
commit 72652e9dbb
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Mon Mar 2 20:21:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_conf.c: Always reset PCI devices before starting guests.
Add todo item for non-managed PCI devs
Mon Mar 2 20:18:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/libvirt_private.syms: Export virUnrefConnect and

View File

@ -1411,7 +1411,11 @@ int qemudBuildCommandLine(virConnectPtr conn,
}
pciFreeDevice(conn, dev);
}
} /* else {
XXX validate that non-managed device isn't in use, eg
by checking that device is either un-bound, or bound
to pci-stub.ko
} */
}
}
@ -1421,8 +1425,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
virDomainHostdevDefPtr hostdev = vm->def->hostdevs[i];
pciDevice *dev;
if (!hostdev->managed ||
hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS ||
if (hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS ||
hostdev->source.subsys.type != VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI)
continue;