VirtualBox

Ignore:
Timestamp:
Aug 15, 2019 3:46:09 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132753
Message:

Graphics/HGSMIHost.h: Avoid including vm.h just for three cases of VM_ASSERT_EMT. bugref:9217

Location:
trunk/src/VBox/Devices/Graphics/HGSMI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp

    r76553 r80295  
    5959 */
    6060
     61#define LOG_GROUP LOG_GROUP_HGSMI
    6162#include <iprt/alloc.h>
    6263#include <iprt/critsect.h>
     
    6869#include <VBox/AssertGuest.h>
    6970#include <iprt/errcore.h>
    70 #define LOG_GROUP LOG_GROUP_HGSMI
    7171#include <VBox/log.h>
    7272#include <VBox/vmm/ssm.h>
     73#include <VBox/vmm/vmm.h>
    7374
    7475#include "HGSMIHost.h"
     
    326327    AssertPtr(pIns);
    327328
    328     VM_ASSERT_EMT(pIns->pVM);
     329    Assert(VMMGetCpu(pIns->pVM) != NULL);
    329330
    330331#ifndef VBOX_WITH_WDDM
     
    343344static bool hgsmiProcessHostCmdCompletion(HGSMIINSTANCE *pIns, HGSMIOFFSET offBuffer, bool fCompleteFirst)
    344345{
    345     VM_ASSERT_EMT(pIns->pVM);
     346    Assert(VMMGetCpu(pIns->pVM) != NULL);
    346347
    347348    int rc = hgsmiFIFOLock(pIns);
     
    413414    LogFlowFunc(("pIns %p\n", pIns));
    414415
    415     VM_ASSERT_EMT(pIns->pVM);
     416    Assert(VMMGetCpu(pIns->pVM) != NULL);
    416417
    417418    AssertPtrReturn(pIns->pHGFlags, HGSMIOFFSET_VOID);
  • trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.h

    r76565 r80295  
    2222#endif
    2323
    24 #include <VBox/vmm/vm.h>
    25 
     24#include <VBox/types.h>
    2625#include <HGSMI.h>
    2726#include <HGSMIChSetup.h>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette