VirtualBox

source: vbox/trunk/src/VBox/VMM/VMMR0/GVMMR0Internal.h@ 87606

Last change on this file since 87606 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 2.4 KB
Line 
1/* $Id: GVMMR0Internal.h 82968 2020-02-04 10:35:17Z vboxsync $ */
2/** @file
3 * GVMM - The Global VM Manager, Internal header.
4 */
5
6/*
7 * Copyright (C) 2007-2020 Oracle Corporation
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
18#ifndef VMM_INCLUDED_SRC_VMMR0_GVMMR0Internal_h
19#define VMM_INCLUDED_SRC_VMMR0_GVMMR0Internal_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24#include <iprt/mem.h>
25
26/**
27 * The GVMM per VM data.
28 */
29typedef struct GVMMPERVCPU
30{
31 /** The time the halted EMT thread expires.
32 * 0 if the EMT thread is blocked here. */
33 uint64_t volatile u64HaltExpire;
34 /** The event semaphore the EMT thread is blocking on. */
35 RTSEMEVENTMULTI HaltEventMulti;
36 /** The ring-3 mapping of the VMCPU structure. */
37 RTR0MEMOBJ VMCpuMapObj;
38 /** The APIC ID of the CPU that EMT was scheduled on the last time we checked.
39 * @todo Extend to 32-bit and use most suitable APIC ID function when we
40 * start using this for something sensible... */
41 uint8_t iCpuEmt;
42} GVMMPERVCPU;
43/** Pointer to the GVMM per VCPU data. */
44typedef GVMMPERVCPU *PGVMMPERVCPU;
45
46/**
47 * The GVMM per VM data.
48 */
49typedef struct GVMMPERVM
50{
51 /** The shared VM data structure allocation object (PVMR0). */
52 RTR0MEMOBJ VMMemObj;
53 /** The Ring-3 mapping of the shared VM data structure (PVMR3). */
54 RTR0MEMOBJ VMMapObj;
55 /** The allocation object for the VM pages. */
56 RTR0MEMOBJ VMPagesMemObj;
57 /** The ring-3 mapping of the VM pages. */
58 RTR0MEMOBJ VMPagesMapObj;
59
60 /** The scheduler statistics. */
61 GVMMSTATSSCHED StatsSched;
62
63 /** Whether the per-VM ring-0 initialization has been performed. */
64 bool fDoneVMMR0Init;
65 /** Whether the per-VM ring-0 termination is being or has been performed. */
66 bool fDoneVMMR0Term;
67} GVMMPERVM;
68/** Pointer to the GVMM per VM data. */
69typedef GVMMPERVM *PGVMMPERVM;
70
71
72#endif /* !VMM_INCLUDED_SRC_VMMR0_GVMMR0Internal_h */
73
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