ia64/xen-unstable

changeset 5187:7d7ad3d01377

bitkeeper revision 1.1578 (429831b4aG5GnPML1pSzeV9PiOlFAA)

[PATCH] vmx-smsw.patch

Handle vmexits from the SMSW instruction correctly.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author arun.sharma@intel.com[kaf24]
date Sat May 28 08:54:12 2005 +0000 (2005-05-28)
parents a825a76d6b0f
children f5f2c67044b5
files xen/arch/x86/vmx.c
line diff
     1.1 --- a/xen/arch/x86/vmx.c	Sat May 28 08:53:55 2005 +0000
     1.2 +++ b/xen/arch/x86/vmx.c	Sat May 28 08:54:12 2005 +0000
     1.3 @@ -986,10 +986,9 @@ static int vmx_cr_access(unsigned long e
     1.4          __vmwrite(CR0_READ_SHADOW, value);
     1.5          break;
     1.6      case TYPE_LMSW:
     1.7 -        __vmwrite(CR0_READ_SHADOW, value);
     1.8 +        __vmread(CR0_READ_SHADOW, &value);
     1.9  	value = (value & ~0xF) |
    1.10 -		(((exit_qualification & LMSW_SOURCE_DATA) >> 16) & 0xF) |
    1.11 -		1 /* CR0.PE == 1 */;
    1.12 +		(((exit_qualification & LMSW_SOURCE_DATA) >> 16) & 0xF);
    1.13  	return vmx_set_cr0(value);
    1.14          break;
    1.15      default: