mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
vfio/pci: zap_vma_ptes() needs MMU
[ Upstream commit2a55ca3735] zap_vma_ptes() is only available when CONFIG_MMU is set/enabled. Without CONFIG_MMU, vfio_pci.o has build errors, so make VFIO_PCI depend on MMU. riscv64-linux-ld: drivers/vfio/pci/vfio_pci.o: in function `vfio_pci_mmap_open': vfio_pci.c:(.text+0x1ec): undefined reference to `zap_vma_ptes' riscv64-linux-ld: drivers/vfio/pci/vfio_pci.o: in function `.L0 ': vfio_pci.c:(.text+0x165c): undefined reference to `zap_vma_ptes' Fixes:11c4cd07ba("vfio-pci: Fault mmaps to enable vma tracking") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reported-by: kernel test robot <lkp@intel.com> Cc: Alex Williamson <alex.williamson@redhat.com> Cc: Cornelia Huck <cohuck@redhat.com> Cc: kvm@vger.kernel.org Cc: Jason Gunthorpe <jgg@nvidia.com> Cc: Eric Auger <eric.auger@redhat.com> Message-Id: <20210515190856.2130-1-rdunlap@infradead.org> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c303db1211
commit
c25454a4f4
|
|
@ -2,6 +2,7 @@
|
||||||
config VFIO_PCI
|
config VFIO_PCI
|
||||||
tristate "VFIO support for PCI devices"
|
tristate "VFIO support for PCI devices"
|
||||||
depends on VFIO && PCI && EVENTFD
|
depends on VFIO && PCI && EVENTFD
|
||||||
|
depends on MMU
|
||||||
select VFIO_VIRQFD
|
select VFIO_VIRQFD
|
||||||
select IRQ_BYPASS_MANAGER
|
select IRQ_BYPASS_MANAGER
|
||||||
help
|
help
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user