public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Keep cr3 cached in VMCS
@ 2010-12-05 17:01 Avi Kivity
  2010-12-05 17:01 ` [PATCH 1/2] KVM: Replace reads of vcpu->arch.cr3 by an accessor Avi Kivity
  2010-12-05 17:01 ` [PATCH 2/2] KVM: Fetch guest cr3 from hardware on demand Avi Kivity
  0 siblings, 2 replies; 4+ messages in thread
From: Avi Kivity @ 2010-12-05 17:01 UTC (permalink / raw)
  To: Marcelo Tosatti, kvm

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(-)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-06 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-05 17:01 [PATCH 0/2] Keep cr3 cached in VMCS Avi Kivity
2010-12-05 17:01 ` [PATCH 1/2] KVM: Replace reads of vcpu->arch.cr3 by an accessor Avi Kivity
2010-12-05 17:01 ` [PATCH 2/2] KVM: Fetch guest cr3 from hardware on demand Avi Kivity
2010-12-06 16:41   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox