1 | /* $Id: HMVMXR0.h 83057 2020-02-12 05:07:09Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * HM VMX (VT-x) - Internal header file.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-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_HMVMXR0_h
|
---|
19 | #define VMM_INCLUDED_SRC_VMMR0_HMVMXR0_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | RT_C_DECLS_BEGIN
|
---|
25 |
|
---|
26 | /** @defgroup grp_vmx_int Internal
|
---|
27 | * @ingroup grp_vmx
|
---|
28 | * @internal
|
---|
29 | * @{
|
---|
30 | */
|
---|
31 |
|
---|
32 | #ifdef IN_RING0
|
---|
33 | VMMR0DECL(int) VMXR0Enter(PVMCPUCC pVCpu);
|
---|
34 | VMMR0DECL(void) VMXR0ThreadCtxCallback(RTTHREADCTXEVENT enmEvent, PVMCPUCC pVCpu, bool fGlobalInit);
|
---|
35 | VMMR0DECL(int) VMXR0CallRing3Callback(PVMCPUCC pVCpu, VMMCALLRING3 enmOperation);
|
---|
36 | VMMR0DECL(int) VMXR0EnableCpu(PHMPHYSCPU pHostCpu, PVMCC pVM, void *pvPageCpu, RTHCPHYS pPageCpuPhys,
|
---|
37 | bool fEnabledBySystem, PCSUPHWVIRTMSRS pHwvirtMsrs);
|
---|
38 | VMMR0DECL(int) VMXR0DisableCpu(PHMPHYSCPU pHostCpu, void *pvPageCpu, RTHCPHYS pPageCpuPhys);
|
---|
39 | VMMR0DECL(int) VMXR0GlobalInit(void);
|
---|
40 | VMMR0DECL(void) VMXR0GlobalTerm(void);
|
---|
41 | VMMR0DECL(int) VMXR0InitVM(PVMCC pVM);
|
---|
42 | VMMR0DECL(int) VMXR0TermVM(PVMCC pVM);
|
---|
43 | VMMR0DECL(int) VMXR0SetupVM(PVMCC pVM);
|
---|
44 | VMMR0DECL(int) VMXR0ExportHostState(PVMCPUCC pVCpu);
|
---|
45 | VMMR0DECL(int) VMXR0InvalidatePage(PVMCPUCC pVCpu, RTGCPTR GCVirt);
|
---|
46 | VMMR0DECL(int) VMXR0ImportStateOnDemand(PVMCPUCC pVCpu, uint64_t fWhat);
|
---|
47 | VMMR0DECL(VBOXSTRICTRC) VMXR0RunGuestCode(PVMCPUCC pVCpu);
|
---|
48 | DECLASM(int) VMXR0StartVM64(RTHCUINT fResume, PCPUMCTX pCtx, void *pvUnused, PVMCC pVM, PVMCPUCC pVCpu);
|
---|
49 | #endif /* IN_RING0 */
|
---|
50 |
|
---|
51 | /** @} */
|
---|
52 |
|
---|
53 | RT_C_DECLS_END
|
---|
54 |
|
---|
55 | #endif /* !VMM_INCLUDED_SRC_VMMR0_HMVMXR0_h */
|
---|
56 |
|
---|