From: Avi Kivity Date: Tue, 11 May 2010 21:28:44 +0000 (+0300) Subject: KVM: Don't allow lmsw to clear cr0.pe X-Git-Tag: v2.6.35-rc1~436^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f78e917688edbf1f14c318d2e50dc8e7dad20445;p=pandora-kernel.git KVM: Don't allow lmsw to clear cr0.pe The current lmsw implementation allows the guest to clear cr0.pe, contrary to the manual, which breaks EMM386.EXE. Fix by ORing the old cr0.pe with lmsw's operand. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed