summaryrefslogtreecommitdiffstats
path: root/drivers/xen/xen-pciback/pciback.h
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-01-04 14:30:58 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-01-12 12:00:19 -0500
commitcd9db80e5257682a7f7ab245a2459648b3c8d268 (patch)
tree6162d1b26e3d224aa23173bba1042346d1094aac /drivers/xen/xen-pciback/pciback.h
parenta96d627abaac899e8bfaf18fd0578b228c9c752f (diff)
downloadlinux-cd9db80e5257682a7f7ab245a2459648b3c8d268.tar.bz2
xen/pciback: Support pci_reset_function, aka FLR or D3 support.
We use the __pci_reset_function_locked to perform the action. Also on attaching ("bind") and detaching ("unbind") we save and restore the configuration states. When the device is disconnected from a guest we use the "pci_reset_function" to also reset the device before being passed to another guest. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/xen-pciback/pciback.h')
-rw-r--r--drivers/xen/xen-pciback/pciback.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/xen/xen-pciback/pciback.h b/drivers/xen/xen-pciback/pciback.h
index e9b4011c5f9a..a7def010eba3 100644
--- a/drivers/xen/xen-pciback/pciback.h
+++ b/drivers/xen/xen-pciback/pciback.h
@@ -41,6 +41,7 @@ struct xen_pcibk_device {
struct xen_pcibk_dev_data {
struct list_head config_fields;
+ struct pci_saved_state *pci_saved_state;
unsigned int permissive:1;
unsigned int warned_on_write:1;
unsigned int enable_intx:1;