From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 0/2] Keep cr3 cached in VMCS Date: Sun, 5 Dec 2010 19:01:55 +0200 Message-ID: <1291568517-8717-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:29619 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755169Ab0LERCW (ORCPT ); Sun, 5 Dec 2010 12:02:22 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oB5H2Lvw012585 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 5 Dec 2010 12:02:22 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id oB5H2LQC027275 for ; Sun, 5 Dec 2010 12:02:21 -0500 Sender: kvm-owner@vger.kernel.org List-ID: This patchset keeps cr3 cached in the VMCS (GUEST_CR3) instead of syncing it every exit. Saves a VMEXIT on Intel with EPT enabled. Avi Kivity (2): KVM: Replace reads of vcpu->arch.cr3 by an accessor KVM: Fetch guest cr3 from hardware on demand arch/x86/include/asm/kvm_host.h | 2 ++ arch/x86/kvm/kvm_cache_regs.h | 7 +++++++ arch/x86/kvm/mmu.c | 6 +++--- arch/x86/kvm/svm.c | 13 +++++++++---- arch/x86/kvm/vmx.c | 24 +++++++++++++++--------- arch/x86/kvm/x86.c | 19 ++++++++++--------- 6 files changed, 46 insertions(+), 25 deletions(-)