VirtualBox

Changeset 28319 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Apr 14, 2010 6:25:23 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60078
Message:

pdmdev: Made PDMDevHlpVMState available in R0 and RC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/PDMR0Device.cpp

    r26376 r28319  
    162162
    163163
     164/** @interface_method_impl{PDMDEVHLPR0,pfnVMState} */
     165static DECLCALLBACK(VMSTATE) pdmR0DevHlp_VMState(PPDMDEVINS pDevIns)
     166{
     167    PDMDEV_ASSERT_DEVINS(pDevIns);
     168
     169    VMSTATE enmVMState = pDevIns->Internal.s.pVMR0->enmVMState;
     170
     171    LogFlow(("pdmR0DevHlp_VMState: caller=%p/%d: returns %d\n", pDevIns, pDevIns->iInstance, enmVMState));
     172    return enmVMState;
     173}
     174
     175
    164176/** @interface_method_impl{PDMDEVHLPR0,pfnVMSetError} */
    165177static DECLCALLBACK(int) pdmR0DevHlp_VMSetError(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...)
     
    255267    pdmR0DevHlp_PhysWrite,
    256268    pdmR0DevHlp_A20IsEnabled,
     269    pdmR0DevHlp_VMState,
    257270    pdmR0DevHlp_VMSetError,
    258271    pdmR0DevHlp_VMSetErrorV,
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