Re: [PATCH v7 00/24] KVM: arm64: SMMUv3 driver for pKVM (trap and emulate)
From: Jason Gunthorpe
Date: Tue Aug 25 2026 - 17:00:33 EST
> This is v7 of pKVM SMMUv3 support with trap and emulate
I tried to compile it:
ld.lld-21: error: undefined symbol: __kvm_nvhe_iova_bitmap_set
>>> referenced by __kvm_nvhe_io-pgtable-arm.c
>>> arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o:(__kvm_nvhe_visit_dirty) in archive vmlinux.a
I think it is because I have CONFIG_IOMMUFD turned on.
-#if IS_ENABLED(CONFIG_IOMMUFD_DRIVER)
+#if IS_ENABLED(CONFIG_IOMMUFD_DRIVER) && !IS_ENABLED(__KVM_NVHE_HYPERVISOR__)
struct iova_bitmap *iova_bitmap_alloc(unsigned long iova, size_t length,
?
--
Jason