VirtualBox

Changeset 87966 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 5, 2021 4:58:50 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143069
Message:

VMM/HMVMXR0: Nested VMX: hmR0VmxRemoveProcCtlsVmcs nit.

File:
1 edited

Legend:

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

    r87939 r87966  
    10791079    {
    10801080#ifdef VBOX_WITH_NESTED_HWVIRT_VMX
    1081         bool const fRemoveCtls = !pVmxTransient->fIsNestedGuest
    1082                                ? true
    1083                                : !CPUMIsGuestVmxProcCtlsSet(&pVCpu->cpum.GstCtx, uProcCtls);
     1081        if (   !pVmxTransient->fIsNestedGuest
     1082            || !CPUMIsGuestVmxProcCtlsSet(&pVCpu->cpum.GstCtx, uProcCtls))
    10841083#else
    10851084        NOREF(pVCpu);
    1086         bool const fRemoveCtls = true;
     1085        if (!pVmxTransient->fIsNestedGuest)
    10871086#endif
    1088         if (fRemoveCtls)
    10891087        {
    10901088            pVmcsInfo->u32ProcCtls &= ~uProcCtls;
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