VirtualBox

Changeset 19797 in vbox


Ignore:
Timestamp:
May 18, 2009 3:28:49 PM (15 years ago)
Author:
vboxsync
Message:

Release all taken locks in VMMR3FatalDump instead.

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

Legend:

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

    r19699 r19797  
    3434#include <VBox/vm.h>
    3535#include <VBox/uvm.h>
    36 #include <VBox/mm.h>
    37 #include <VBox/pgm.h>
    38 #include <VBox/iom.h>
    39 #include <VBox/pdm.h>
    4036
    4137#include <VBox/err.h>
     
    228224                if (   EMGetState(pVCpu) == EMSTATE_GURU_MEDITATION
    229225                    && pVM->enmVMState == VMSTATE_RUNNING)
    230                 {
    231                     Log(("Release locks owned by this EMT\n"));
    232                     /* Release owned locks to make sure other VCPUs can continue in case they were waiting for one. */
    233                     MMR3ReleaseOwnedLocks(pVM);
    234                     PGMR3ReleaseOwnedLocks(pVM);
    235                     PDMR3ReleaseOwnedLocks(pVM);
    236                     IOMR3ReleaseOwnedLocks(pVM);
    237                     EMR3ReleaseOwnedLocks(pVM);
    238 
    239226                    vmR3SetState(pVM, VMSTATE_GURU_MEDITATION);
    240                 }
    241227            }
    242228        }
  • trunk/src/VBox/VMM/VMMGuruMeditation.cpp

    r19679 r19797  
    3030#include "VMMInternal.h"
    3131#include <VBox/vm.h>
     32#include <VBox/mm.h>
     33#include <VBox/iom.h>
     34#include <VBox/em.h>
    3235
    3336#include <VBox/err.h>
     
    208211    PCDBGFINFOHLP           pHlp = &Hlp.Core;
    209212    vmmR3FatalDumpInfoHlpInit(&Hlp);
     213
     214    /* Release owned locks to make sure other VCPUs can continue in case they were waiting for one. */
     215    MMR3ReleaseOwnedLocks(pVM);
     216    PGMR3ReleaseOwnedLocks(pVM);
     217    PDMR3ReleaseOwnedLocks(pVM);
     218    IOMR3ReleaseOwnedLocks(pVM);
     219    EMR3ReleaseOwnedLocks(pVM);
    210220
    211221    /*
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