From: Avi Kivity Date: Sun, 24 Jan 2010 14:26:40 +0000 (+0200) Subject: KVM: VMX: Pass cr0.mp through to the guest when the fpu is active X-Git-Tag: v2.6.34-rc1~193^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81231c698a71af6e1815df72c06685d295e1cc1d;p=pandora-kernel.git KVM: VMX: Pass cr0.mp through to the guest when the fpu is active When cr0.mp is clear, the guest doesn't expect a #NM in response to a WAIT instruction. Because we always keep cr0.mp set, it will get a #NM, and potentially be confused. Fix by keeping cr0.mp set only when the fpu is inactive, and passing it through when inactive. Reported-by: Lorenzo Martignoni Analyzed-by: Gleb Natapov Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed