]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pciback: Add flag indicating device has been assigned by Xen
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 26 Sep 2011 16:22:01 +0000 (12:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Sep 2011 04:48:34 +0000 (00:48 -0400)
commita4f618176035fc8fca26f524c6880d474828c6a0
treec3dc97c73812268fbcb4961b668610ae626ed10f
parent07c9fb55b7b5850a26c762f9afd55895659c0ac5
xen/pciback: Add flag indicating device has been assigned by Xen

Device drivers that create and destroy SR-IOV virtual functions via
calls to pci_enable_sriov() and pci_disable_sriov can cause catastrophic
failures if they attempt to destroy VFs while they are assigned to
guest virtual machines.  By adding a flag for use by the Xen PCI back
to indicate that a device is assigned a device driver can check that
flag and avoid destroying VFs while they are assigned and avoid system
failures.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/xen/xen-pciback/xenbus.c