From: Avi Kivity Date: Wed, 2 Dec 2009 10:28:47 +0000 (+0200) Subject: KVM: VMX: Fix comparison of guest efer with stale host value X-Git-Tag: v2.6.33-rc1~387^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5696725b2a4c59503f5e0bc33adeee7f30cd45b;p=pandora-kernel.git KVM: VMX: Fix comparison of guest efer with stale host value update_transition_efer() masks out some efer bits when deciding whether to switch the msr during guest entry; for example, NX is emulated using the mmu so we don't need to disable it, and LMA/LME are handled by the hardware. However, with shared msrs, the comparison is made against a stale value; at the time of the guest switch we may be running with another guest's efer. Fix by deferring the mask/compare to the actual point of guest entry. Noted by Marcelo. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed