libvirt/src/qemu
Osier Yang d09354786a qemu: Honor the orginal PCI dev properties when reattaching
BZ# https://bugzilla.redhat.com/show_bug.cgi?id=736214

The problem is caused by the original info of domain's PCI dev is
maintained by qemu_driver->activePciHostdevs list, (E.g. dev->reprobe,
which stands for whether need to reprobe driver for the dev when do
reattachment). The fields (dev->reprobe, dev->unbind_from_stub, and
dev->remove_slot) are initialized properly when preparing the PCI
device for managed attachment. However, when do reattachment, it
construct a complete new "pciDevice" without honoring the original
dev info, and thus the dev won't get the original driver or can get
other problem.

This patch is to fix the problem by get the devs from list
driver->activePciHostdevs.

Tested with following 3 scenarios:
  * the PCI was bound to some driver not pci-stub before attaching

    result: the device will be bound to the original driver

  * the PCI was bound to pci-stub before attaching

    result: no driver reprobing, and still bound to pci-stub

  * The PCI was not bound to any driver

    result: no driver reprobing, and still not bound to any driver.
2011-10-14 14:56:05 -06:00
..
libvirtd_qemu.aug qemu: Introduce job queue size limit 2011-09-05 18:14:08 +02:00
MIGRATION.txt qemu: Implement migration job phases 2011-07-27 08:45:09 -06:00
qemu_bridge_filter.c Remove conn parameter from virReportSystemError 2010-02-09 01:04:54 +01:00
qemu_bridge_filter.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
qemu_capabilities.c qemu: enable multifunction for older qemu 2011-10-06 10:41:21 -06:00
qemu_capabilities.h qemu: add ability to set PCI device "rombar" on or off 2011-09-27 11:23:28 -04:00
qemu_cgroup.c set cpu bandwidth for the vm 2011-07-26 22:12:57 +08:00
qemu_cgroup.h qemu: Implement period and quota tunable XML configuration and parsing 2011-07-21 17:11:12 +08:00
qemu_command.c Introduce <driver> under <filesystem> to support open-by-handle 2011-10-12 12:15:28 -06:00
qemu_command.h Add "redirdev" redirection device 2011-09-02 23:39:03 +08:00
qemu_conf.c qemu: Introduce job queue size limit 2011-09-05 18:14:08 +02:00
qemu_conf.h qemu: Check for ejected media during startup and migration 2011-09-28 19:49:11 +02:00
qemu_domain.c qemu: Log debug messages when changing job 2011-10-13 22:05:35 +02:00
qemu_domain.h qemu: Fix migration with dname 2011-10-04 15:43:14 +02:00
qemu_driver.c Clarify semantics of virDomainMigrate2 2011-10-14 22:04:31 +02:00
qemu_driver.h Split all QEMU process mangement code into separate file 2011-02-17 12:48:55 +00:00
qemu_hostdev.c qemu: Honor the orginal PCI dev properties when reattaching 2011-10-14 14:56:05 -06:00
qemu_hostdev.h qemu: Do not reattach PCI device used by other domain when shutdown 2011-10-14 12:53:32 -06:00
qemu_hotplug.c qemu: Do not reattach PCI device used by other domain when shutdown 2011-10-14 12:53:32 -06:00
qemu_hotplug.h qemu: Check for ejected media during startup and migration 2011-09-28 19:49:11 +02:00
qemu_migration.c Clarify semantics of virDomainMigrate2 2011-10-14 22:04:31 +02:00
qemu_migration.h Clarify semantics of virDomainMigrate2 2011-10-14 22:04:31 +02:00
qemu_monitor_json.c qemu: check for json allocation failure 2011-10-13 12:24:39 -06:00
qemu_monitor_json.h qemu: Check for ejected media during startup and migration 2011-09-28 19:49:11 +02:00
qemu_monitor_text.c qemu: fix text block info parsing 2011-10-13 13:44:02 -06:00
qemu_monitor_text.h qemu: Check for ejected media during startup and migration 2011-09-28 19:49:11 +02:00
qemu_monitor.c qemu: Check for ejected media during startup and migration 2011-09-28 19:49:11 +02:00
qemu_monitor.h qemu: Check for ejected media during startup and migration 2011-09-28 19:49:11 +02:00
qemu_process.c qemu: Check for ejected media during startup and migration 2011-09-28 19:49:11 +02:00
qemu_process.h qemu: Prevent disk corruption on domain shutdown 2011-09-16 17:21:10 +02:00
qemu.conf qemu: Introduce job queue size limit 2011-09-05 18:14:08 +02:00
test_libvirtd_qemu.aug Integrate the QEMU driver with the lock manager infrastructure 2011-06-02 10:54:01 +01:00
THREADS.txt qemu: fix crash when mixing sync and async monitor jobs 2011-08-01 09:41:57 -06:00