commit | f78e917688edbf1f14c318d2e50dc8e7dad20445 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Wed May 12 00:28:44 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Wed May 19 11:41:08 2010 +0300 |
tree | 8894410296279382ec6d9860534442c4cd1a5087 | |
parent | 09c9e81366b9167b88ff05cf29fa94dc3553eb3d [diff] |
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 <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>