aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorDongxiao Xu <[email protected]>2013-02-04 11:50:43 +0800
committerMarcelo Tosatti <[email protected]>2013-02-05 23:28:07 -0200
commitc08800a56cb8622bb61577abb4a120c6fdc4b9be (patch)
treec9195953c1e901dfa44238facd4fc1402d1b9fc8 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parent4293b5e5a68074431cafa74d549c1327ba1d0deb (diff)
KVM: VMX: disable SMEP feature when guest is in non-paging mode
SMEP is disabled if CPU is in non-paging mode in hardware. However KVM always uses paging mode to emulate guest non-paging mode with TDP. To emulate this behavior, SMEP needs to be manually disabled when guest switches to non-paging mode. We met an issue that, SMP Linux guest with recent kernel (enable SMEP support, for example, 3.5.3) would crash with triple fault if setting unrestricted_guest=0. This is because KVM uses an identity mapping page table to emulate the non-paging mode, where the page table is set with USER flag. If SMEP is still enabled in this case, guest will meet unhandlable page fault and then crash. Reviewed-by: Gleb Natapov <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Signed-off-by: Dongxiao Xu <[email protected]> Signed-off-by: Xiantao Zhang <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions