VirtualBox

Changeset 87472 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Jan 28, 2021 7:59:55 PM (4 years ago)
Author:
vboxsync
Message:

VMM/HMVMX: Moving more stuff to HMR0PERVCPU. Created VMXVMCSINFOSHARED for some bits we seem to need to share with ring-3 (real mode, last branch stuff), the remaining VMXVMCSINFO structure is now ring-0 only. bugref:9217

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HMAll.cpp

    r82968 r87472  
    791791    if (enmGuestMode == PGMMODE_REAL)
    792792    {
    793         PVMXVMCSINFO pVmcsInfo = hmGetVmxActiveVmcsInfo(pVCpu);
    794         pVmcsInfo->fWasInRealMode = true;
     793        PVMXVMCSINFOSHARED pVmcsInfoShared = hmGetVmxActiveVmcsInfoShared(pVCpu);
     794        pVmcsInfoShared->fWasInRealMode = true;
    795795    }
    796796
  • trunk/src/VBox/VMM/VMMAll/HMVMXAll.cpp

    r82968 r87472  
    667667                 * (all sorts of RPL & DPL assumptions).
    668668                 */
    669                 PCVMXVMCSINFO pVmcsInfo = hmGetVmxActiveVmcsInfo(pVCpu);
     669                PCVMXVMCSINFOSHARED pVmcsInfo = hmGetVmxActiveVmcsInfoShared(pVCpu);
    670670                if (pVmcsInfo->fWasInRealMode)
    671671                {
     
    11031103 * @remarks This function may be called with preemption or interrupts disabled!
    11041104 */
    1105 VMM_INT_DECL(PVMXVMCSINFO) hmGetVmxActiveVmcsInfo(PVMCPU pVCpu)
     1105VMM_INT_DECL(PVMXVMCSINFOSHARED) hmGetVmxActiveVmcsInfoShared(PVMCPU pVCpu)
    11061106{
    11071107    if (!pVCpu->hm.s.vmx.fSwitchedToNstGstVmcs)
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