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 <smostafa@google.com>
This commit is contained in:
committed by
Liana Kazanova (xWF)
parent
10ce996d75
commit
666107de1a
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user