VirtualBox

Changeset 48649 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 24, 2013 9:05:56 AM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: VMCS size is bits 44:32 not 43:32. Assert what the Intel spec. claims as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r48648 r48649  
    945945        AssertPtr(pVCpu);
    946946
     947        /* The VMCS size cannot be more than 4096 bytes. See Intel spec. Appendix A.1 "Basic VMX Information". */
     948        AssertReturnStmt(MSR_IA32_VMX_BASIC_INFO_VMCS_SIZE(pVM->hm.s.vmx.Msrs.u64BasicInfo) <= PAGE_SIZE,
     949                         pVCpu->hm.s.u32HMError = VMX_UFC_INVALID_VMCS_SIZE,
     950                         VERR_HM_UNSUPPORTED_CPU_FEATURE_COMBO);
     951
    947952        /* Allocate the VM control structure (VMCS). */
    948         AssertReturn(MSR_IA32_VMX_BASIC_INFO_VMCS_SIZE(pVM->hm.s.vmx.Msrs.u64BasicInfo) <= PAGE_SIZE, VERR_INTERNAL_ERROR);
    949953        rc = hmR0VmxPageAllocZ(&pVCpu->hm.s.vmx.hMemObjVmcs, &pVCpu->hm.s.vmx.pvVmcs, &pVCpu->hm.s.vmx.HCPhysVmcs);
    950954        if (RT_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette