summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-08-31 03:15:23 +0300
committerSean Christopherson <seanjc@google.com>2024-09-10 06:16:23 +0300
commit01dd4d319207c4cfd51a1c9a1812909e944d8c86 (patch)
treebf230d52547995d19cfb6c602051a8bff9b5ab3a /scripts/gdb/linux/utils.py
parent9c19129e535bfff85bdfcb5a804e19e5aae935b2 (diff)
downloadlinux-01dd4d319207c4cfd51a1c9a1812909e944d8c86.tar.xz
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions