Skip to content
Commit 10318f98 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

x86: access: fix SMEP-disabled case with TCG



TCG always allows setting CR4.SMEP, even when the CPUID bit is
disabled.  In this case, however, the test causes a triple fault
because it tries to execute a user page with CR4.SMEP=1.  The
right way to do the test is to go through set_cr4_smep.  Change
set_cr4_smep to return whether an exception happened, and use it
in ac_test_run.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent d38b111b
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