diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2011-05-10 12:02:39 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-05-21 15:17:10 -0400 |
commit | f8fcfd775523347afe460dc3a0f45d0479e784a2 (patch) | |
tree | 8c7c5e0ece50b8661cae34ee1a6734144fce7594 /include | |
parent | ffbdd3f7931fb7cb7e36d00d16303ec433be5145 (diff) |
KVM: Use pci_store/load_saved_state() around VM device usage
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index ab428552af8e..9272db03a3e5 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -513,6 +513,7 @@ struct kvm_assigned_dev_kernel { | |||
513 | struct kvm *kvm; | 513 | struct kvm *kvm; |
514 | spinlock_t intx_lock; | 514 | spinlock_t intx_lock; |
515 | char irq_name[32]; | 515 | char irq_name[32]; |
516 | struct pci_saved_state *pci_saved_state; | ||
516 | }; | 517 | }; |
517 | 518 | ||
518 | struct kvm_irq_mask_notifier { | 519 | struct kvm_irq_mask_notifier { |