diff options
author | Jon Mason <jon.mason@exar.com> | 2010-12-10 14:02:57 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-10 16:08:22 -0800 |
commit | c92bf70dcb9d08f821e4c9f09f8fc328495ba998 (patch) | |
tree | afe424dc0035569e81494750420c3e40e5b39f72 /fs/bio-integrity.c | |
parent | 528f727279ae840db8a06c94f5e82cdaeb00da6f (diff) | |
download | blackbird-op-linux-c92bf70dcb9d08f821e4c9f09f8fc328495ba998.tar.gz blackbird-op-linux-c92bf70dcb9d08f821e4c9f09f8fc328495ba998.zip |
vxge: fix crash of VF when unloading PF
Calling pci_disable_sriov when unloading a SR-IOV physical function
driver from a host when a guest is using a virtual function from that
device can cause a host crash or VM crash. The crash is caused by the
virtual config space no longer being present when PF is removed (due to
the pci_disable_sriov). This can be avoided by not calling
pci_disable_sriov to disable the PCI space when shutting down the PF.
Each function in the X3100 operates independently and in this case will
operate properly in the absence of the PF.
Also, added improved logic in the detection of SR-IOV initialization.
Signed-off-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: Ram Vepa <ram.vepa@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/bio-integrity.c')
0 files changed, 0 insertions, 0 deletions