KVM: Use pci_store/load_saved_state() around VM device usage
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 10 May 2011 16:02:39 +0000 (10:02 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Sat, 21 May 2011 19:17:10 +0000 (12:17 -0700)
Store the device saved state so that we can reload the device back
to the original state when it's unassigned.  This has the benefit
that the state survives across pci_reset_function() calls via
the PCI sysfs reset interface while the VM is using the device.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

No differences found