Revert "ANDROID: Revert^2 "KVM: arm64: iommu: Allow to boot without IOMMU driver""
This reverts commit 234a951b24.
Change-Id: I96bdea39f682840c79957b87286f47ce261a3daa
Signed-off-by: Sebastian Ene <sebastianene@google.com>
This commit is contained in:
@@ -274,7 +274,7 @@ int kvm_iommu_init(struct kvm_iommu_ops *ops,
|
|||||||
!ops->alloc_domain ||
|
!ops->alloc_domain ||
|
||||||
!ops->free_domain ||
|
!ops->free_domain ||
|
||||||
!ops->get_iommu_by_id)
|
!ops->get_iommu_by_id)
|
||||||
return 0;
|
return -ENODEV;
|
||||||
|
|
||||||
ret = hyp_pool_init_empty(&iommu_host_pool, 64);
|
ret = hyp_pool_init_empty(&iommu_host_pool, 64);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ int kvm_iommu_init_driver(void)
|
|||||||
{
|
{
|
||||||
if (!smp_load_acquire(&iommu_driver) || !iommu_driver->get_iommu_id_by_of) {
|
if (!smp_load_acquire(&iommu_driver) || !iommu_driver->get_iommu_id_by_of) {
|
||||||
kvm_err("pKVM enabled without an IOMMU driver, do not run confidential workloads in virtual machines\n");
|
kvm_err("pKVM enabled without an IOMMU driver, do not run confidential workloads in virtual machines\n");
|
||||||
return 0;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
kvm_hyp_iommu_domains = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO,
|
kvm_hyp_iommu_domains = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO,
|
||||||
|
|||||||
Reference in New Issue
Block a user