All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vmx-smsw.patch
@ 2005-05-27 19:40 Arun Sharma
  0 siblings, 0 replies; only message in thread
From: Arun Sharma @ 2005-05-27 19:40 UTC (permalink / raw)
  To: Ian Pratt, Keir Fraser; +Cc: xen-devel

Handle vmexits from the SMSW instruction correctly.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>

--- 1.58/xen/arch/x86/vmx.c	2005-05-26 19:36:15 -07:00
+++ edited/xen/arch/x86/vmx.c	2005-05-27 12:27:13 -07:00
@@ -987,10 +986,9 @@
         __vmwrite(CR0_READ_SHADOW, value);
         break;
     case TYPE_LMSW:
-        __vmwrite(CR0_READ_SHADOW, value);
+        __vmread(CR0_READ_SHADOW, &value);
 	value = (value & ~0xF) |
-		(((exit_qualification & LMSW_SOURCE_DATA) >> 16) & 0xF) |
-		1 /* CR0.PE == 1 */;
+		(((exit_qualification & LMSW_SOURCE_DATA) >> 16) & 0xF);
 	return vmx_set_cr0(value);
         break;
     default:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-27 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-27 19:40 [PATCH] vmx-smsw.patch Arun Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.