]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Reset and re-attach PCI host devices on guest shutdown
authorMark McLoughlin <markmc@redhat.com>
Fri, 14 Aug 2009 07:31:11 +0000 (08:31 +0100)
committerMark McLoughlin <markmc@redhat.com>
Fri, 14 Aug 2009 07:31:11 +0000 (08:31 +0100)
commit4035152a8767e72fd4e26a91cb4d5afa75b72e61
treea4c763c3e564cffbe738cb29f8e6e84b5f65d77d
parent64a6682b93a2a8aa38067a43979c9eaf993d2b41
Reset and re-attach PCI host devices on guest shutdown

When the guest shuts down, we should attempt to restore all PCI host
devices to a sane state.

In the case of managed hostdevs, we should reset and re-attach the
devices. In the case of unmanaged hostdevs, we should just reset them.

Note, KVM will already reset assigned devices when the guest shuts
down using whatever means it can, so we are only doing it to cover the
cases the kernel can't handle.

* src/qemu_driver.c: add qemuDomainReAttachHostDevices() and call
  it from qemudShutdownVMDaemon()
src/qemu_driver.c