VirtualBox

source: vbox/trunk/src/VBox/VMM/include/GCMInternal.h@ 105447

Last change on this file since 105447 was 104516, checked in by vboxsync, 7 months ago

VMM/GCM,IEM,HM: Integrate GCM with IEM, extending it to cover the mesa drv situation and valid ring-0 IN instructions to same port. Untested. TODO: NEM. bugref:9735 bugref:10683

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/** @file
2 * GCM - Internal header file.
3 */
4
5/*
6 * Copyright (C) 2022-2023 Oracle and/or its affiliates.
7 *
8 * This file is part of VirtualBox base platform packages, as
9 * available from https://www.virtualbox.org.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation, in version 3 of the
14 * License.
15 *
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, see <https://www.gnu.org/licenses>.
23 *
24 * SPDX-License-Identifier: GPL-3.0-only
25 */
26
27#ifndef VMM_INCLUDED_SRC_include_GCMInternal_h
28#define VMM_INCLUDED_SRC_include_GCMInternal_h
29#ifndef RT_WITHOUT_PRAGMA_ONCE
30# pragma once
31#endif
32
33#include <VBox/vmm/gcm.h>
34#include <VBox/vmm/pgm.h>
35
36RT_C_DECLS_BEGIN
37
38/** @defgroup grp_gcm_int Internal
39 * @ingroup grp_gcm
40 * @internal
41 * @{
42 */
43
44/** The saved state version. */
45#define GCM_SAVED_STATE_VERSION 1
46
47/**
48 * GCM Fixer Identifiers.
49 * @remarks Part of saved state!
50 * @{
51 */
52/** DOS division by zero, the worst. Includes Windows 3.x. */
53#define GCMFIXER_DBZ_DOS RT_BIT_32(0)
54/** OS/2 (any version) division by zero. */
55#define GCMFIXER_DBZ_OS2 RT_BIT_32(1)
56/** Windows 9x division by zero. */
57#define GCMFIXER_DBZ_WIN9X RT_BIT_32(2)
58/** Workaround for the Mesa vmsvga driver using a IN/OUT backdoor. */
59#define GCMFIXER_MESA_VMSVGA_DRV RT_BIT_32(3)
60/** @} */
61
62/**
63 * GCM VM Instance data.
64 */
65typedef struct GCM
66{
67 /** The provider that is active for this VM. */
68 uint32_t fFixerSet;
69} GCM;
70/** Pointer to GCM VM instance data. */
71typedef GCM *PGCM;
72
73/** @} */
74
75RT_C_DECLS_END
76
77#endif /* !VMM_INCLUDED_SRC_include_GCMInternal_h */
78
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