From 666107de1ac911cc79b319425df9edb9dbdcc3fd Mon Sep 17 00:00:00 2001 From: Mostafa Saleh Date: Fri, 20 Dec 2024 17:56:59 +0000 Subject: [PATCH] ANDROID: KVM: arm64: iommu: Don't WARN_ON missing IOMMU It seems some tests might be mad because of the WARN_ON. Bug: 385306234 Change-Id: Ic2829011ecaa0df5947b498e68a7ef077f294f2e Signed-off-by: Mostafa Saleh --- arch/arm64/kvm/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/iommu.c b/arch/arm64/kvm/iommu.c index 5ca09a35e268..1e9694c8be9e 100644 --- a/arch/arm64/kvm/iommu.c +++ b/arch/arm64/kvm/iommu.c @@ -35,7 +35,7 @@ int kvm_iommu_register_driver(struct kvm_iommu_driver *kern_ops, struct kvm_iomm int kvm_iommu_init_driver(void) { - if (WARN_ON(!smp_load_acquire(&iommu_driver))) { + if (!smp_load_acquire(&iommu_driver)) { kvm_err("pKVM enabled without an IOMMU driver, do not run confidential workloads in virtual machines\n"); return 0; }