diff --git a/arch/um/drivers/Kconfig b/arch/um/drivers/Kconfig index 6a0354ca032f..655e5a270c97 100644 --- a/arch/um/drivers/Kconfig +++ b/arch/um/drivers/Kconfig @@ -159,6 +159,7 @@ config UML_RTC config UML_PCI bool + depends on MMU select FORCE_PCI select IRQ_MSI_LIB select UML_IOMEM_EMULATION @@ -169,6 +170,7 @@ config UML_PCI config UML_PCI_OVER_VIRTIO bool "Enable PCI over VIRTIO device simulation" # in theory, just VIRTIO is enough, but that causes recursion + depends on MMU depends on VIRTIO_UML select UML_PCI @@ -183,6 +185,7 @@ config UML_PCI_OVER_VIRTIO_DEVICE_ID config UML_PCI_OVER_VFIO bool "Enable VFIO-based PCI passthrough" + depends on MMU select UML_PCI help This driver provides support for VFIO-based PCI passthrough. diff --git a/lib/kunit/Kconfig b/lib/kunit/Kconfig index 94ff8e4089bf..cbda6189a308 100644 --- a/lib/kunit/Kconfig +++ b/lib/kunit/Kconfig @@ -133,7 +133,7 @@ config KUNIT_DEFAULT_TIMEOUT config KUNIT_UML_PCI bool "KUnit UML PCI Support" - depends on UML + depends on UML && MMU select UML_PCI help Enables the PCI subsystem on UML for use by KUnit tests.