Skip to content
Commit b4a405c3 authored by Radim Krčmář's avatar Radim Krčmář Committed by Paolo Bonzini
Browse files

x86/vmx: fix detection of unmapped PTE



check_ept_ad() was testing get_ept_pte() for 0, which meant that the PTE
lookup failed.  dff740c0 ("x86: ept assertions") changed the return
value in that case to -1, which broke the test.

Returning 0 and -1 is ambiguous, so let's return false instead and get
the PTE through a pointer argument.  This skips a test that was failing
before, because it was looking at invalid type (the meta -1) instead of
the pte.

Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 23505ced
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment