]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7ad53ab6798da611e63909ead840562e1202454
tree9cc23153b938a29969baa86e8075c507a7a05570
parent2d5445d26cb2580be01c0913b88a64526a9743b3
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