VirtualBox

source: vbox/trunk/src/VBox/VMM/VMMR3/VMMR3VTable.cpp@ 109185

Last change on this file since 109185 was 109185, checked in by vboxsync, 4 days ago

VMM: VTable description fix.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1/* $Id: VMMR3VTable.cpp 109185 2025-05-06 21:22:24Z vboxsync $ */
2/** @file
3 * VM - The Virtual Machine Monitor, Ring-3 API VTable Definitions.
4 */
5
6/*
7 * Copyright (C) 2022-2024 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.215389.xyz.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28
29/*********************************************************************************************************************************
30* Header Files *
31*********************************************************************************************************************************/
32#define RT_RELAXED_CALLBACKS_TYPES
33#define LOG_GROUP LOG_GROUP_VMM
34#include <VBox/vmm/vmmr3vtable.h>
35
36#include <iprt/asm.h>
37#include <iprt/errcore.h>
38
39
40/*********************************************************************************************************************************
41* Internal Functions *
42*********************************************************************************************************************************/
43static DECLCALLBACK(int) vmmR3ReservedVTableEntry(void);
44
45
46/*********************************************************************************************************************************
47* Global Variables *
48*********************************************************************************************************************************/
49static const VMMR3VTABLE g_VMMR3VTable =
50{
51 /* .uMagicVersion = */ VMMR3VTABLE_MAGIC_VERSION,
52 /* .fFlags = */ 0,
53#ifdef VBOX_VMM_TARGET_X86
54 /* .pszDescription = */ "x86 & amd64",
55#elif defined(VBOX_VMM_TARGET_ARMV8)
56 /* .pszDescription = */ "armv8",
57#else
58# error "port me"
59#endif
60
61#define VTABLE_ENTRY(a_Api) a_Api,
62#define VTABLE_RESERVED(a_Name) vmmR3ReservedVTableEntry,
63
64#include <VBox/vmm/vmmr3vtable-def.h>
65
66#undef VTABLE_ENTRY
67#undef VTABLE_RESERVED
68
69 /* .uMagicVersionEnd = */ VMMR3VTABLE_MAGIC_VERSION,
70};
71
72
73/**
74 * Reserved VMM function table entry.
75 */
76static DECLCALLBACK(int) vmmR3ReservedVTableEntry(void)
77{
78 void * volatile pvCaller = ASMReturnAddress();
79 AssertLogRelMsgFailed(("Reserved VMM function table entry called from %p!\n", pvCaller ));
80 return VERR_INTERNAL_ERROR;
81}
82
83
84#ifndef VBOX_WITH_DEBUGGER
85/** Stub */
86DBGDECL(int) DBGCCreate(PUVM pUVM, PCDBGCIO pIo, unsigned fFlags)
87{
88 RT_NOREF(pUVM, pIo, fFlags);
89 return VERR_NOT_IMPLEMENTED;
90}
91#endif
92
93
94VMMR3DECL(PCVMMR3VTABLE) VMMR3GetVTable(void)
95{
96 return &g_VMMR3VTable;
97}
98
Note: See TracBrowser for help on using the repository browser.

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