diff options
author | 2024-08-30 17:15:31 -0700 | |
---|---|---|
committer | 2024-09-09 20:16:31 -0700 | |
commit | 19ab2c8be070160be70a88027b3b93106fef7b89 (patch) | |
tree | c9f5feafbc52f6e81c63d260a09dafc091f6d840 /scripts/generate_rust_analyzer.py | |
parent | KVM: x86: Remove manual pfn lookup when retrying #PF after failed emulation (diff) | |
download | linux-rng-19ab2c8be070160be70a88027b3b93106fef7b89.tar.xz linux-rng-19ab2c8be070160be70a88027b3b93106fef7b89.zip |
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/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions