diff options
| author | Sean Christopherson <[email protected]> | 2022-10-06 00:45:07 +0000 | 
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2022-11-16 16:58:54 -0800 | 
| commit | 751f280017b697d98936618a21ca3defdc03a9f4 (patch) | |
| tree | 9f7c50420ca691d2f6356d9e2d164a9f84dbbc75 /tools/testing/selftests/kvm/lib/kvm_util.c | |
| parent | 816c54b74742ac1a74a74de9355ab982d11e63e6 (diff) | |
KVM: selftests: Drop reserved bit checks from PTE accessor
Drop the reserved bit checks from the helper to retrieve a PTE, there's
very little value in sanity checking the constructed page tables as any
will quickly be noticed in the form of an unexpected #PF.  The checks
also place unnecessary restrictions on the usage of the helpers, e.g. if
a test _wanted_ to set reserved bits for whatever reason.
Removing the NX check in particular allows for the removal of the @vcpu
param, which will in turn allow the helper to be reused nearly verbatim
for addr_gva2gpa().
Signed-off-by: Sean Christopherson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/kvm/lib/kvm_util.c')
0 files changed, 0 insertions, 0 deletions