[PATCH v2 0/2] KVM: x86/mmu: Optimize rsvd pte checks

From: Sean Christopherson
Date: Thu Jan 09 2020 - 18:06:43 EST


Two patches to optimize the reserved bit and illegal EPT memtype/XWR
checks, and more importantly, clean up an undocumented, subtle bitwise-OR
in the code.

v2: Rewrite everything.

v1: https://lkml.kernel.org/r/20200108001859.25254-1-sean.j.christopherson@xxxxxxxxx

Sean Christopherson (2):
KVM: x86/mmu: Reorder the reserved bit check in
prefetch_invalid_gpte()
KVM: x86/mmu: Micro-optimize nEPT's bad memptype/XWR checks

arch/x86/kvm/mmu/mmu.c | 26 ++++++++++++++------------
arch/x86/kvm/mmu/paging_tmpl.h | 23 +++++++++++++++++++----
2 files changed, 33 insertions(+), 16 deletions(-)

--
2.24.1