diff options
author | Sean Christopherson <seanjc@google.com> | 2024-08-31 03:15:31 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-09-10 06:16:31 +0300 |
commit | 19ab2c8be070160be70a88027b3b93106fef7b89 (patch) | |
tree | c9f5feafbc52f6e81c63d260a09dafc091f6d840 /scripts/gdb/linux/utils.py | |
parent | 620525739521376a65a690df899e1596d56791f8 (diff) | |
download | linux-19ab2c8be070160be70a88027b3b93106fef7b89.tar.xz |
KVM: x86: Check EMULTYPE_WRITE_PF_TO_SP before unprotecting gfn
Don't bother unprotecting the target gfn if EMULTYPE_WRITE_PF_TO_SP is
set, as KVM will simply report the emulation failure to userspace. This
will allow converting reexecute_instruction() to use
kvm_mmu_unprotect_gfn_instead_retry() instead of kvm_mmu_unprotect_page().
Link: https://lore.kernel.org/r/20240831001538.336683-17-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