1 | /** @file
|
---|
2 | * EM - Execution Monitor.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2019 Oracle Corporation
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License (GPL) as published by the Free Software
|
---|
12 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | *
|
---|
16 | * The contents of this file may alternatively be used under the terms
|
---|
17 | * of the Common Development and Distribution License Version 1.0
|
---|
18 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
19 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
20 | * CDDL are applicable instead of those of the GPL.
|
---|
21 | *
|
---|
22 | * You may elect to license modified versions of this file under the
|
---|
23 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
24 | */
|
---|
25 |
|
---|
26 | #ifndef VBOX_INCLUDED_vmm_em_h
|
---|
27 | #define VBOX_INCLUDED_vmm_em_h
|
---|
28 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
29 | # pragma once
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | #include <VBox/types.h>
|
---|
33 | #include <VBox/vmm/trpm.h>
|
---|
34 | #include <VBox/vmm/vmapi.h>
|
---|
35 |
|
---|
36 |
|
---|
37 | RT_C_DECLS_BEGIN
|
---|
38 |
|
---|
39 | /** @defgroup grp_em The Execution Monitor / Manager API
|
---|
40 | * @ingroup grp_vmm
|
---|
41 | * @{
|
---|
42 | */
|
---|
43 |
|
---|
44 | /** Enable to allow V86 code to run in raw mode. */
|
---|
45 | #define VBOX_RAW_V86
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * The Execution Manager State.
|
---|
49 | *
|
---|
50 | * @remarks This is used in the saved state!
|
---|
51 | */
|
---|
52 | typedef enum EMSTATE
|
---|
53 | {
|
---|
54 | /** Not yet started. */
|
---|
55 | EMSTATE_NONE = 1,
|
---|
56 | /** Raw-mode execution. */
|
---|
57 | EMSTATE_RAW,
|
---|
58 | /** Hardware accelerated raw-mode execution. */
|
---|
59 | EMSTATE_HM,
|
---|
60 | /** Executing in IEM. */
|
---|
61 | EMSTATE_IEM,
|
---|
62 | /** Recompiled mode execution. */
|
---|
63 | EMSTATE_REM,
|
---|
64 | /** Execution is halted. (waiting for interrupt) */
|
---|
65 | EMSTATE_HALTED,
|
---|
66 | /** Application processor execution is halted. (waiting for startup IPI (SIPI)) */
|
---|
67 | EMSTATE_WAIT_SIPI,
|
---|
68 | /** Execution is suspended. */
|
---|
69 | EMSTATE_SUSPENDED,
|
---|
70 | /** The VM is terminating. */
|
---|
71 | EMSTATE_TERMINATING,
|
---|
72 | /** Guest debug event from raw-mode is being processed. */
|
---|
73 | EMSTATE_DEBUG_GUEST_RAW,
|
---|
74 | /** Guest debug event from hardware accelerated mode is being processed. */
|
---|
75 | EMSTATE_DEBUG_GUEST_HM,
|
---|
76 | /** Guest debug event from interpreted execution mode is being processed. */
|
---|
77 | EMSTATE_DEBUG_GUEST_IEM,
|
---|
78 | /** Guest debug event from recompiled-mode is being processed. */
|
---|
79 | EMSTATE_DEBUG_GUEST_REM,
|
---|
80 | /** Hypervisor debug event being processed. */
|
---|
81 | EMSTATE_DEBUG_HYPER,
|
---|
82 | /** The VM has encountered a fatal error. (And everyone is panicing....) */
|
---|
83 | EMSTATE_GURU_MEDITATION,
|
---|
84 | /** Executing in IEM, falling back on REM if we cannot switch back to HM or
|
---|
85 | * RAW after a short while. */
|
---|
86 | EMSTATE_IEM_THEN_REM,
|
---|
87 | /** Executing in native (API) execution monitor. */
|
---|
88 | EMSTATE_NEM,
|
---|
89 | /** Guest debug event from NEM mode is being processed. */
|
---|
90 | EMSTATE_DEBUG_GUEST_NEM,
|
---|
91 | /** Just a hack to ensure that we get a 32-bit integer. */
|
---|
92 | EMSTATE_MAKE_32BIT_HACK = 0x7fffffff
|
---|
93 | } EMSTATE;
|
---|
94 |
|
---|
95 |
|
---|
96 | /**
|
---|
97 | * EMInterpretInstructionCPU execution modes.
|
---|
98 | */
|
---|
99 | typedef enum
|
---|
100 | {
|
---|
101 | /** Only supervisor code (CPL=0). */
|
---|
102 | EMCODETYPE_SUPERVISOR,
|
---|
103 | /** User-level code only. */
|
---|
104 | EMCODETYPE_USER,
|
---|
105 | /** Supervisor and user-level code (use with great care!). */
|
---|
106 | EMCODETYPE_ALL,
|
---|
107 | /** Just a hack to ensure that we get a 32-bit integer. */
|
---|
108 | EMCODETYPE_32BIT_HACK = 0x7fffffff
|
---|
109 | } EMCODETYPE;
|
---|
110 |
|
---|
111 | VMM_INT_DECL(EMSTATE) EMGetState(PVMCPU pVCpu);
|
---|
112 | VMM_INT_DECL(void) EMSetState(PVMCPU pVCpu, EMSTATE enmNewState);
|
---|
113 |
|
---|
114 | /** @name Callback handlers for instruction emulation functions.
|
---|
115 | * These are placed here because IOM wants to use them as well.
|
---|
116 | * @{
|
---|
117 | */
|
---|
118 | typedef DECLCALLBACK(uint32_t) FNEMULATEPARAM2UINT32(void *pvParam1, uint64_t val2);
|
---|
119 | typedef FNEMULATEPARAM2UINT32 *PFNEMULATEPARAM2UINT32;
|
---|
120 | typedef DECLCALLBACK(uint32_t) FNEMULATEPARAM2(void *pvParam1, size_t val2);
|
---|
121 | typedef FNEMULATEPARAM2 *PFNEMULATEPARAM2;
|
---|
122 | typedef DECLCALLBACK(uint32_t) FNEMULATEPARAM3(void *pvParam1, uint64_t val2, size_t val3);
|
---|
123 | typedef FNEMULATEPARAM3 *PFNEMULATEPARAM3;
|
---|
124 | typedef DECLCALLBACK(int) FNEMULATELOCKPARAM2(void *pvParam1, uint64_t val2, RTGCUINTREG32 *pf);
|
---|
125 | typedef FNEMULATELOCKPARAM2 *PFNEMULATELOCKPARAM2;
|
---|
126 | typedef DECLCALLBACK(int) FNEMULATELOCKPARAM3(void *pvParam1, uint64_t val2, size_t cb, RTGCUINTREG32 *pf);
|
---|
127 | typedef FNEMULATELOCKPARAM3 *PFNEMULATELOCKPARAM3;
|
---|
128 | /** @} */
|
---|
129 |
|
---|
130 | VMMDECL(void) EMSetInhibitInterruptsPC(PVMCPU pVCpu, RTGCUINTPTR PC);
|
---|
131 | VMMDECL(RTGCUINTPTR) EMGetInhibitInterruptsPC(PVMCPU pVCpu);
|
---|
132 | VMMDECL(bool) EMIsInhibitInterruptsActive(PVMCPU pVCpu);
|
---|
133 | VMMDECL(void) EMSetHypercallInstructionsEnabled(PVMCPU pVCpu, bool fEnabled);
|
---|
134 | VMMDECL(bool) EMAreHypercallInstructionsEnabled(PVMCPU pVCpu);
|
---|
135 | VMM_INT_DECL(bool) EMShouldContinueAfterHalt(PVMCPU pVCpu, PCPUMCTX pCtx);
|
---|
136 | VMM_INT_DECL(bool) EMMonitorWaitShouldContinue(PVMCPU pVCpu, PCPUMCTX pCtx);
|
---|
137 | VMM_INT_DECL(int) EMMonitorWaitPrepare(PVMCPU pVCpu, uint64_t rax, uint64_t rcx, uint64_t rdx, RTGCPHYS GCPhys);
|
---|
138 | VMM_INT_DECL(void) EMMonitorWaitClear(PVMCPU pVCpu);
|
---|
139 | VMM_INT_DECL(bool) EMMonitorIsArmed(PVMCPU pVCpu);
|
---|
140 | VMM_INT_DECL(unsigned) EMMonitorWaitIsActive(PVMCPU pVCpu);
|
---|
141 | VMM_INT_DECL(int) EMMonitorWaitPerform(PVMCPU pVCpu, uint64_t rax, uint64_t rcx);
|
---|
142 | VMM_INT_DECL(int) EMUnhaltAndWakeUp(PVM pVM, PVMCPU pVCpuDst);
|
---|
143 | VMMRZ_INT_DECL(VBOXSTRICTRC) EMRZSetPendingIoPortWrite(PVMCPU pVCpu, RTIOPORT uPort, uint8_t cbInstr, uint8_t cbValue, uint32_t uValue);
|
---|
144 | VMMRZ_INT_DECL(VBOXSTRICTRC) EMRZSetPendingIoPortRead(PVMCPU pVCpu, RTIOPORT uPort, uint8_t cbInstr, uint8_t cbValue);
|
---|
145 |
|
---|
146 | /**
|
---|
147 | * Common defined exit types that EM knows what to do about.
|
---|
148 | *
|
---|
149 | * These should be used instead of the VT-x, SVM or NEM specific ones for exits
|
---|
150 | * worth optimizing.
|
---|
151 | */
|
---|
152 | typedef enum EMEXITTYPE
|
---|
153 | {
|
---|
154 | EMEXITTYPE_INVALID = 0,
|
---|
155 | EMEXITTYPE_IO_PORT_READ,
|
---|
156 | EMEXITTYPE_IO_PORT_WRITE,
|
---|
157 | EMEXITTYPE_IO_PORT_STR_READ,
|
---|
158 | EMEXITTYPE_IO_PORT_STR_WRITE,
|
---|
159 | EMEXITTYPE_MMIO,
|
---|
160 | EMEXITTYPE_MMIO_READ,
|
---|
161 | EMEXITTYPE_MMIO_WRITE,
|
---|
162 | EMEXITTYPE_MSR_READ,
|
---|
163 | EMEXITTYPE_MSR_WRITE,
|
---|
164 | EMEXITTYPE_CPUID,
|
---|
165 | EMEXITTYPE_RDTSC,
|
---|
166 | EMEXITTYPE_MOV_CRX,
|
---|
167 | EMEXITTYPE_MOV_DRX,
|
---|
168 |
|
---|
169 | /** @name Raw-mode only (for now), keep at end.
|
---|
170 | * @{ */
|
---|
171 | EMEXITTYPE_INVLPG,
|
---|
172 | EMEXITTYPE_LLDT,
|
---|
173 | EMEXITTYPE_RDPMC,
|
---|
174 | EMEXITTYPE_CLTS,
|
---|
175 | EMEXITTYPE_STI,
|
---|
176 | EMEXITTYPE_INT,
|
---|
177 | EMEXITTYPE_SYSCALL,
|
---|
178 | EMEXITTYPE_SYSENTER,
|
---|
179 | EMEXITTYPE_HLT
|
---|
180 | /** @} */
|
---|
181 | } EMEXITTYPE;
|
---|
182 | AssertCompileSize(EMEXITTYPE, 4);
|
---|
183 |
|
---|
184 | /** @name EMEXIT_F_XXX - EM exit flags.
|
---|
185 | *
|
---|
186 | * The flags the exit type are combined to a 32-bit number using the
|
---|
187 | * EMEXIT_MAKE_FT() macro.
|
---|
188 | *
|
---|
189 | * @{ */
|
---|
190 | #define EMEXIT_F_TYPE_MASK UINT32_C(0x00000fff) /**< The exit type mask. */
|
---|
191 | #define EMEXIT_F_KIND_EM UINT32_C(0x00000000) /**< EMEXITTYPE */
|
---|
192 | #define EMEXIT_F_KIND_VMX UINT32_C(0x00001000) /**< VT-x exit codes. */
|
---|
193 | #define EMEXIT_F_KIND_SVM UINT32_C(0x00002000) /**< SVM exit codes. */
|
---|
194 | #define EMEXIT_F_KIND_NEM UINT32_C(0x00003000) /**< NEMEXITTYPE */
|
---|
195 | #define EMEXIT_F_KIND_XCPT UINT32_C(0x00004000) /**< Exception numbers (raw-mode). */
|
---|
196 | #define EMEXIT_F_KIND_MASK UINT32_C(0x00007000)
|
---|
197 | #define EMEXIT_F_CS_EIP UINT32_C(0x00010000) /**< The PC is EIP in the low dword and CS in the high. */
|
---|
198 | #define EMEXIT_F_UNFLATTENED_PC UINT32_C(0x00020000) /**< The PC hasn't had CS.BASE added to it. */
|
---|
199 | /** HM is calling (from ring-0). Preemption is currently disabled or we're using preemption hooks. */
|
---|
200 | #define EMEXIT_F_HM UINT32_C(0x00040000)
|
---|
201 | /** Combines flags and exit type into EMHistoryAddExit() input. */
|
---|
202 | #define EMEXIT_MAKE_FT(a_fFlags, a_uType) ((a_fFlags) | (uint32_t)(a_uType))
|
---|
203 | /** @} */
|
---|
204 |
|
---|
205 | typedef enum EMEXITACTION
|
---|
206 | {
|
---|
207 | /** The record is free. */
|
---|
208 | EMEXITACTION_FREE_RECORD = 0,
|
---|
209 | /** Take normal action on the exit. */
|
---|
210 | EMEXITACTION_NORMAL,
|
---|
211 | /** Take normal action on the exit, already probed and found nothing. */
|
---|
212 | EMEXITACTION_NORMAL_PROBED,
|
---|
213 | /** Do a probe execution. */
|
---|
214 | EMEXITACTION_EXEC_PROBE,
|
---|
215 | /** Execute using EMEXITREC::cMaxInstructionsWithoutExit. */
|
---|
216 | EMEXITACTION_EXEC_WITH_MAX
|
---|
217 | } EMEXITACTION;
|
---|
218 | AssertCompileSize(EMEXITACTION, 4);
|
---|
219 |
|
---|
220 | /**
|
---|
221 | * Accumulative exit record.
|
---|
222 | *
|
---|
223 | * This could perhaps be squeezed down a bit, but there isn't too much point.
|
---|
224 | * We'll probably need more data as time goes by.
|
---|
225 | */
|
---|
226 | typedef struct EMEXITREC
|
---|
227 | {
|
---|
228 | /** The flat PC of the exit. */
|
---|
229 | uint64_t uFlatPC;
|
---|
230 | /** Flags and type, see EMEXIT_MAKE_FT. */
|
---|
231 | uint32_t uFlagsAndType;
|
---|
232 | /** The action to take (EMEXITACTION). */
|
---|
233 | uint8_t enmAction;
|
---|
234 | uint8_t bUnused;
|
---|
235 | /** Maximum number of instructions to execute without hitting an exit. */
|
---|
236 | uint16_t cMaxInstructionsWithoutExit;
|
---|
237 | /** The exit number (EMCPU::iNextExit) at which it was last updated. */
|
---|
238 | uint64_t uLastExitNo;
|
---|
239 | /** Number of hits. */
|
---|
240 | uint64_t cHits;
|
---|
241 | } EMEXITREC;
|
---|
242 | AssertCompileSize(EMEXITREC, 32);
|
---|
243 | /** Pointer to an accumulative exit record. */
|
---|
244 | typedef EMEXITREC *PEMEXITREC;
|
---|
245 | /** Pointer to a const accumulative exit record. */
|
---|
246 | typedef EMEXITREC const *PCEMEXITREC;
|
---|
247 |
|
---|
248 | VMM_INT_DECL(PCEMEXITREC) EMHistoryAddExit(PVMCPU pVCpu, uint32_t uFlagsAndType, uint64_t uFlatPC, uint64_t uTimestamp);
|
---|
249 | #ifdef IN_RC
|
---|
250 | VMMRC_INT_DECL(void) EMRCHistoryAddExitCsEip(PVMCPU pVCpu, uint32_t uFlagsAndType, uint16_t uCs, uint32_t uEip,
|
---|
251 | uint64_t uTimestamp);
|
---|
252 | #endif
|
---|
253 | #ifdef IN_RING0
|
---|
254 | VMMR0_INT_DECL(void) EMR0HistoryUpdatePC(PVMCPU pVCpu, uint64_t uFlatPC, bool fFlattened);
|
---|
255 | #endif
|
---|
256 | VMM_INT_DECL(PCEMEXITREC) EMHistoryUpdateFlagsAndType(PVMCPU pVCpu, uint32_t uFlagsAndType);
|
---|
257 | VMM_INT_DECL(PCEMEXITREC) EMHistoryUpdateFlagsAndTypeAndPC(PVMCPU pVCpu, uint32_t uFlagsAndType, uint64_t uFlatPC);
|
---|
258 | VMM_INT_DECL(VBOXSTRICTRC) EMHistoryExec(PVMCPU pVCpu, PCEMEXITREC pExitRec, uint32_t fWillExit);
|
---|
259 |
|
---|
260 |
|
---|
261 | /** @name Deprecated interpretation related APIs (use IEM).
|
---|
262 | * @{ */
|
---|
263 | VMM_INT_DECL(int) EMInterpretDisasCurrent(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pCpu, unsigned *pcbInstr);
|
---|
264 | VMM_INT_DECL(int) EMInterpretDisasOneEx(PVM pVM, PVMCPU pVCpu, RTGCUINTPTR GCPtrInstr, PCCPUMCTXCORE pCtxCore,
|
---|
265 | PDISCPUSTATE pDISState, unsigned *pcbInstr);
|
---|
266 | VMM_INT_DECL(VBOXSTRICTRC) EMInterpretInstruction(PVMCPU pVCpu, PCPUMCTXCORE pCoreCtx, RTGCPTR pvFault);
|
---|
267 | VMM_INT_DECL(VBOXSTRICTRC) EMInterpretInstructionEx(PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbWritten);
|
---|
268 | VMM_INT_DECL(VBOXSTRICTRC) EMInterpretInstructionDisasState(PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pCoreCtx,
|
---|
269 | RTGCPTR pvFault, EMCODETYPE enmCodeType);
|
---|
270 | #ifdef IN_RC
|
---|
271 | VMM_INT_DECL(int) EMInterpretIretV86ForPatm(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame);
|
---|
272 | #endif
|
---|
273 | VMM_INT_DECL(int) EMInterpretRdpmc(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame);
|
---|
274 | VMM_INT_DECL(int) EMInterpretDRxWrite(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, uint32_t DestRegDrx, uint32_t SrcRegGen);
|
---|
275 | VMM_INT_DECL(int) EMInterpretDRxRead(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, uint32_t DestRegGen, uint32_t SrcRegDrx);
|
---|
276 | /** @} */
|
---|
277 |
|
---|
278 |
|
---|
279 | /** @name REM locking routines
|
---|
280 | * @{ */
|
---|
281 | VMMDECL(void) EMRemUnlock(PVM pVM);
|
---|
282 | VMMDECL(void) EMRemLock(PVM pVM);
|
---|
283 | VMMDECL(bool) EMRemIsLockOwner(PVM pVM);
|
---|
284 | VMM_INT_DECL(int) EMRemTryLock(PVM pVM);
|
---|
285 | /** @} */
|
---|
286 |
|
---|
287 |
|
---|
288 | /** @name EM_ONE_INS_FLAGS_XXX - flags for EMR3HmSingleInstruction (et al).
|
---|
289 | * @{ */
|
---|
290 | /** Return when CS:RIP changes or some other important event happens.
|
---|
291 | * This means running whole REP and LOOP $ sequences for instance. */
|
---|
292 | #define EM_ONE_INS_FLAGS_RIP_CHANGE RT_BIT_32(0)
|
---|
293 | /** Mask of valid flags. */
|
---|
294 | #define EM_ONE_INS_FLAGS_MASK UINT32_C(0x00000001)
|
---|
295 | /** @} */
|
---|
296 |
|
---|
297 |
|
---|
298 | #ifdef IN_RING0
|
---|
299 | /** @defgroup grp_em_r0 The EM Host Context Ring-0 API
|
---|
300 | * @{ */
|
---|
301 | # ifdef VBOX_BUGREF_9217
|
---|
302 | VMMR0_INT_DECL(int) EMR0InitVM(PGVM pGVM);
|
---|
303 | # else
|
---|
304 | VMMR0_INT_DECL(int) EMR0InitVM(PGVM pGVM, PVM pVM);
|
---|
305 | # endif
|
---|
306 | /** @} */
|
---|
307 | #endif
|
---|
308 |
|
---|
309 |
|
---|
310 | #ifdef IN_RING3
|
---|
311 | /** @defgroup grp_em_r3 The EM Host Context Ring-3 API
|
---|
312 | * @{
|
---|
313 | */
|
---|
314 |
|
---|
315 | /**
|
---|
316 | * Command argument for EMR3RawSetMode().
|
---|
317 | *
|
---|
318 | * It's possible to extend this interface to change several
|
---|
319 | * execution modes at once should the need arise.
|
---|
320 | */
|
---|
321 | typedef enum EMEXECPOLICY
|
---|
322 | {
|
---|
323 | /** The customary invalid zero entry. */
|
---|
324 | EMEXECPOLICY_INVALID = 0,
|
---|
325 | /** Whether to recompile ring-0 code or execute it in raw/hm. */
|
---|
326 | EMEXECPOLICY_RECOMPILE_RING0,
|
---|
327 | /** Whether to recompile ring-3 code or execute it in raw/hm. */
|
---|
328 | EMEXECPOLICY_RECOMPILE_RING3,
|
---|
329 | /** Whether to only use IEM for execution. */
|
---|
330 | EMEXECPOLICY_IEM_ALL,
|
---|
331 | /** End of valid value (not included). */
|
---|
332 | EMEXECPOLICY_END,
|
---|
333 | /** The customary 32-bit type blowup. */
|
---|
334 | EMEXECPOLICY_32BIT_HACK = 0x7fffffff
|
---|
335 | } EMEXECPOLICY;
|
---|
336 | VMMR3DECL(int) EMR3SetExecutionPolicy(PUVM pUVM, EMEXECPOLICY enmPolicy, bool fEnforce);
|
---|
337 | VMMR3DECL(int) EMR3QueryExecutionPolicy(PUVM pUVM, EMEXECPOLICY enmPolicy, bool *pfEnforced);
|
---|
338 | VMMR3DECL(int) EMR3QueryMainExecutionEngine(PUVM pUVM, uint8_t *pbMainExecutionEngine);
|
---|
339 |
|
---|
340 | VMMR3_INT_DECL(int) EMR3Init(PVM pVM);
|
---|
341 | VMMR3_INT_DECL(int) EMR3InitCompleted(PVM pVM, VMINITCOMPLETED enmWhat);
|
---|
342 | VMMR3_INT_DECL(void) EMR3Relocate(PVM pVM);
|
---|
343 | VMMR3_INT_DECL(void) EMR3ResetCpu(PVMCPU pVCpu);
|
---|
344 | VMMR3_INT_DECL(void) EMR3Reset(PVM pVM);
|
---|
345 | VMMR3_INT_DECL(int) EMR3Term(PVM pVM);
|
---|
346 | VMMR3DECL(DECLNORETURN(void)) EMR3FatalError(PVMCPU pVCpu, int rc);
|
---|
347 | VMMR3_INT_DECL(int) EMR3ExecuteVM(PVM pVM, PVMCPU pVCpu);
|
---|
348 | VMMR3_INT_DECL(int) EMR3CheckRawForcedActions(PVM pVM, PVMCPU pVCpu);
|
---|
349 | VMMR3_INT_DECL(int) EMR3NotifyResume(PVM pVM);
|
---|
350 | VMMR3_INT_DECL(int) EMR3NotifySuspend(PVM pVM);
|
---|
351 | VMMR3_INT_DECL(VBOXSTRICTRC) EMR3HmSingleInstruction(PVM pVM, PVMCPU pVCpu, uint32_t fFlags);
|
---|
352 |
|
---|
353 | /** @} */
|
---|
354 | #endif /* IN_RING3 */
|
---|
355 |
|
---|
356 | /** @} */
|
---|
357 |
|
---|
358 | RT_C_DECLS_END
|
---|
359 |
|
---|
360 | #endif /* !VBOX_INCLUDED_vmm_em_h */
|
---|
361 |
|
---|