TM.cpp revision c3e9855ef4180dd29b47a3ddd09139a25b2bf984
/* $Id$ */
/** @file
* TM - Timeout Manager.
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
/** @page pg_tm TM - The Time Manager
*
* The Time Manager abstracts the CPU clocks and manages timers used by VM device.
*
*
*
* @section sec_tm_timers Timers
*
* The timers supports multiple clocks. Currently there are two clocks in the
* TM, the host real time clock and the guest virtual clock. Each clock has it's
* own set of scheduling facilities which are identical but for the clock source.
*
* Take one such timer scheduling facility, or timer queue if you like. There are
* a few factors which makes it a bit complex. First there is the usual GC vs. HC
* thing. Then there is multiple threads, and then there is the fact that on Unix
* we might just as well take a timer signal which checks whether it's wise to
* schedule timers while we're scheduling them. On API level, all but the create
* and save APIs must be mulithreaded.
*
* The design is using a doubly linked HC list of active timers which is ordered
* by expire date. Updates to the list is batched in a singly linked list (linked
* by handle not pointer for atomically update support in both GC and HC) and
* will be processed by the emulation thread.
*
* For figuring out when there is need to schedule timers a high frequency
* asynchronous timer is employed using Host OS services. Its task is to check if
* there are anything batched up or if a head has expired. If this is the case
* a forced action is signals and the emulation thread will process this ASAP.
*
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_TM
#include "TMInternal.h"
#include <iprt/semaphore.h>
/*******************************************************************************
* Defined Constants And Macros *
*******************************************************************************/
/** The current saved state version.*/
#define TM_SAVED_STATE_VERSION 2
/*******************************************************************************
* Internal Functions *
*******************************************************************************/
static uint64_t tmR3Calibrate(void);
/**
* Internal function for getting the clock time.
*
* @returns clock time.
* @param pVM The VM handle.
* @param enmClock The clock.
*/
{
switch (enmClock)
{
default:
return ~(uint64_t)0;
}
}
/**
* Initializes the TM.
*
* @returns VBox status code.
* @param pVM The VM to operate on.
*/
{
LogFlow(("TMR3Init:\n"));
/*
* Assert alignment and sizes.
*/
/*
* Init the structure.
*/
void *pv;
/*
* We indirectly - thru RTTimeNanoTS and RTTimeMilliTS - use the global
* info page (GIP) for both the virtual and the real clock. By mapping
* the GIP into guest context we can get just as accurate time even there.
* All that's required is that the g_pSUPGlobalInfoPage symbol is available
* to the GC Runtime.
*/
if (VBOX_FAILURE(rc))
{
return rc;
}
/*
* Calibrate the cpu timestamp counter.
*/
Log(("TM: cTSCTicksPerSecond=%#RX64 (%RU64)\n", pVM->tm.s.cTSCTicksPerSecond, pVM->tm.s.cTSCTicksPerSecond));
/*
* Register saved state.
*/
if (VBOX_FAILURE(rc))
return rc;
/*
* Setup the warp drive.
*/
rc = CFGMR3QueryU32(CFGMR3GetRoot(pVM), "WarpDrivePercentage", &pVM->tm.s.u32VirtualWarpDrivePercentage);
if (rc == VERR_CFGM_VALUE_NOT_FOUND)
else if (VBOX_FAILURE(rc))
N_("Configuration error: \"WarpDrivePercent\" = %RI32 is not in the range 2..20000!"),
/*
* Start the timer (guard against REM not yielding).
*/
if (rc == VERR_CFGM_VALUE_NOT_FOUND)
u32Millies = 10;
else if (VBOX_FAILURE(rc))
if (VBOX_FAILURE(rc))
{
return rc;
}
#ifdef VBOX_WITH_STATISTICS
/*
* Register statistics.
*/
STAM_REG(pVM, &pVM->tm.s.StatDoQueues, STAMTYPE_PROFILE, "/TM/DoQueues", STAMUNIT_TICKS_PER_CALL, "Profiling timer TMR3TimerQueuesDo.");
STAM_REG(pVM, &pVM->tm.s.StatDoQueuesSchedule, STAMTYPE_PROFILE_ADV, "/TM/DoQueues/Schedule",STAMUNIT_TICKS_PER_CALL, "The scheduling part.");
STAM_REG(pVM, &pVM->tm.s.StatDoQueuesRun, STAMTYPE_PROFILE_ADV, "/TM/DoQueues/Run", STAMUNIT_TICKS_PER_CALL, "The run part.");
STAM_REG(pVM, &pVM->tm.s.StatPollAlreadySet, STAMTYPE_COUNTER, "/TM/PollAlreadySet", STAMUNIT_OCCURENCES, "TMTimerPoll calls where the FF was already set.");
STAM_REG(pVM, &pVM->tm.s.StatPollVirtual, STAMTYPE_COUNTER, "/TM/PollHitsVirtual", STAMUNIT_OCCURENCES, "The number of times TMTimerPoll found an expired TMCLOCK_VIRTUAL queue.");
STAM_REG(pVM, &pVM->tm.s.StatPollVirtualSync, STAMTYPE_COUNTER, "/TM/PollHitsVirtualSync",STAMUNIT_OCCURENCES, "The number of times TMTimerPoll found an expired TMCLOCK_VIRTUAL_SYNC queue.");
STAM_REG(pVM, &pVM->tm.s.StatPollMiss, STAMTYPE_COUNTER, "/TM/PollMiss", STAMUNIT_OCCURENCES, "TMTimerPoll calls where nothing had expired.");
STAM_REG(pVM, &pVM->tm.s.StatPostponedR3, STAMTYPE_COUNTER, "/TM/PostponedR3", STAMUNIT_OCCURENCES, "Postponed due to unschedulable state, in ring-3.");
STAM_REG(pVM, &pVM->tm.s.StatPostponedR0, STAMTYPE_COUNTER, "/TM/PostponedR0", STAMUNIT_OCCURENCES, "Postponed due to unschedulable state, in ring-0.");
STAM_REG(pVM, &pVM->tm.s.StatPostponedGC, STAMTYPE_COUNTER, "/TM/PostponedGC", STAMUNIT_OCCURENCES, "Postponed due to unschedulable state, in GC.");
STAM_REG(pVM, &pVM->tm.s.StatScheduleOneGC, STAMTYPE_PROFILE, "/TM/ScheduleOneGC", STAMUNIT_TICKS_PER_CALL, "Profiling the scheduling of one queue during a TMTimer* call in EMT.\n");
STAM_REG(pVM, &pVM->tm.s.StatScheduleOneR0, STAMTYPE_PROFILE, "/TM/ScheduleOneR0", STAMUNIT_TICKS_PER_CALL, "Profiling the scheduling of one queue during a TMTimer* call in EMT.\n");
STAM_REG(pVM, &pVM->tm.s.StatScheduleOneR3, STAMTYPE_PROFILE, "/TM/ScheduleOneR3", STAMUNIT_TICKS_PER_CALL, "Profiling the scheduling of one queue during a TMTimer* call in EMT.\n");
STAM_REG(pVM, &pVM->tm.s.StatScheduleSetFF, STAMTYPE_COUNTER, "/TM/ScheduleSetFF", STAMUNIT_OCCURENCES, "The number of times the timer FF was set instead of doing scheduling.");
STAM_REG(pVM, &pVM->tm.s.StatTimerSetGC, STAMTYPE_PROFILE, "/TM/TimerSetGC", STAMUNIT_TICKS_PER_CALL, "Profiling TMTimerSet calls made in GC.");
STAM_REG(pVM, &pVM->tm.s.StatTimerSetR0, STAMTYPE_PROFILE, "/TM/TimerSetR0", STAMUNIT_TICKS_PER_CALL, "Profiling TMTimerSet calls made in ring-0.");
STAM_REG(pVM, &pVM->tm.s.StatTimerSetR3, STAMTYPE_PROFILE, "/TM/TimerSetR3", STAMUNIT_TICKS_PER_CALL, "Profiling TMTimerSet calls made in ring-3.");
STAM_REG(pVM, &pVM->tm.s.StatTimerStopGC, STAMTYPE_PROFILE, "/TM/TimerStopGC", STAMUNIT_TICKS_PER_CALL, "Profiling TMTimerStop calls made in GC.");
STAM_REG(pVM, &pVM->tm.s.StatTimerStopR0, STAMTYPE_PROFILE, "/TM/TimerStopR0", STAMUNIT_TICKS_PER_CALL, "Profiling TMTimerStop calls made in ring-0.");
STAM_REG(pVM, &pVM->tm.s.StatTimerStopR3, STAMTYPE_PROFILE, "/TM/TimerStopR3", STAMUNIT_TICKS_PER_CALL, "Profiling TMTimerStop calls made in ring-3.");
STAM_REG(pVM, &pVM->tm.s.StatVirtualGet, STAMTYPE_COUNTER, "/TM/VirtualGet", STAMUNIT_OCCURENCES, "The number of times TMR3TimerGet was called when the clock was running.");
STAM_REG(pVM, &pVM->tm.s.StatVirtualGetSync, STAMTYPE_COUNTER, "/TM/VirtualGetSync", STAMUNIT_OCCURENCES, "The number of times TMR3TimerGetSync was called when the clock was running.");
STAM_REG(pVM, &pVM->tm.s.StatVirtualPause, STAMTYPE_COUNTER, "/TM/VirtualPause", STAMUNIT_OCCURENCES, "The number of times TMR3TimerPause was called.");
STAM_REG(pVM, &pVM->tm.s.StatVirtualResume, STAMTYPE_COUNTER, "/TM/VirtualResume", STAMUNIT_OCCURENCES, "The number of times TMR3TimerResume was called.");
STAM_REG(pVM, &pVM->tm.s.StatTimerCallbackSetFF,STAMTYPE_COUNTER, "/TM/CallbackSetFF", STAMUNIT_OCCURENCES, "The number of times the timer callback set FF.");
#endif /* VBOX_WITH_STATISTICS */
/*
* Register info handlers.
*/
DBGFR3InfoRegisterInternal(pVM, "activetimers", "Dumps active all timers. No arguments.", tmR3TimerInfoActive);
return VINF_SUCCESS;
}
/**
* Calibrate the CPU tick.
*
* @returns Number of ticks per second.
*/
static uint64_t tmR3Calibrate(void)
{
/*
* Use GIP when available present.
*/
if ( pGip
{
AssertReleaseMsgFailed(("iCpu=%d - the ApicId is too high. send VBox.log and hardware specs!\n", iCpu));
else
{
if ( pGip
return u64Hz;
}
}
/* call this once first to make sure it's initialized. */
RTTimeNanoTS();
/*
* Yield the CPU to increase our chances of getting
* a correct value.
*/
RTThreadYield(); /* Try avoid interruptions between TSC and NanoTS samplings. */
unsigned i;
for (i = 0; i < ELEMENTS(au64Samples); i++)
{
unsigned cMillies;
int cTries = 5;
do
{
RTThreadSleep(s_auSleep[i]);
u64End = ASMReadTSC();
EndTS = RTTimeNanoTS();
} while ( cMillies == 0 /* the sleep may be interrupted... */
}
/*
* Discard the highest and lowest results and calculate the average.
*/
unsigned iHigh = 0;
unsigned iLow = 0;
{
iLow = i;
iHigh = i;
}
au64Samples[iLow] = 0;
au64Samples[iHigh] = 0;
u64Hz = au64Samples[0];
u64Hz += au64Samples[i];
return u64Hz;
}
/**
* Applies relocations to data and code managed by this
* component. This function will be called at init and
* whenever the VMM need to relocate it self inside the GC.
*
* @param pVM The VM.
* @param offDelta Relocation delta relative to old location.
*/
{
LogFlow(("TMR3Relocate\n"));
/*
* Iterate the timers updating the pVMGC pointers.
*/
{
}
}
/**
* Terminates the TM.
*
* Termination means cleaning up and freeing all resources,
* the VM it self is at this point powered off or suspended.
*
* @returns VBox status code.
* @param pVM The VM to operate on.
*/
{
{
}
return VINF_SUCCESS;
}
/**
* The VM is being reset.
*
* For the TM component this means that a rescheduling is preformed,
* the FF is cleared and but without running the queues. We'll have to
* check if this makes sense or not, but it seems like a good idea now....
*
* @param pVM VM handle.
*/
{
LogFlow(("TMR3Reset:\n"));
/*
* Process the queues.
*/
for (int i = 0; i < TMCLOCK_MAX; i++)
#ifdef VBOX_STRICT
#endif
}
/**
* Resolve a builtin GC symbol.
* Called by PDM when loading or relocating GC modules.
*
* @returns VBox status
* @param pVM VM Handle.
* @param pszSymbol Symbol to resolv
* @param pGCPtrValue Where to store the symbol value.
* @remark This has to work before TMR3Relocate() is called.
*/
{
//else if (..)
else
return VERR_SYMBOL_NOT_FOUND;
return VINF_SUCCESS;
}
/**
* Execute state save operation.
*
* @returns VBox status code.
* @param pVM VM Handle.
* @param pSSM SSM operation handle.
*/
{
LogFlow(("tmR3Save:\n"));
/*
* Save the virtual clocks.
*/
/* the virtual clock. */
/* the virtual timer synchronous clock. */
/* real time clock */
/* the cpu tick clock. */
}
/**
* Execute state load operation.
*
* @returns VBox status code.
* @param pVM VM Handle.
* @param pSSM SSM operation handle.
* @param u32Version Data layout version.
*/
{
LogFlow(("tmR3Load:\n"));
/*
* Validate version.
*/
if (u32Version != TM_SAVED_STATE_VERSION)
{
}
/*
* Load the virtual clock.
*/
/* the virtual clock. */
if (VBOX_FAILURE(rc))
return rc;
if (u64Hz != TMCLOCK_FREQ_VIRTUAL)
{
AssertMsgFailed(("The virtual clock frequency differs! Saved: %RU64 Binary: %RU64\n",
return VERR_SSM_VIRTUAL_CLOCK_HZ;
}
/* the virtual timer synchronous clock. */
bool f;
SSMR3GetBool(pSSM, &f);
/* the real clock */
if (VBOX_FAILURE(rc))
return rc;
if (u64Hz != TMCLOCK_FREQ_REAL)
{
AssertMsgFailed(("The real clock frequency differs! Saved: %RU64 Binary: %RU64\n",
return VERR_SSM_VIRTUAL_CLOCK_HZ; /* missleading... */
}
/* the cpu tick clock. */
if (VBOX_FAILURE(rc))
return rc;
/** @todo check TSC frequency and virtualize the TSC properly! */
/*
* Make sure timers get rescheduled immediately.
*/
return VINF_SUCCESS;
}
/** @todo doc */
{
/*
* Allocate the timer.
*/
{
}
if (!pTimer)
{
if (VBOX_FAILURE(rc))
return rc;
}
/*
* Initialize it.
*/
pTimer->offScheduleNext = 0;
/* insert into the list of created timers. */
#ifdef VBOX_STRICT
#endif
return VINF_SUCCESS;
}
/**
* Creates a device timer.
*
* @returns VBox status.
* @param pVM The VM to create the timer in.
* @param pDevIns Device instance.
* @param enmClock The clock to use on this timer.
* @param pfnCallback Callback function.
* @param pszDesc Pointer to description string which must stay around
* until the timer is fully destroyed (i.e. a bit after TMTimerDestroy()).
* @param ppTimer Where to store the timer on success.
*/
TMR3DECL(int) TMR3TimerCreateDevice(PVM pVM, PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, const char *pszDesc, PPTMTIMERHC ppTimer)
{
/*
* Allocate and init stuff.
*/
if (VBOX_SUCCESS(rc))
{
Log(("TM: Created device timer %p clock %d callback %p '%s'\n", (*ppTimer), enmClock, pfnCallback, pszDesc));
}
return rc;
}
/**
* Creates a driver timer.
*
* @returns VBox status.
* @param pVM The VM to create the timer in.
* @param pDrvIns Driver instance.
* @param enmClock The clock to use on this timer.
* @param pfnCallback Callback function.
* @param pszDesc Pointer to description string which must stay around
* until the timer is fully destroyed (i.e. a bit after TMTimerDestroy()).
* @param ppTimer Where to store the timer on success.
*/
TMR3DECL(int) TMR3TimerCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, TMCLOCK enmClock, PFNTMTIMERDRV pfnCallback, const char *pszDesc, PPTMTIMERHC ppTimer)
{
/*
* Allocate and init stuff.
*/
if (VBOX_SUCCESS(rc))
{
Log(("TM: Created device timer %p clock %d callback %p '%s'\n", (*ppTimer), enmClock, pfnCallback, pszDesc));
}
return rc;
}
/**
* Creates an internal timer.
*
* @returns VBox status.
* @param pVM The VM to create the timer in.
* @param enmClock The clock to use on this timer.
* @param pfnCallback Callback function.
* @param pvUser User argument to be passed to the callback.
* @param pszDesc Pointer to description string which must stay around
* until the timer is fully destroyed (i.e. a bit after TMTimerDestroy()).
* @param ppTimer Where to store the timer on success.
*/
TMR3DECL(int) TMR3TimerCreateInternal(PVM pVM, TMCLOCK enmClock, PFNTMTIMERINT pfnCallback, void *pvUser, const char *pszDesc, PPTMTIMERHC ppTimer)
{
/*
* Allocate and init stuff.
*/
if (VBOX_SUCCESS(rc))
{
Log(("TM: Created internal timer %p clock %d callback %p '%s'\n", pTimer, enmClock, pfnCallback, pszDesc));
}
return rc;
}
/**
* Creates an external timer.
*
* @returns Timer handle on success.
* @returns NULL on failure.
* @param pVM The VM to create the timer in.
* @param enmClock The clock to use on this timer.
* @param pfnCallback Callback function.
* @param pvUser User argument.
* @param pszDesc Pointer to description string which must stay around
* until the timer is fully destroyed (i.e. a bit after TMTimerDestroy()).
*/
TMR3DECL(PTMTIMERHC) TMR3TimerCreateExternal(PVM pVM, TMCLOCK enmClock, PFNTMTIMEREXT pfnCallback, void *pvUser, const char *pszDesc)
{
/*
* Allocate and init stuff.
*/
if (VBOX_SUCCESS(rc))
{
Log(("TM: Created external timer %p clock %d callback %p '%s'\n", pTimer, enmClock, pfnCallback, pszDesc));
return pTimer;
}
return NULL;
}
/**
* Destroy all timers owned by a device.
*
* @returns VBox status.
* @param pVM VM handle.
* @param pDevIns Device which timers should be destroyed.
*/
{
if (!pDevIns)
return VERR_INVALID_PARAMETER;
while (pCur)
{
{
}
}
LogFlow(("TMR3TimerDestroyDevice: returns VINF_SUCCESS\n"));
return VINF_SUCCESS;
}
/**
* Destroy all timers owned by a driver.
*
* @returns VBox status.
* @param pVM VM handle.
* @param pDrvIns Driver which timers should be destroyed.
*/
{
if (!pDrvIns)
return VERR_INVALID_PARAMETER;
while (pCur)
{
{
}
}
LogFlow(("TMR3TimerDestroyDriver: returns VINF_SUCCESS\n"));
return VINF_SUCCESS;
}
/**
* Checks if a queue has a pending timer.
*
* @returns true if it has a pending timer.
* @returns false is no pending timer.
*
* @param pVM The VM handle.
* @param enmClock The queue.
*/
{
}
/**
* Schedulation timer callback.
*
* @param pTimer Timer handle.
* @param pvUser VM handle.
* @remark We cannot do the scheduling and queues running from a timer handler
* since it's not executing in EMT, and even if it was it would be async
* and we wouldn't know the state of the affairs.
* So, we'll just raise the timer FF and force any REM execution to exit.
*/
{
#ifdef DEBUG_Sander /* very annoying, keep it private. */
Log(("tmR3TimerCallback: timer event still pending!!\n"));
#endif
)
)
{
VMR3NotifyFF(pVM, true);
}
}
/**
* Schedules and runs any pending timers.
*
* This is normally called from a forced action handler in EMT.
*
* @param pVM The VM to run the timers for.
*/
{
Log2(("TMR3TimerQueuesDo:\n"));
/*
* Process the queues.
*/
/* TMCLOCK_VIRTUAL */
/* TMCLOCK_VIRTUAL_SYNC */
/* TMCLOCK_REAL */
/* TMCLOCK_TSC */
/* done. */
#ifdef VBOX_STRICT
/* check that we didn't screwup. */
#endif
Log2(("TMR3TimerQueuesDo: returns void\n"));
}
/**
* Schedules and runs any pending times in the specified queue.
*
* This is normally called from a forced action handler in EMT.
*
* @param pVM The VM to run the timers for.
* @param pQueue The queue to run.
*/
{
/*
* Run timers.
*
* We check the clock once and run all timers which are ACTIVE
* and have an expire time less or equal to the time we read.
*
* N.B. A generic unlink must be applied since other threads
* are allowed to mess with any active timer at any time.
* However, we only allow EMT to handle EXPIRED_PENDING
* timers, thus enabling the timer handler function to
* arm the timer again.
*/
if (!pNext)
return;
/** @todo deal with the VIRTUAL_SYNC pausing and catch calcs ++ */
{
Log2(("tmR3TimerQueueRun: pTimer=%p:{.enmState=%s, .enmClock=%d, .enmType=%d, u64Expire=%llx (now=%llx) .pszDesc=%s}\n",
pTimer, tmTimerState(pTimer->enmState), pTimer->enmClock, pTimer->enmType, pTimer->u64Expire, u64Now, pTimer->pszDesc));
bool fRc;
if (fRc)
{
/* unlink */
if (pPrev)
else
{
}
if (pNext)
/* fire */
{
case TMTIMERTYPE_INTERNAL: pTimer->u.Internal.pfnTimer(pVM, pTimer, pTimer->u.Internal.pvUser); break;
default:
break;
}
/* change the state if it wasn't changed already in the handler. */
}
} /* run loop */
}
/**
* Saves the state of a timer to a saved state.
*
* @returns VBox status.
* @param pTimer Timer to save.
* @param pSSM Save State Manager handle.
*/
{
LogFlow(("TMR3TimerSave: pTimer=%p:{enmState=%s, .pszDesc={%s}} pSSM=%p\n", pTimer, tmTimerState(pTimer->enmState), pTimer->pszDesc, pSSM));
{
case TMTIMERSTATE_STOPPED:
if (!RTThreadYield())
RTThreadSleep(1);
/* fall thru */
case TMTIMERSTATE_ACTIVE:
case TMTIMERSTATE_EXPIRED:
case TMTIMERSTATE_FREE:
AssertMsgFailed(("Invalid timer state %d %s (%s)\n", pTimer->enmState, tmTimerState(pTimer->enmState), pTimer->pszDesc));
}
}
/**
* Loads the state of a timer from a saved state.
*
* @returns VBox status.
* @param pTimer Timer to restore.
* @param pSSM Save State Manager handle.
*/
{
LogFlow(("TMR3TimerLoad: pTimer=%p:{enmState=%s, .pszDesc={%s}} pSSM=%p\n", pTimer, tmTimerState(pTimer->enmState), pTimer->pszDesc, pSSM));
/*
* Load the state and validate it.
*/
if (VBOX_FAILURE(rc))
return rc;
if ( enmState != TMTIMERSTATE_PENDING_STOP
{
}
{
/*
* Load the expire time.
*/
if (VBOX_FAILURE(rc))
return rc;
/*
* Set it.
*/
}
else
{
/*
* Stop it.
*/
}
/*
* On failure set SSM status.
*/
if (VBOX_FAILURE(rc))
return rc;
}
/**
* Display all timers.
*
* @param pVM VM Handle.
* @param pHlp The info helpers.
* @param pszArgs Arguments, ignored.
*/
{
"Timers (pVM=%p)\n"
"%.*s %.*s %.*s %.*s Clock %-18s %-18s %-25s Description\n",
pVM,
"Time",
"Expire",
"State");
{
"%p %08RX32 %08RX32 %08RX32 %s %18RU64 %18RU64 %-25s %s\n",
}
}
/**
* Display all active timers.
*
* @param pVM VM Handle.
* @param pHlp The info helpers.
* @param pszArgs Arguments, ignored.
*/
{
"Active Timers (pVM=%p)\n"
"%.*s %.*s %.*s %.*s Clock %-18s %-18s %-25s Description\n",
pVM,
"Time",
"Expire",
"State");
{
{
"%p %08RX32 %08RX32 %08RX32 %s %18RU64 %18RU64 %-25s %s\n",
}
}
}