From: Avi Kivity Subject: [PATCH 0/4] cr4 optimizations for vmx/ept Date: Mon, 7 Dec 2009 12:47:08 +0200 Message-ID: <1260182832-3974-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org To: Marcelo Tosatti , Sheng Yang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752837AbZLGKrI (ORCPT ); Mon, 7 Dec 2009 05:47:08 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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(-)