aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2021-06-22 10:57:38 -0700
committerPaolo Bonzini <[email protected]>2021-06-24 18:00:48 -0400
commit9a65d0b70fa06ae46b9f8ab7dc8e6b3c6f4661ba (patch)
tree0687c57133088cb55714e1b2a863fd64fd6c1542 /tools/perf/scripts/python/export-to-sqlite.py
parentfdaa293598f908adb945001dabb305225144e183 (diff)
KVM: x86/mmu: Get CR4.SMEP from MMU, not vCPU, in shadow page fault
Use the current MMU instead of vCPU state to query CR4.SMEP when handling a page fault. In the nested NPT case, the current CR4.SMEP reflects L2, whereas the page fault is shadowing L1's NPT, which uses L1's hCR4. Practically speaking, this is a nop a NPT walks are always user faults, i.e. this code will never be reached, but fix it up for consistency. Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions