1 | /* $Id: GVMMR0Internal.h 14811 2008-11-29 23:48:26Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * GVMM - The Global VM Manager, Internal header.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 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 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | * additional information or have any questions.
|
---|
20 | */
|
---|
21 |
|
---|
22 | #ifndef ___GVMMR0Internal_h
|
---|
23 | #define ___GVMMR0Internal_h
|
---|
24 |
|
---|
25 | #include <iprt/mem.h>
|
---|
26 |
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * The GVMM per VM data.
|
---|
30 | */
|
---|
31 | typedef struct GVMMPERVM
|
---|
32 | {
|
---|
33 | /** The shared VM data structure allocation object (PVMR0). */
|
---|
34 | RTR0MEMOBJ VMMemObj;
|
---|
35 | /** The Ring-3 mapping of the shared VM data structure (PVMR3). */
|
---|
36 | RTR0MEMOBJ VMMapObj;
|
---|
37 | /** The allocation object for the VM pages. */
|
---|
38 | RTR0MEMOBJ VMPagesMemObj;
|
---|
39 | /** The ring-3 mapping of the VM pages. */
|
---|
40 | RTR0MEMOBJ VMPagesMapObj;
|
---|
41 |
|
---|
42 | /** The time the halted EMT thread expires.
|
---|
43 | * 0 if the EMT thread is blocked here. */
|
---|
44 | uint64_t volatile u64HaltExpire;
|
---|
45 | /** The event semaphore the EMT thread is blocking on. */
|
---|
46 | RTSEMEVENTMULTI HaltEventMulti;
|
---|
47 | /** The APIC ID of the CPU that EMT was scheduled on the last time we checked. */
|
---|
48 | uint8_t iCpuEmt;
|
---|
49 |
|
---|
50 | /** The scheduler statistics. */
|
---|
51 | GVMMSTATSSCHED StatsSched;
|
---|
52 |
|
---|
53 | /** Whether the per-VM ring-0 initialization has been performed. */
|
---|
54 | bool fDoneVMMR0Init;
|
---|
55 | /** Whether the per-VM ring-0 termination is being or has been performed. */
|
---|
56 | bool fDoneVMMR0Term;
|
---|
57 | } GVMMPERVM;
|
---|
58 | /** Pointer to the GVMM per VM data. */
|
---|
59 | typedef GVMMPERVM *PGVMMPERVM;
|
---|
60 |
|
---|
61 |
|
---|
62 | #endif
|
---|
63 |
|
---|