From: Avi Kivity Date: Tue, 16 Jun 2009 09:33:56 +0000 (+0300) Subject: KVM: VMX: Only reload guest cr2 if different from host cr2 X-Git-Tag: v2.6.32-rc1~693^2~136 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3edefc0035669e8817d1d5c32ef03e882477323;p=pandora-kernel.git 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 --- Reading git-diff-tree failed