mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
Revert "ANDROID: KVM: arm64: Initialize pkvm_pgtable.mm_ops earlier"
This reverts commit e3bc721865.
Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I0f24937e19518bab92d7c649c6f87ec18eec2549
This commit is contained in:
@@ -268,6 +268,12 @@ void __noreturn __pkvm_init_finalise(void)
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
if (kvm_iommu_ops.init) {
|
||||
ret = kvm_iommu_ops.init();
|
||||
if (ret)
|
||||
goto out;
|
||||
}
|
||||
|
||||
pkvm_pgtable_mm_ops = (struct kvm_pgtable_mm_ops) {
|
||||
.zalloc_page = hyp_zalloc_hyp_page,
|
||||
.phys_to_virt = hyp_phys_to_virt,
|
||||
@@ -278,12 +284,6 @@ void __noreturn __pkvm_init_finalise(void)
|
||||
};
|
||||
pkvm_pgtable.mm_ops = &pkvm_pgtable_mm_ops;
|
||||
|
||||
if (kvm_iommu_ops.init) {
|
||||
ret = kvm_iommu_ops.init();
|
||||
if (ret)
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = finalize_host_mappings();
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user