commit | 2fb92db1ec08f3235c500e7f460eeb78092d844e | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Wed Apr 27 19:42:18 2011 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun May 22 08:47:45 2011 -0400 |
tree | 9cc23153b938a29969baa86e8075c507a7a05570 | |
parent | 1aa366163b8b69f660cf94fd5062fa44859e4318 [diff] |
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>