xen/pciback: Support pci_reset_function, aka FLR or D3 support.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 12 Jan 2012 17:06:47 +0000 (12:06 -0500)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 14 Feb 2012 16:44:49 +0000 (08:44 -0800)
commit11608318037f07fe08d64ebcd3f65691cfd77076
tree6214ed6b19c652f5191347a9a137eab780af7d57
parent6fbf9e7a90862988c278462d85ce9684605a52b2
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>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/xen/xen-pciback/pci_stub.c
drivers/xen/xen-pciback/pciback.h