]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Maintain a list of active PCI hostdevs and use it in pciResetDevice()
authorMark McLoughlin <markmc@redhat.com>
Mon, 17 Aug 2009 14:05:23 +0000 (15:05 +0100)
committerMark McLoughlin <markmc@redhat.com>
Tue, 18 Aug 2009 08:41:57 +0000 (09:41 +0100)
commite8ad33931296c67de0538e78d12e21706a826d37
tree64f087989d5fa77934768dfa550c34ea86a5e946
parent78675b228b76a83f83d64856bfb63b9e14c103a0
Maintain a list of active PCI hostdevs and use it in pciResetDevice()

As we start/shutdown guests, or hotplug/hot-unplug devices, we can add
or delete devices as appropriate from a list of active devices.

Then, in pciReset(), we can use this to determine whether its safe to
reset a device as a side effect of resetting another device.

* src/qemu_conf.h: add activePciHostdevs to qemud_driver

* src/qemu_driver.c: maintain the activePciHostdevs list, and pass it
  to pciResetDevice()

* src/pci.[ch]: pass the activeDevs list to pciResetDevice() and use
  it to determine whether a Secondary Bus Reset is safe
src/pci.c
src/pci.h
src/qemu_conf.h
src/qemu_driver.c
src/xen_unified.c