]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Add a debugfs file to dump radix mappings
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 8 Oct 2018 05:30:57 +0000 (16:30 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Oct 2018 05:04:27 +0000 (16:04 +1100)
commit92beea90194347931deb107ec3f80dfa6f502a02
tree20dbb1c493144d67afcb70d735942123db543f24
parentc92b0074b053b1aac76519d2edf291a243a9fca1
KVM: PPC: Book3S HV: Add a debugfs file to dump radix mappings

This adds a file called 'radix' in the debugfs directory for the
guest, which when read gives all of the valid leaf PTEs in the
partition-scoped radix tree for a radix guest, in human-readable
format.  It is analogous to the existing 'htab' file which dumps
the HPT entries for a HPT guest.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/kvm_book3s_64.h
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/kvm/book3s_hv.c