From: Alex Williamson Date: Tue, 10 May 2011 16:02:27 +0000 (-0600) Subject: PCI: Add interfaces to store and load the device saved state X-Git-Tag: v3.0-rc1~326^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffbdd3f7931fb7cb7e36d00d16303ec433be5145;p=pandora-kernel.git PCI: Add interfaces to store and load the device saved state For KVM device assignment, we'd like to save off the state of a device prior to passing it to the guest and restore it later. We also want to allow pci_reset_funciton() to be called while the device is owned by the guest. This however overwrites and invalidates the struct pci_dev buffers, so we can't just manually call save and restore. Add generic interfaces for the saved state to be stored and reloaded back into struct pci_dev at a later time. Signed-off-by: Alex Williamson Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed