diff options
| author | Yosry Ahmed <yosry@kernel.org> | 2026-07-28 17:42:27 +0000 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-07-29 05:45:27 -0700 |
| commit | e21d4dc0ca63cbb0be2a22c0aed42100b47940b7 (patch) | |
| tree | f23bbe6d5055ba0572a1db87035acc71fc17a8e9 /include/linux | |
| parent | 12f4d8b06a530599ef17123c5278dc1e90f93567 (diff) | |
KVM: selftests: Expose PTE masks to guests as part of an MMU
Expose a guest_mmu to the guest to allow guest code to use the PTE masks
for page table manipulation. Since guest page tables are not mapped in
the guest by default, zero the PGD in guest_mmu in an attempt to make it
more difficult for new tests to shoot themselves in the foot and assume
that page tables can be immediately used by guest code.
Ultimately, guest code can read CR3 any way, so guest_mmu.pgd doesn't
add a lot of value.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260728174232.2423257-9-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
