aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-08-30 17:15:23 -0700
committerSean Christopherson <[email protected]>2024-09-09 20:16:23 -0700
commit01dd4d319207c4cfd51a1c9a1812909e944d8c86 (patch)
treebf230d52547995d19cfb6c602051a8bff9b5ab3a /tools/testing/selftests/bpf/prog_tests/autoload.c
parent9c19129e535bfff85bdfcb5a804e19e5aae935b2 (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/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions