Skip to content
Snippets Groups Projects
Commit 411c588d authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: MMU: Adjust shadow paging to work when SMEP=1 and CR0.WP=0


When CR0.WP=0, we sometimes map user pages as kernel pages (to allow
the kernel to write to them).  Unfortunately this also allows the kernel
to fetch from these pages, even if CR4.SMEP is set.

Adjust for this by also setting NX on the spte in these circumstances.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent a01c8f9b
No related branches found
No related tags found
No related merge requests found
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