Skip to content
Commit 6faca2a5 authored by Krish Sadhukhan's avatar Krish Sadhukhan Committed by Paolo Bonzini
Browse files

nSVM: Add a test for NPF due to P=0 in NPT entry



If the P (present) bit in an NPT entry is cleared, accesses to the
corresponding guest physical address will fail and the guest will exit to
the host with an exit code of 0x400 (#NPF). The test checks for bits 2
and 32 to be set (respectively because all NPT accesses are considered
user accesses, and because the test encounters the P=0 entry while
translating the final guest physical address and not a guest page table.

Signed-off-by: default avatarKrish Sadhukhan <krish.sadhukhan@oracle.com>
Message-Id: <20200829005720.5325-1-krish.sadhukhan@oracle.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 0079fe89
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