VirtualBox

Changeset 74512 in vbox for trunk/src


Ignore:
Timestamp:
Sep 28, 2018 6:56:26 AM (6 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Nested VMX: bugref:9180 Paranoia, since our code does not check secondary processor-based controls each time it
checks one of its sub-controls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r74488 r74512  
    14281428    pGuestFeat->fVmxVmwriteAll            = (pBaseFeat->fVmxVmwriteAll            & EmuFeat.fVmxVmwriteAll           );
    14291429    pGuestFeat->fVmxEntryInjectSoftInt    = (pBaseFeat->fVmxEntryInjectSoftInt    & EmuFeat.fVmxEntryInjectSoftInt   );
     1430
     1431    /* Paranoia. */
     1432    if (!pGuestFeat->fVmxSecondaryExecCtls)
     1433    {
     1434        Assert(!pGuestFeat->fVmxVirtApicAccess);
     1435        Assert(!pGuestFeat->fVmxEpt);
     1436        Assert(!pGuestFeat->fVmxDescTableExit);
     1437        Assert(!pGuestFeat->fVmxRdtscp);
     1438        Assert(!pGuestFeat->fVmxVirtX2ApicMode);
     1439        Assert(!pGuestFeat->fVmxVpid);
     1440        Assert(!pGuestFeat->fVmxWbinvdExit);
     1441        Assert(!pGuestFeat->fVmxUnrestrictedGuest);
     1442        Assert(!pGuestFeat->fVmxApicRegVirt);
     1443        Assert(!pGuestFeat->fVmxVirtIntDelivery);
     1444        Assert(!pGuestFeat->fVmxPauseLoopExit);
     1445        Assert(!pGuestFeat->fVmxRdrandExit);
     1446        Assert(!pGuestFeat->fVmxInvpcid);
     1447        Assert(!pGuestFeat->fVmxVmFunc);
     1448        Assert(!pGuestFeat->fVmxVmcsShadowing);
     1449        Assert(!pGuestFeat->fVmxRdseedExit);
     1450        Assert(!pGuestFeat->fVmxPml);
     1451        Assert(!pGuestFeat->fVmxEptXcptVe);
     1452        Assert(!pGuestFeat->fVmxXsavesXrstors);
     1453        Assert(!pGuestFeat->fVmxUseTscScaling);
     1454    }
    14301455}
    14311456
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