]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/vmx.c
KVM: VMX: Cache vmcs segment fields
authorAvi Kivity <avi@redhat.com>
Wed, 27 Apr 2011 16:42:18 +0000 (19:42 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:47:45 +0000 (08:47 -0400)
commit2fb92db1ec08f3235c500e7f460eeb78092d844e
tree9cc23153b938a29969baa86e8075c507a7a05570
parent1aa366163b8b69f660cf94fd5062fa44859e4318
KVM: VMX: Cache vmcs segment fields

Since the emulator now checks segment limits and access rights, it
generates a lot more accesses to the vmcs segment fields.  Undo some
of the performance hit by cacheing those fields in a read-only cache
(the entire cache is invalidated on any write, or on guest exit).

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c