Revert "KVM: Save/restore state of assigned PCI device"
commit5c23d2dac35b93f160f6285f874a163544992115
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 23 Jun 2011 16:35:22 +0000 (23 13:35 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:40 +0000 (8 23:15 -0700)
tree4fbb6df6edcc701c9f9bd39da83f7496ddc4c691
parent11915b98996882bdc5ae58b992cf929f2c824b66
Revert "KVM: Save/restore state of assigned PCI device"

This reverts ed78661f2614d3c9f69c23e280db3bafdabdf5bb as it assumes
the saved PCI state will remain valid for the entire length of time
that it is attached to a guest.  This fails when userspace makes use
of the pci-sysfs reset interface, which invalidates the saved device
state, leaving nothing to be restored after the device is reset on
de-assignment.  This leaves the device in an unusable state.

3.0.0 will add an interface for KVM to save the PCI state in a
buffer unaffected by other callers of pci_reset_function(), but the
most appropriate stable fix seems to be reverting this change since
the original assumption about the device saved state persisting is
incorrect.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
virt/kvm/assigned-dev.c