VirtualBox

source: vbox/trunk/src/VBox/VMM/include/GIMInternal.h@ 51333

Last change on this file since 51333 was 51333, checked in by vboxsync, 10 years ago

VMM/GIM: Hyper-V provider, work-in-progress.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1/* $Id: GIMInternal.h 51333 2014-05-22 04:42:22Z vboxsync $ */
2/** @file
3 * GIM - Internal header file.
4 */
5
6/*
7 * Copyright (C) 2014 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 ___GIMInternal_h
19#define ___GIMInternal_h
20
21#include <VBox/vmm/gim.h>
22
23RT_C_DECLS_BEGIN
24
25/** @defgroup grp_gim_int Internal
26 * @ingroup grp_gim
27 * @internal
28 * @{
29 */
30
31/**
32 * GIM VM Instance data.
33 * Changes to this must checked against the padding of the gim union in VM!
34 */
35typedef struct GIM
36{
37 /** Whether GIM is enabled for this VM or not. */
38 bool fEnabled;
39 /** The provider that is active for this VM. */
40 GIMPROVIDERID enmProviderId;
41 /** The interface version. */
42 uint32_t u32Version;
43
44#if 0
45 /** Pointer to the provider's ring-3 hypercall handler. */
46 R3PTRTYPE(PFNGIMHYPERCALL) pfnHypercallR3;
47 /** Pointer to the provider's ring-0 hypercall handler. */
48 R0PTRTYPE(PFNGIMHYPERCALL) pfnHypercallR0;
49 /** Pointer to the provider's raw-mode context hypercall handler. */
50 RCPTRTYPE(PFNGIMHYPERCALL) pfnHypercallRC;
51
52 /** Pointer to the provider's ring-3 MSR-read handler. */
53 R3PTRTYPE(PFNGIMRDMSR) pfnReadMsrR3;
54 /** Pointer to the provider's ring-0 MSR-read handler. */
55 R0PTRTYPE(PFNGIMRDMSR) pfnReadMsrR0;
56 /** Pointer to the provider's raw-mode context MSR-read handler. */
57 RCPTRTYPE(PFNGIMRDMSR) pfnReadMsrRC;
58
59 /** Pointer to the provider's ring-3 MSR-read handler. */
60 R3PTRTYPE(PFNGIMWDMSR) pfnWriteMsrR3;
61 /** Pointer to the provider's ring-0 MSR-read handler. */
62 R0PTRTYPE(PFNGIMWDMSR) pfnWriteMsrRR0;
63 /** Pointer to the provider's raw-mode context MSR-read handler. */
64 RCPTRTYPE(PFNGIMWDMSR) pfnWriteMsrRRC;
65#endif
66
67 union
68 {
69 struct
70 {
71 } minimal;
72
73 struct
74 {
75 /** Hypervisor system identity - Minor version number. */
76 uint16_t u16HyperIdVersionMinor;
77 /** Hypervisor system identity - Major version number. */
78 uint16_t u16HyperIdVersionMajor;
79 /** Hypervisor system identify - Build number. */
80 uint32_t u32HyperIdBuildNumber;
81
82 /** Guest OS identity MSR. */
83 uint64_t u64GuestOsIdMsr;
84 /** Reference TSC page MSR. */
85 uint64_t u64TscPageMsr;
86 } hv;
87
88 /** @todo KVM and others. */
89 } u;
90} GIM;
91/** Pointer to GIM VM instance data. */
92typedef GIM *PGIM;
93
94
95/**
96 * GIM VMCPU Instance data.
97 */
98typedef struct GIMCPU
99{
100} GIMCPU;
101/** Pointer to GIM VMCPU instance data. */
102typedef GIMCPU *PGIMCPU;
103
104
105#ifdef IN_RING0
106#endif /* IN_RING0 */
107
108/** @} */
109
110RT_C_DECLS_END
111
112#endif /* ___GIMInternal_h */
113
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