diff options
author | Sean Christopherson <seanjc@google.com> | 2024-08-30 17:15:23 -0700 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-09-09 20:16:23 -0700 |
commit | 01dd4d319207c4cfd51a1c9a1812909e944d8c86 (patch) | |
tree | bf230d52547995d19cfb6c602051a8bff9b5ab3a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 9c19129e535bfff85bdfcb5a804e19e5aae935b2 (diff) |
KVM: x86/mmu: Apply retry protection to "fast nTDP unprotect" path
Move the anti-infinite-loop protection provided by last_retry_{eip,addr}
into kvm_mmu_write_protect_fault() so that it guards unprotect+retry that
never hits the emulator, as well as reexecute_instruction(), which is the
last ditch "might as well try it" logic that kicks in when emulation fails
on an instruction that faulted on a write-protected gfn.
Add a new helper, kvm_mmu_unprotect_gfn_and_retry(), to set the retry
fields and deduplicate other code (with more to come).
Link: https://lore.kernel.org/r/20240831001538.336683-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions