mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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: fce886a602 ("KVM: arm64: Plumb the pKVM MMU in KVM")
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20260924100459.831013-1-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
This commit is contained in:
parent
67d00fcc00
commit
0dea17ffe6
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user