VirtualBox

Changeset 50856 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Mar 24, 2014 2:11:10 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92946
Message:

VMM: Assert 4K alignment on global VT-x and AMD-V physical pages. Change some release assertions to debug ones.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

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

    r49990 r50856  
    321321                              void *pvArg)
    322322{
     323    Assert(!fEnabledByHost);
     324    Assert(HCPhysCpuPage && HCPhysCpuPage != NIL_RTHCPHYS);
     325    Assert(RT_ALIGN_T(HCPhysCpuPage, _4K, RTHCPHYS) == HCPhysCpuPage);
     326    Assert(pvCpuPage);
    323327    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    324     AssertReturn(!fEnabledByHost, VERR_INVALID_PARAMETER);
    325     AssertReturn(   HCPhysCpuPage
    326                  && HCPhysCpuPage != NIL_RTHCPHYS, VERR_INVALID_PARAMETER);
    327     AssertReturn(pvCpuPage, VERR_INVALID_PARAMETER);
     328
    328329    NOREF(pvArg);
    329330    NOREF(fEnabledByHost);
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r50749 r50856  
    742742static int hmR0VmxEnterRootMode(PVM pVM, RTHCPHYS HCPhysCpuPage, void *pvCpuPage)
    743743{
    744     AssertReturn(HCPhysCpuPage != 0 && HCPhysCpuPage != NIL_RTHCPHYS, VERR_INVALID_PARAMETER);
    745     AssertReturn(pvCpuPage, VERR_INVALID_PARAMETER);
     744    Assert(HCPhysCpuPage && HCPhysCpuPage != NIL_RTHCPHYS);
     745    Assert(RT_ALIGN_T(HCPhysCpuPage, _4K, RTHCPHYS) == HCPhysCpuPage);
     746    Assert(pvCpuPage);
    746747    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    747748
     
    10461047                              void *pvMsrs)
    10471048{
    1048     AssertReturn(pCpu, VERR_INVALID_PARAMETER);
    1049     AssertReturn(pvMsrs, VERR_INVALID_PARAMETER);
     1049    Assert(pCpu);
     1050    Assert(pvMsrs);
    10501051    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    10511052
Note: See TracChangeset for help on using the changeset viewer.

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