VirtualBox

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


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

VMM/HMVMXR0: Checking this once outside the loop is sufficient.

File:
1 edited

Legend:

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

    r48649 r48651  
    916916#undef VMXLOCAL_INIT_VM_MEMOBJ
    917917
     918    /* The VMCS size cannot be more than 4096 bytes. See Intel spec. Appendix A.1 "Basic VMX Information". */
     919    AssertReturnStmt(MSR_IA32_VMX_BASIC_INFO_VMCS_SIZE(pVM->hm.s.vmx.Msrs.u64BasicInfo) <= PAGE_SIZE,
     920                     (&pVM->aCpus[0])->hm.s.u32HMError = VMX_UFC_INVALID_VMCS_SIZE,
     921                     VERR_HM_UNSUPPORTED_CPU_FEATURE_COMBO);
     922
    918923    /*
    919924     * Allocate all the VT-x structures.
     
    944949        PVMCPU pVCpu = &pVM->aCpus[i];
    945950        AssertPtr(pVCpu);
    946 
    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);
    951951
    952952        /* Allocate the VM control structure (VMCS). */
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