VirtualBox

Changeset 75731 in vbox


Ignore:
Timestamp:
Nov 26, 2018 11:05:34 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126930
Message:

VMM/VMEmt.cpp: Need to clear the pVM and pVCpu members for all VCPUs in the UVM structure before destroying the VM structure to avoid any accidental accesses later on (should fix random ttstVMM/tstVMREQ crashes on the testboxes)

File:
1 edited

Legend:

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

    r75646 r75731  
    283283
    284284        pUVM->pVM = NULL;
     285        for (VMCPUID iCpu = 0; iCpu < pUVM->cCpus; iCpu++)
     286        {
     287            pUVM->aCpus[iCpu].pVM   = NULL;
     288            pUVM->aCpus[iCpu].pVCpu = NULL;
     289        }
    285290
    286291        int rc2 = SUPR3CallVMMR0Ex(pVM->pVMR0, 0 /*idCpu*/, VMMR0_DO_GVMM_DESTROY_VM, 0, NULL);
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