linux/arch/x86/kvm/mmu
Sean Christopherson 5c64aba517 KVM: x86/mmu: Drop exec/NX check from "page fault can be fast"
Tweak the "page fault can be fast" logic to explicitly check for !PRESENT
faults in the access tracking case, and drop the exec/NX check that
becomes redundant as a result.  No sane hardware will generate an access
that is both an instruct fetch and a write, i.e. it's a waste of cycles.
If hardware goes off the rails, or KVM runs under a misguided hypervisor,
spuriously running throught fast path is benign (KVM has been uknowingly
being doing exactly that for years).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220423034752.1161007-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-05-12 09:51:41 -04:00
..
mmu_internal.h KVM: x86/mmu: Zap invalidated roots via asynchronous worker 2022-03-08 10:55:27 -05:00
mmu.c KVM: x86/mmu: Drop exec/NX check from "page fault can be fast" 2022-05-12 09:51:41 -04:00
mmutrace.h KVM: x86/mmu: Add tracepoint for splitting huge pages 2022-02-10 13:50:43 -05:00
page_track.c KVM: use __vcalloc for very large allocations 2022-03-08 09:30:57 -05:00
paging_tmpl.h KVM: X86/MMU: Fix shadowing 5-level NPT for 4-level NPT L1 guest 2022-04-29 12:50:00 -04:00
paging.h KVM: x86/mmu: Do not apply HPA (memory encryption) mask to GPAs 2021-07-14 12:17:56 -04:00
spte.c Merge branch 'kvm-tdp-mmu-atomicity-fix' into HEAD 2022-05-03 07:29:30 -04:00
spte.h KVM: x86/mmu: Don't attempt fast page fault just because EPT is in use 2022-05-12 09:51:41 -04:00
tdp_iter.c KVM: x86/mmu: Add helpers to read/write TDP MMU SPTEs and document RCU 2022-03-08 09:31:52 -05:00
tdp_iter.h KVM: x86/mmu: Use atomic XCHG to write TDP MMU SPTEs with volatile bits 2022-05-03 07:22:32 -04:00
tdp_mmu.c KVM: x86/mmu: Don't attempt fast page fault just because EPT is in use 2022-05-12 09:51:41 -04:00
tdp_mmu.h KVM: x86/mmu: Zap only TDP MMU leafs in zap range and mmu_notifier unmap 2022-04-02 05:34:39 -04:00