summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2020-06-25 11:04:23 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-12 11:47:38 +0200
commit54764e8dfbd4fd2bf615aa5a2445ce7faa216cbc (patch)
treead09c4e5670f0a3f2acca5deaaa60a44a19325c9 /net/lapb/lapb_subr.c
parentd370e957788316dbf08ed22446f3eed6821918cd (diff)
vfio/pci: Fix SR-IOV VF handling with MMIO blocking
commit ebfa440ce38b7e2e04c3124aa89c8a9f4094cf21 upstream. SR-IOV VFs do not implement the memory enable bit of the command register, therefore this bit is not set in config space after pci_enable_device(). This leads to an unintended difference between PF and VF in hand-off state to the user. We can correct this by setting the initial value of the memory enable bit in our virtualized config space. There's really no need however to ever fault a user on a VF though as this would only indicate an error in the user's management of the enable bit, versus a PF where the same access could trigger hardware faults. Fixes: abafbc551fdd ("vfio-pci: Invalidate mmaps and block MMIO access on disabled memory") Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions