direct-io.hg

changeset 15426:9590c9b48e07

vmx: Exclude VMX_PROCBASED_CTL2 from set of MSRs a VMX guest is allowd
to access.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Wed Jun 27 20:56:25 2007 +0100 (2007-06-27)
parents 6e934c799051
children 4ab9e4bbd61b
files xen/arch/x86/hvm/vmx/vmx.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vmx/vmx.c	Wed Jun 27 20:53:57 2007 +0100
     1.2 +++ b/xen/arch/x86/hvm/vmx/vmx.c	Wed Jun 27 20:56:25 2007 +0100
     1.3 @@ -2601,7 +2601,7 @@ static inline int vmx_do_msr_read(struct
     1.4      case MSR_IA32_APICBASE:
     1.5          msr_content = vcpu_vlapic(v)->hw.apic_base_msr;
     1.6          break;
     1.7 -    case MSR_IA32_VMX_BASIC...MSR_IA32_VMX_CR4_FIXED1:
     1.8 +    case MSR_IA32_VMX_BASIC...MSR_IA32_VMX_PROCBASED_CTLS2:
     1.9          goto gp_fault;
    1.10      default:
    1.11          if ( long_mode_do_msr_read(regs) )
    1.12 @@ -2727,7 +2727,7 @@ static inline int vmx_do_msr_write(struc
    1.13      case MSR_IA32_APICBASE:
    1.14          vlapic_msr_set(vcpu_vlapic(v), msr_content);
    1.15          break;
    1.16 -    case MSR_IA32_VMX_BASIC...MSR_IA32_VMX_CR4_FIXED1:
    1.17 +    case MSR_IA32_VMX_BASIC...MSR_IA32_VMX_PROCBASED_CTLS2:
    1.18          goto gp_fault;
    1.19      default:
    1.20          if ( !long_mode_do_msr_write(regs) )