]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Honor the original properties of PCI device when detaching
authorOsier Yang <jyang@redhat.com>
Tue, 29 Nov 2011 10:09:24 +0000 (18:09 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 15 Dec 2011 02:14:11 +0000 (10:14 +0800)
commita0aec362e858e30da5cd423d9375d4a27abf4ec7
treea540ad9b64720510ba566fec0bbca562dffdd031
parent6e53293812d3bd0cf2f0abf03c36e7b2535e7ca1
qemu: Honor the original properties of PCI device when detaching

This patch fixes two problems:
    1) The device will be reattached to host even if it's not
       managed, as there is a "pciDeviceSetManaged".
    2) The device won't be reattached to host with original
       driver properly. As it doesn't honor the device original
       properties which are maintained by driver->activePciHostdevs.
src/qemu/qemu_hotplug.c