commit | d3edefc0035669e8817d1d5c32ef03e882477323 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Tue Jun 16 12:33:56 2009 +0300 |
committer | Avi Kivity <avi@redhat.com> | Thu Sep 10 08:32:57 2009 +0300 |
tree | 7fde2dfa8f43e1619e0d31549e54fef4d19a374d | |
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>