VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h@ 15941

Last change on this file since 15941 was 15841, checked in by vboxsync, 16 years ago

SUPDrv,SUPLib: SUPR0ObjRelease returns VINF_OBJECT_DESTROYED if it destroyed the object. Made SUPLib require this version of the driver (joined the RTMp API change earlier today).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 20.6 KB
Line 
1/* $Revision: 15841 $ */
2/** @file
3 * VirtualBox Support Driver - Internal header.
4 */
5
6/*
7 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * The contents of this file may alternatively be used under the terms
18 * of the Common Development and Distribution License Version 1.0
19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20 * VirtualBox OSE distribution, in which case the provisions of the
21 * CDDL are applicable instead of those of the GPL.
22 *
23 * You may elect to license modified versions of this file under the
24 * terms and conditions of either the GPL or the CDDL or both.
25 *
26 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
27 * Clara, CA 95054 USA or visit http://www.sun.com if you need
28 * additional information or have any questions.
29 */
30
31#ifndef ___SUPDrvInternal_h
32#define ___SUPDrvInternal_h
33
34
35/*******************************************************************************
36* Header Files *
37*******************************************************************************/
38#include <VBox/cdefs.h>
39#include <VBox/types.h>
40#include <iprt/assert.h>
41#include <iprt/asm.h>
42#include <VBox/sup.h>
43#include <iprt/memobj.h>
44#include <iprt/time.h>
45#include <iprt/timer.h>
46#include <iprt/string.h>
47#include <iprt/err.h>
48
49
50#if defined(RT_OS_WINDOWS)
51 __BEGIN_DECLS
52# if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)
53# define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap
54# define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
55# define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKVsCompilerCrap
56# define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
57# define _interlockedbittestandset _interlockedbittestandset_StupidDDKVsCompilerCrap
58# define _interlockedbittestandreset _interlockedbittestandreset_StupidDDKVsCompilerCrap
59# define _interlockedbittestandset64 _interlockedbittestandset64_StupidDDKVsCompilerCrap
60# define _interlockedbittestandreset64 _interlockedbittestandreset64_StupidDDKVsCompilerCrap
61# include <ntddk.h>
62# undef _InterlockedExchange
63# undef _InterlockedExchangeAdd
64# undef _InterlockedCompareExchange
65# undef _InterlockedAddLargeStatistic
66# undef _interlockedbittestandset
67# undef _interlockedbittestandreset
68# undef _interlockedbittestandset64
69# undef _interlockedbittestandreset64
70# else
71# include <ntddk.h>
72# endif
73# include <memory.h>
74# define memcmp(a,b,c) mymemcmp(a,b,c)
75 int VBOXCALL mymemcmp(const void *, const void *, size_t);
76 __END_DECLS
77
78#elif defined(RT_OS_LINUX)
79# include <linux/autoconf.h>
80# include <linux/version.h>
81# if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS)
82# define MODVERSIONS
83# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 71)
84# include <linux/modversions.h>
85# endif
86# endif
87# if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 0)
88# undef ALIGN
89# endif
90# ifndef KBUILD_STR
91# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16)
92# define KBUILD_STR(s) s
93# else
94# define KBUILD_STR(s) #s
95# endif
96# endif
97# include <linux/string.h>
98# include <linux/spinlock.h>
99# include <linux/slab.h>
100# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
101# include <linux/semaphore.h>
102# else /* older kernels */
103# include <asm/semaphore.h>
104# endif /* older kernels */
105# include <linux/timer.h>
106
107# if 0
108# include <linux/hrtimer.h>
109# define VBOX_HRTIMER
110# endif
111
112#elif defined(RT_OS_DARWIN)
113# include <libkern/libkern.h>
114# include <iprt/string.h>
115
116#elif defined(RT_OS_OS2)
117
118#elif defined(RT_OS_FREEBSD)
119# include <sys/libkern.h>
120# include <iprt/string.h>
121
122#elif defined(RT_OS_SOLARIS)
123# include <sys/cmn_err.h>
124# include <iprt/string.h>
125
126#else
127# error "unsupported OS."
128#endif
129
130#include "SUPDrvIOC.h"
131#include "SUPDrvIDC.h"
132
133
134
135/*******************************************************************************
136* Defined Constants And Macros *
137*******************************************************************************/
138/*
139 * Hardcoded cookies.
140 */
141#define BIRD 0x64726962 /* 'bird' */
142#define BIRD_INV 0x62697264 /* 'drib' */
143
144
145/*
146 * Win32
147 */
148#if defined(RT_OS_WINDOWS)
149
150/* debug printf */
151# define OSDBGPRINT(a) DbgPrint a
152
153/** Maximum number of bytes we try to lock down in one go.
154 * This is supposed to have a limit right below 256MB, but this appears
155 * to actually be much lower. The values here have been determined experimentally.
156 */
157#ifdef RT_ARCH_X86
158# define MAX_LOCK_MEM_SIZE (32*1024*1024) /* 32mb */
159#endif
160#ifdef RT_ARCH_AMD64
161# define MAX_LOCK_MEM_SIZE (24*1024*1024) /* 24mb */
162#endif
163
164
165/*
166 * Linux
167 */
168#elif defined(RT_OS_LINUX)
169
170/* check kernel version */
171#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
172# error Unsupported kernel version!
173#endif
174
175__BEGIN_DECLS
176int linux_dprintf(const char *format, ...);
177__END_DECLS
178
179/* debug printf */
180# define OSDBGPRINT(a) printk a
181
182
183/*
184 * Darwin
185 */
186#elif defined(RT_OS_DARWIN)
187
188/* debug printf */
189# define OSDBGPRINT(a) printf a
190
191
192/*
193 * OS/2
194 */
195#elif defined(RT_OS_OS2)
196
197/* No log API in OS/2 only COM port. */
198# define OSDBGPRINT(a) SUPR0Printf a
199
200
201/*
202 * FreeBSD
203 */
204#elif defined(RT_OS_FREEBSD)
205
206/* debug printf */
207# define OSDBGPRINT(a) printf a
208
209
210/*
211 * Solaris
212 */
213#elif defined(RT_OS_SOLARIS)
214# define OSDBGPRINT(a) SUPR0Printf a
215
216
217#else
218/** @todo other os'es */
219# error "OS interface defines is not done for this OS!"
220#endif
221
222
223/* dprintf */
224#if (defined(DEBUG) && !defined(NO_LOGGING)) || defined(RT_OS_FREEBSD)
225# ifdef LOG_TO_COM
226# include <VBox/log.h>
227# define dprintf(a) RTLogComPrintf a
228# else
229# define dprintf(a) OSDBGPRINT(a)
230# endif
231#else
232# define dprintf(a) do {} while (0)
233#endif
234
235/* dprintf2 - extended logging. */
236#if defined(RT_OS_DARWIN) || defined(RT_OS_OS2) || defined(RT_OS_FREEBSD)
237# define dprintf2 dprintf
238#else
239# define dprintf2(a) do { } while (0)
240#endif
241
242
243/** @def RT_WITH_W64_UNWIND_HACK
244 * Changes a function name into the wrapped version if we've
245 * enabled the unwind hack.
246 *
247 * The unwind hack is for making the NT unwind procedures skip
248 * our dynamically loaded code when they try to walk the call
249 * stack. Needless to say, they kind of don't expect what
250 * we're doing here and get kind of confused and may BSOD. */
251#ifdef DOXYGEN_RUNNING
252# define RT_WITH_W64_UNWIND_HACK
253#endif
254/** @def UNWIND_WRAP
255 * If RT_WITH_W64_UNWIND_HACK is defined, the name will be prefixed with
256 * 'supdrvNtWrap'.
257 * @param Name The function to wrapper. */
258#ifdef RT_WITH_W64_UNWIND_HACK
259# define UNWIND_WRAP(Name) supdrvNtWrap##Name
260#else
261# define UNWIND_WRAP(Name) Name
262#endif
263
264
265/*
266 * Error codes.
267 */
268/** @todo retire the SUPDRV_ERR_* stuff, we ship err.h now. */
269/** Invalid parameter. */
270#define SUPDRV_ERR_GENERAL_FAILURE (-1)
271/** Invalid parameter. */
272#define SUPDRV_ERR_INVALID_PARAM (-2)
273/** Invalid magic or cookie. */
274#define SUPDRV_ERR_INVALID_MAGIC (-3)
275/** Invalid loader handle. */
276#define SUPDRV_ERR_INVALID_HANDLE (-4)
277/** Failed to lock the address range. */
278#define SUPDRV_ERR_LOCK_FAILED (-5)
279/** Invalid memory pointer. */
280#define SUPDRV_ERR_INVALID_POINTER (-6)
281/** Failed to patch the IDT. */
282#define SUPDRV_ERR_IDT_FAILED (-7)
283/** Memory allocation failed. */
284#define SUPDRV_ERR_NO_MEMORY (-8)
285/** Already loaded. */
286#define SUPDRV_ERR_ALREADY_LOADED (-9)
287/** Permission denied. */
288#define SUPDRV_ERR_PERMISSION_DENIED (-10)
289/** Version mismatch. */
290#define SUPDRV_ERR_VERSION_MISMATCH (-11)
291
292
293
294/*******************************************************************************
295* Structures and Typedefs *
296*******************************************************************************/
297/** Pointer to the device extension. */
298typedef struct SUPDRVDEVEXT *PSUPDRVDEVEXT;
299
300
301/**
302 * Memory reference types.
303 */
304typedef enum
305{
306 /** Unused entry */
307 MEMREF_TYPE_UNUSED = 0,
308 /** Locked memory (r3 mapping only). */
309 MEMREF_TYPE_LOCKED,
310 /** Continous memory block (r3 and r0 mapping). */
311 MEMREF_TYPE_CONT,
312 /** Low memory block (r3 and r0 mapping). */
313 MEMREF_TYPE_LOW,
314 /** Memory block (r3 and r0 mapping). */
315 MEMREF_TYPE_MEM,
316 /** Locked memory (r3 mapping only) allocated by the support driver. */
317 MEMREF_TYPE_PAGE,
318 /** Blow the type up to 32-bit and mark the end. */
319 MEMREG_TYPE_32BIT_HACK = 0x7fffffff
320} SUPDRVMEMREFTYPE, *PSUPDRVMEMREFTYPE;
321
322
323/**
324 * Structure used for tracking memory a session
325 * references in one way or another.
326 */
327typedef struct SUPDRVMEMREF
328{
329 /** The memory object handle. */
330 RTR0MEMOBJ MemObj;
331 /** The ring-3 mapping memory object handle. */
332 RTR0MEMOBJ MapObjR3;
333 /** Type of memory. */
334 SUPDRVMEMREFTYPE eType;
335} SUPDRVMEMREF, *PSUPDRVMEMREF;
336
337
338/**
339 * Bundle of locked memory ranges.
340 */
341typedef struct SUPDRVBUNDLE
342{
343 /** Pointer to the next bundle. */
344 struct SUPDRVBUNDLE * volatile pNext;
345 /** Referenced memory. */
346 SUPDRVMEMREF aMem[64];
347 /** Number of entries used. */
348 uint32_t volatile cUsed;
349} SUPDRVBUNDLE, *PSUPDRVBUNDLE;
350
351
352/**
353 * Loaded image.
354 */
355typedef struct SUPDRVLDRIMAGE
356{
357 /** Next in chain. */
358 struct SUPDRVLDRIMAGE * volatile pNext;
359 /** Pointer to the image. */
360 void *pvImage;
361 /** Pointer to the optional module initialization callback. */
362 PFNR0MODULEINIT pfnModuleInit;
363 /** Pointer to the optional module termination callback. */
364 PFNR0MODULETERM pfnModuleTerm;
365 /** Service request handler. This is NULL for non-service modules. */
366 PFNSUPR0SERVICEREQHANDLER pfnServiceReqHandler;
367 /** Size of the image. */
368 uint32_t cbImage;
369 /** The offset of the symbol table. */
370 uint32_t offSymbols;
371 /** The number of entries in the symbol table. */
372 uint32_t cSymbols;
373 /** The offset of the string table. */
374 uint32_t offStrTab;
375 /** Size of the string table. */
376 uint32_t cbStrTab;
377 /** The ldr image state. (IOCtl code of last opration.) */
378 uint32_t uState;
379 /** Usage count. */
380 uint32_t volatile cUsage;
381 /** Image name. */
382 char szName[32];
383} SUPDRVLDRIMAGE, *PSUPDRVLDRIMAGE;
384
385
386/** Image usage record. */
387typedef struct SUPDRVLDRUSAGE
388{
389 /** Next in chain. */
390 struct SUPDRVLDRUSAGE * volatile pNext;
391 /** The image. */
392 PSUPDRVLDRIMAGE pImage;
393 /** Load count. */
394 uint32_t volatile cUsage;
395} SUPDRVLDRUSAGE, *PSUPDRVLDRUSAGE;
396
397
398/**
399 * Component factory registration record.
400 */
401typedef struct SUPDRVFACTORYREG
402{
403 /** Pointer to the next registration. */
404 struct SUPDRVFACTORYREG *pNext;
405 /** Pointer to the registered factory. */
406 PCSUPDRVFACTORY pFactory;
407 /** The session owning the factory.
408 * Used for deregistration and session cleanup. */
409 PSUPDRVSESSION pSession;
410 /** Length of the name. */
411 size_t cchName;
412} SUPDRVFACTORYREG;
413/** Pointer to a component factory registration record. */
414typedef SUPDRVFACTORYREG *PSUPDRVFACTORYREG;
415/** Pointer to a const component factory registration record. */
416typedef SUPDRVFACTORYREG const *PCSUPDRVFACTORYREG;
417
418
419/**
420 * Registered object.
421 * This takes care of reference counting and tracking data for access checks.
422 */
423typedef struct SUPDRVOBJ
424{
425 /** Magic value (SUPDRVOBJ_MAGIC). */
426 uint32_t u32Magic;
427 /** The object type. */
428 SUPDRVOBJTYPE enmType;
429 /** Pointer to the next in the global list. */
430 struct SUPDRVOBJ * volatile pNext;
431 /** Pointer to the object destructor.
432 * This may be set to NULL if the image containing the destructor get unloaded. */
433 PFNSUPDRVDESTRUCTOR pfnDestructor;
434 /** User argument 1. */
435 void *pvUser1;
436 /** User argument 2. */
437 void *pvUser2;
438 /** The total sum of all per-session usage. */
439 uint32_t volatile cUsage;
440 /** The creator user id. */
441 RTUID CreatorUid;
442 /** The creator group id. */
443 RTGID CreatorGid;
444 /** The creator process id. */
445 RTPROCESS CreatorProcess;
446} SUPDRVOBJ, *PSUPDRVOBJ;
447
448/** Magic number for SUPDRVOBJ::u32Magic. (Dame Agatha Mary Clarissa Christie). */
449#define SUPDRVOBJ_MAGIC 0x18900915
450/** Dead number magic for SUPDRVOBJ::u32Magic. */
451#define SUPDRVOBJ_MAGIC_DEAD 0x19760112
452
453/**
454 * The per-session object usage record.
455 */
456typedef struct SUPDRVUSAGE
457{
458 /** Pointer to the next in the list. */
459 struct SUPDRVUSAGE * volatile pNext;
460 /** Pointer to the object we're recording usage for. */
461 PSUPDRVOBJ pObj;
462 /** The usage count. */
463 uint32_t volatile cUsage;
464} SUPDRVUSAGE, *PSUPDRVUSAGE;
465
466
467/**
468 * Per session data.
469 * This is mainly for memory tracking.
470 */
471typedef struct SUPDRVSESSION
472{
473 /** Pointer to the device extension. */
474 PSUPDRVDEVEXT pDevExt;
475 /** Session Cookie. */
476 uint32_t u32Cookie;
477
478 /** Load usage records. (protected by SUPDRVDEVEXT::mtxLdr) */
479 PSUPDRVLDRUSAGE volatile pLdrUsage;
480 /** The VM associated with the session. */
481 PVM pVM;
482 /** List of generic usage records. (protected by SUPDRVDEVEXT::SpinLock) */
483 PSUPDRVUSAGE volatile pUsage;
484
485 /** Spinlock protecting the bundles and the GIP members. */
486 RTSPINLOCK Spinlock;
487 /** The ring-3 mapping of the GIP (readonly). */
488 RTR0MEMOBJ GipMapObjR3;
489 /** Set if the session is using the GIP. */
490 uint32_t fGipReferenced;
491 /** Bundle of locked memory objects. */
492 SUPDRVBUNDLE Bundle;
493
494 /** The user id of the session. (Set by the OS part.) */
495 RTUID Uid;
496 /** The group id of the session. (Set by the OS part.) */
497 RTGID Gid;
498 /** The process (id) of the session. */
499 RTPROCESS Process;
500 /** Which process this session is associated with.
501 * This is NIL_RTR0PROCESS for kernel sessions and valid for user ones. */
502 RTR0PROCESS R0Process;
503#if defined(RT_OS_DARWIN)
504 /** Pointer to the associated org_virtualbox_SupDrvClient object. */
505 void *pvSupDrvClient;
506 /** Whether this session has been opened or not. */
507 bool fOpened;
508#endif
509#if defined(RT_OS_OS2)
510 /** The system file number of this session. */
511 uint16_t sfn;
512 uint16_t Alignment; /**< Alignment */
513#endif
514#if defined(RT_OS_DARWIN) || defined(RT_OS_OS2) || defined(RT_OS_SOLARIS)
515 /** Pointer to the next session with the same hash. */
516 PSUPDRVSESSION pNextHash;
517#endif
518} SUPDRVSESSION;
519
520
521/**
522 * Device extension.
523 */
524typedef struct SUPDRVDEVEXT
525{
526 /** Spinlock to serialize the initialization,
527 * usage counting and destruction of the IDT entry override and objects. */
528 RTSPINLOCK Spinlock;
529
530 /** List of registered objects. Protected by the spinlock. */
531 PSUPDRVOBJ volatile pObjs;
532 /** List of free object usage records. */
533 PSUPDRVUSAGE volatile pUsageFree;
534
535 /** Global cookie. */
536 uint32_t u32Cookie;
537
538 /** The IDT entry number.
539 * Only valid if pIdtPatches is set. */
540 uint8_t volatile u8Idt;
541
542 /** Loader mutex.
543 * This protects pvVMMR0, pvVMMR0Entry, pImages and SUPDRVSESSION::pLdrUsage. */
544 RTSEMFASTMUTEX mtxLdr;
545
546 /** VMM Module 'handle'.
547 * 0 if the code VMM isn't loaded and Idt are nops. */
548 void * volatile pvVMMR0;
549 /** VMMR0EntryInt() pointer. */
550 DECLR0CALLBACKMEMBER(int, pfnVMMR0EntryInt, (PVM pVM, unsigned uOperation, void *pvArg));
551 /** VMMR0EntryFast() pointer. */
552 DECLR0CALLBACKMEMBER(void, pfnVMMR0EntryFast, (PVM pVM, unsigned idCpu, unsigned uOperation));
553 /** VMMR0EntryEx() pointer. */
554 DECLR0CALLBACKMEMBER(int, pfnVMMR0EntryEx, (PVM pVM, unsigned uOperation, PSUPVMMR0REQHDR pReq, uint64_t u64Arg, PSUPDRVSESSION pSession));
555
556 /** Linked list of loaded code. */
557 PSUPDRVLDRIMAGE volatile pLdrImages;
558
559 /** GIP mutex.
560 * Any changes to any of the GIP members requires ownership of this mutex,
561 * except on driver init and termination. */
562 RTSEMFASTMUTEX mtxGip;
563 /** Pointer to the Global Info Page (GIP). */
564 PSUPGLOBALINFOPAGE pGip;
565 /** The physical address of the GIP. */
566 RTHCPHYS HCPhysGip;
567 /** Number of processes using the GIP.
568 * (The updates are suspend while cGipUsers is 0.)*/
569 uint32_t volatile cGipUsers;
570 /** The ring-0 memory object handle for the GIP page. */
571 RTR0MEMOBJ GipMemObj;
572 /** The GIP timer handle. */
573 PRTTIMER pGipTimer;
574 /** If non-zero we've successfully called RTTimerRequestSystemGranularity(). */
575 uint32_t u32SystemTimerGranularityGrant;
576 /** The CPU id of the GIP master.
577 * This CPU is responsible for the updating the common GIP data. */
578 RTCPUID volatile idGipMaster;
579
580#ifdef RT_OS_WINDOWS
581 /* Callback object returned by ExCreateCallback. */
582 PCALLBACK_OBJECT pObjPowerCallback;
583 /* Callback handle returned by ExRegisterCallback. */
584 PVOID hPowerCallback;
585#endif
586
587 /** Component factory mutex.
588 * This protects pComponentFactoryHead and component factory querying. */
589 RTSEMFASTMUTEX mtxComponentFactory;
590 /** The head of the list of registered component factories. */
591 PSUPDRVFACTORYREG pComponentFactoryHead;
592} SUPDRVDEVEXT;
593
594
595__BEGIN_DECLS
596
597/*******************************************************************************
598* OS Specific Functions *
599*******************************************************************************/
600void VBOXCALL supdrvOSObjInitCreator(PSUPDRVOBJ pObj, PSUPDRVSESSION pSession);
601bool VBOXCALL supdrvOSObjCanAccess(PSUPDRVOBJ pObj, PSUPDRVSESSION pSession, const char *pszObjName, int *prc);
602bool VBOXCALL supdrvOSGetForcedAsyncTscMode(PSUPDRVDEVEXT pDevExt);
603int VBOXCALL supdrvOSEnableVTx(bool fEnabled);
604
605/*******************************************************************************
606* Shared Functions *
607*******************************************************************************/
608int VBOXCALL supdrvIOCtl(uintptr_t uIOCtl, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession, PSUPREQHDR pReqHdr);
609int VBOXCALL supdrvIOCtlFast(uintptr_t uIOCtl, unsigned idCpu, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
610int VBOXCALL supdrvIDC(uintptr_t uIOCtl, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession, PSUPDRVIDCREQHDR pReqHdr);
611int VBOXCALL supdrvInitDevExt(PSUPDRVDEVEXT pDevExt);
612void VBOXCALL supdrvDeleteDevExt(PSUPDRVDEVEXT pDevExt);
613int VBOXCALL supdrvCreateSession(PSUPDRVDEVEXT pDevExt, bool fUser, PSUPDRVSESSION *ppSession);
614void VBOXCALL supdrvCloseSession(PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
615void VBOXCALL supdrvCleanupSession(PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
616int VBOXCALL supdrvGipInit(PSUPDRVDEVEXT pDevExt, PSUPGLOBALINFOPAGE pGip, RTHCPHYS HCPhys, uint64_t u64NanoTS, unsigned uUpdateHz);
617void VBOXCALL supdrvGipTerm(PSUPGLOBALINFOPAGE pGip);
618void VBOXCALL supdrvGipUpdate(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS);
619void VBOXCALL supdrvGipUpdatePerCpu(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS, unsigned iCpu);
620bool VBOXCALL supdrvDetermineAsyncTsc(uint64_t *pu64DiffCores);
621
622__END_DECLS
623
624#endif
625
Note: See TracBrowser for help on using the repository browser.

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