]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pciback: Support pci_reset_function, aka FLR or D3 support.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 4 Jan 2012 19:30:58 +0000 (14:30 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 12 Jan 2012 17:00:19 +0000 (12:00 -0500)
commit5a62ffb4f84ea76c5b0c370dd3e5268e879dc5ff
tree6162d1b26e3d224aa23173bba1042346d1094aac
parent68604bfb223de24804ef4977f12fbcead1bf18a4
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>
drivers/xen/xen-pciback/pci_stub.c
drivers/xen/xen-pciback/pciback.h