Make HYPERV_PVIOMMU depend on PCI, to fix the possible link failure
of pci_request_acs(), if HYPERV_PVIOMMU is enabled yet with PCI disabled. 
Such configuration shall be prevented.

Fixes: 2690d4156b51 ("iommu/hyperv: Add para-virtualized IOMMU support for 
Hyper-V guest")
Reported-by: kernel test robot <[email protected]>
Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Yu Zhang <[email protected]>
---
 drivers/iommu/hyperv/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/hyperv/Kconfig b/drivers/iommu/hyperv/Kconfig
index fe24ed65b6a7..f2f993f647c3 100644
--- a/drivers/iommu/hyperv/Kconfig
+++ b/drivers/iommu/hyperv/Kconfig
@@ -2,7 +2,7 @@
 # Hyper-V para-virtualized IOMMU driver for Linux guests
 config HYPERV_PVIOMMU
        bool "Microsoft Hyper-V para-virtualized IOMMU driver for Linux guests"
-       depends on X86_64 && HYPERV
+       depends on X86_64 && HYPERV && PCI
        select IOMMU_DMA
        select GENERIC_PT
        select IOMMU_PT
-- 
2.52.0


Reply via email to