VirtualBox

Changeset 97317 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Oct 27, 2022 11:29:00 AM (2 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Nested VMX: bugref:10092 Keep secondary VM-exit controls naming similar to secondary VM-exec controls.

File:
1 edited

Legend:

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

    r97316 r97317  
    12781278        VMXFEATDUMP("ExitLoadEferMsr - Load IA32_EFER MSR on VM-exit        ", fVmxExitLoadEferMsr);
    12791279        VMXFEATDUMP("SavePreemptTimer - Save VMX-preemption timer           ", fVmxSavePreemptTimer);
    1280         VMXFEATDUMP("ExitCtls2 - Secondary VM-exit controls                 ", fVmxExitCtls2);
     1280        VMXFEATDUMP("SecondaryExitCtls - Secondary VM-exit controls         ", fVmxSecondaryExitCtls);
    12811281
    12821282        /* Miscellaneous data. */
     
    14591459                                 | (pGuestFeatures->fVmxExitLoadEferMsr   << VMX_BF_EXIT_CTLS_LOAD_EFER_MSR_SHIFT       )
    14601460                                 | (pGuestFeatures->fVmxSavePreemptTimer  << VMX_BF_EXIT_CTLS_SAVE_PREEMPT_TIMER_SHIFT  )
    1461                                  | (pGuestFeatures->fVmxExitCtls2        << VMX_BF_EXIT_CTLS_USE_SECONDARY_CTLS_SHIFT  );
     1461                                 | (pGuestFeatures->fVmxSecondaryExitCtls << VMX_BF_EXIT_CTLS_USE_SECONDARY_CTLS_SHIFT  );
    14621462        /* Set the default1 class bits. See Intel spec. A.4 "VM-exit Controls". */
    14631463        uint32_t const fAllowed0 = VMX_EXIT_CTLS_DEFAULT1;
     
    18761876    EmuFeat.fVmxExitLoadEferMsr       = 1;
    18771877    EmuFeat.fVmxSavePreemptTimer      = 0;  /* Cannot be enabled if VMX-preemption timer is disabled. */
    1878     EmuFeat.fVmxExitCtls2             = 0;
     1878    EmuFeat.fVmxSecondaryExitCtls     = 0;
    18791879    EmuFeat.fVmxExitSaveEferLma       = 1;  /* Cannot be disabled if unrestricted guest is enabled. */
    18801880    EmuFeat.fVmxPt                    = 0;
     
    19581958    pGuestFeat->fVmxExitLoadEferMsr       = (pBaseFeat->fVmxExitLoadEferMsr       & EmuFeat.fVmxExitLoadEferMsr      );
    19591959    pGuestFeat->fVmxSavePreemptTimer      = (pBaseFeat->fVmxSavePreemptTimer      & EmuFeat.fVmxSavePreemptTimer     );
    1960     pGuestFeat->fVmxExitCtls2             = (pBaseFeat->fVmxExitCtls2             & EmuFeat.fVmxExitCtls2            );
     1960    pGuestFeat->fVmxSecondaryExitCtls     = (pBaseFeat->fVmxSecondaryExitCtls     & EmuFeat.fVmxSecondaryExitCtls    );
    19611961    pGuestFeat->fVmxExitSaveEferLma       = (pBaseFeat->fVmxExitSaveEferLma       & EmuFeat.fVmxExitSaveEferLma      );
    19621962    pGuestFeat->fVmxPt                    = (pBaseFeat->fVmxPt                    & EmuFeat.fVmxPt                   );
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