Skip to content

cr4 optimizations for vmx/ept

Avi Kivity kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: VMX: Move some cr[04] related constants to vmx.carch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx.c+13 -130 replies
2/4KVM: Add accessor for reading cr4 (or some bits of cr4)arch/x86/include/asm/kvm_host.h arch/x86/kvm/kvm_cache_regs.h arch/x86/kvm/mmu.h +2 more+30 -174 replies
3/4KVM: VMX: Make guest cr4 mask more conservativearch/x86/kvm/vmx.c+6 -40 replies
4/4KVM: VMX: When using ept, allow the guest to own cr4.pgearch/x86/kvm/vmx.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] cr4 optimizations for vmx/ept

When ept is enabled, we aren't particularly interested in cr4.pge, so allow the guest to own it. This improves performance in vmap() intensive loads.

Avi Kivity (4):
KVM: VMX: Move some cr[04] related constants to vmx.c
KVM: Add accessor for reading cr4 (or some bits of cr4)
KVM: VMX: Make guest cr4 mask more conservative
KVM: VMX: When using ept, allow the guest to own cr4.pge

 arch/x86/include/asm/kvm_host.h |   14 +-------------
 arch/x86/kvm/kvm_cache_regs.h   |   12 ++++++++++++
 arch/x86/kvm/mmu.h              |    5 +++--
 arch/x86/kvm/vmx.c              |   32 ++++++++++++++++++++++++++------
 arch/x86/kvm/x86.c              |   16 ++++++----------
 5 files changed, 48 insertions(+), 31 deletions(-)