KVM: arm64: Disable stage-2 ptdump of pKVM
PATCH v2 1/1 KVM: arm64: Disable stage-2 ptdump of pKVM
With pKVM enabled, guest stage-2 page tables are owned and managed by the hypervisor. The host's pgt is uninitialised.
Skip registering stage-2 ptdump debugfs files when protected KVM is enabled.
Fixes fce886a60207 ("KVM: arm64: Plumb the pKVM MMU in KVM")
Reviewed-by Fuad Tabba <[email protected]>
Signed-off-by Vincent Donnefort <[email protected]>
---
Notes:
v2:
- Point Fixes tag to fce886a60207 (Fuad)
- Pick up Reviewed-by from Fuad
v1: https://lore.kernel.org/all/[email protected]/
arch/arm64/kvm/ptdump.c | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/kvm/ptdump.c +4 -0
@@ -300,6 +300,10 @@ void kvm_nested_s2_ptdump_remove_debugfs(struct kvm_s2_mmu *mmu)void kvm_s2_ptdump_create_debugfs (struct kvm *kvm) { +/* pKVM handles the page-tables in the hypervisor */ +if (is_protected_kvm_enabled ()) +return ; +debugfs_create_file ("stage2_page_tables" ,0400 , kvm->debugfs_dentry, &kvm->arch.mmu, &kvm_ptdump_guest_fops); debugfs_create_file("ipa_range", 0400, kvm->debugfs_dentry,
base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
Signature · 1 line
2.56.0.rc1.310.g51773c2048-goog
Quoted 8 lines · Vincent Donnefort
With pKVM enabled, guest stage-2 page tables are owned and managed by the hypervisor. The host's pgt is uninitialised.
Skip registering stage-2 ptdump debugfs files when protected KVM is enabled.
[...]
Applied to next, thanks!
[1/1] KVM: arm64: Disable stage-2 ptdump of pKVM
commit: 0dea17ffe6757a6249d143e607e786144aceee9c
Cheers,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.