diff options
author | 2024-08-30 17:15:23 -0700 | |
---|---|---|
committer | 2024-09-09 20:16:23 -0700 | |
commit | 01dd4d319207c4cfd51a1c9a1812909e944d8c86 (patch) | |
tree | bf230d52547995d19cfb6c602051a8bff9b5ab3a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: x86: Store gpa as gpa_t, not unsigned long, when unprotecting for retry (diff) | |
download | linux-rng-01dd4d319207c4cfd51a1c9a1812909e944d8c86.tar.xz linux-rng-01dd4d319207c4cfd51a1c9a1812909e944d8c86.zip |
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-postgresql.py')
0 files changed, 0 insertions, 0 deletions