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

No differences found