PCI/IOV: Mark VFs as not implementing PCI_COMMAND_MEMORY
authorMatthew Rosato <mjrosato@linux.ibm.com>
Thu, 10 Sep 2020 14:59:55 +0000 (10:59 -0400)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 21 Sep 2020 20:42:11 +0000 (14:42 -0600)
commit12856e7acde4702b7c3238c15fcba86ff6aa507f
treef9e0073991158db7fb74b6b0fe05444836722a1e
parentba4f184e126b751d1bffad5897f263108befc780
PCI/IOV: Mark VFs as not implementing PCI_COMMAND_MEMORY

For VFs, the Memory Space Enable bit in the Command Register is
hard-wired to 0.

Add a new bit to signify devices where the Command Register Memory
Space Enable bit does not control the device's response to MMIO
accesses.

Fixes: abafbc551fdd ("vfio-pci: Invalidate mmaps and block MMIO access on disabled memory")
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/pci/iov.c
include/linux/pci.h