VirtualBox

source: vbox/trunk/src/VBox/VMM/VMMR0/HMSVMR0.h@ 95134

Last change on this file since 95134 was 93963, checked in by vboxsync, 3 years ago

VMM: Nested VMX: bugref:10092 Add HM ring-0 API for querying transient VMX/SVM info.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 2.3 KB
Line 
1/* $Id: HMSVMR0.h 93963 2022-02-28 08:39:08Z vboxsync $ */
2/** @file
3 * HM SVM (AMD-V) - Internal header file.
4 */
5
6/*
7 * Copyright (C) 2006-2022 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_HMSVMR0_h
19#define VMM_INCLUDED_SRC_VMMR0_HMSVMR0_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24#include <VBox/cdefs.h>
25#include <VBox/types.h>
26#include <VBox/vmm/hm.h>
27#include <VBox/vmm/hm_svm.h>
28
29RT_C_DECLS_BEGIN
30
31/** @defgroup grp_svm_int Internal
32 * @ingroup grp_svm
33 * @internal
34 * @{
35 */
36
37#ifdef IN_RING0
38
39VMMR0DECL(int) SVMR0GlobalInit(void);
40VMMR0DECL(void) SVMR0GlobalTerm(void);
41VMMR0DECL(int) SVMR0Enter(PVMCPUCC pVCpu);
42VMMR0DECL(void) SVMR0ThreadCtxCallback(RTTHREADCTXEVENT enmEvent, PVMCPUCC pVCpu, bool fGlobalInit);
43VMMR0DECL(int) SVMR0AssertionCallback(PVMCPUCC pVCpu);
44VMMR0DECL(int) SVMR0EnableCpu(PHMPHYSCPU pHostCpu, PVMCC pVM, void *pvPageCpu, RTHCPHYS HCPhysCpuPage,
45 bool fEnabledBySystem, PCSUPHWVIRTMSRS pHwvirtMsrs);
46VMMR0DECL(int) SVMR0DisableCpu(PHMPHYSCPU pHostCpu, void *pvPageCpu, RTHCPHYS pPageCpuPhys);
47VMMR0DECL(int) SVMR0InitVM(PVMCC pVM);
48VMMR0DECL(int) SVMR0TermVM(PVMCC pVM);
49VMMR0DECL(int) SVMR0SetupVM(PVMCC pVM);
50VMMR0DECL(VBOXSTRICTRC) SVMR0RunGuestCode(PVMCPUCC pVCpu);
51VMMR0DECL(int) SVMR0ExportHostState(PVMCPUCC pVCpu);
52VMMR0DECL(int) SVMR0ImportStateOnDemand(PVMCPUCC pVCpu, uint64_t fWhat);
53VMMR0DECL(int) SVMR0InvalidatePage(PVMCPUCC pVCpu, RTGCPTR GCVirt);
54VMMR0DECL(int) SVMR0GetExitAuxInfo(PVMCPUCC pVCpu, PSVMEXITAUX pSvmExitAux);
55
56/**
57 * Executes INVLPGA.
58 *
59 * @param GCVirt Virtual page to invalidate.
60 * @param u32ASID Tagged TLB id.
61 */
62DECLASM(void) SVMR0InvlpgA(RTGCPTR GCVirt, uint32_t u32ASID);
63
64#endif /* IN_RING0 */
65
66/** @} */
67
68RT_C_DECLS_END
69
70#endif /* !VMM_INCLUDED_SRC_VMMR0_HMSVMR0_h */
71
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