OSDN Git Service

KVM: selftests: Verify parent PTE is PRESENT when getting child PTE
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:45:09 +0000 (00:45 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Nov 2022 00:58:55 +0000 (16:58 -0800)
commited0b58fc6f0bdde360c28314e0faedc9a0a6c3de
tree05719b537fc435e2e554977d6226e50a31e3531e
parent91add12d384c650d243b8ccdee1f2ddea3c9a85d
KVM: selftests: Verify parent PTE is PRESENT when getting child PTE

Verify the parent PTE is PRESENT when getting a child via virt_get_pte()
so that the helper can be used for getting PTEs/GPAs without losing
sanity checks that the walker isn't wandering into the weeds.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221006004512.666529-5-seanjc@google.com
tools/testing/selftests/kvm/lib/x86_64/processor.c