aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-06-16 12:33:56 +0300
committerAvi Kivity <avi@redhat.com>2009-09-10 08:32:57 +0300
commitd3edefc0035669e8817d1d5c32ef03e882477323 (patch)
tree7fde2dfa8f43e1619e0d31549e54fef4d19a374d /arch/x86/kvm/svm.c
parent681405bfc73a2717ae9b03b2bad465b009106f31 (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