diff options
author | Avi Kivity <avi@redhat.com> | 2009-06-16 12:33:56 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 08:32:57 +0300 |
commit | d3edefc0035669e8817d1d5c32ef03e882477323 (patch) | |
tree | 7fde2dfa8f43e1619e0d31549e54fef4d19a374d /arch/x86/kvm/svm.c | |
parent | 681405bfc73a2717ae9b03b2bad465b009106f31 (diff) |
KVM: VMX: Only reload guest cr2 if different from host cr2
cr2 changes only rarely, and writing it is expensive. Avoid the costly cr2
writes by checking if it does not already hold the desired value.
Shaves 70 cycles off the vmexit latency.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
0 files changed, 0 insertions, 0 deletions