VirtualBox

source: vbox/trunk/include/VBox/vmm/vmapi.h@ 90981

最後變更 在這個檔案從90981是 90834,由 vboxsync 提交於 4 年 前

Doxygen fixes.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 19.0 KB
 
1/** @file
2 * VM - The Virtual Machine, API.
3 */
4
5/*
6 * Copyright (C) 2006-2020 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.alldomusa.eu.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_vmapi_h
27#define VBOX_INCLUDED_vmm_vmapi_h
28#ifndef RT_WITHOUT_PRAGMA_ONCE
29# pragma once
30#endif
31
32#include <VBox/types.h>
33#include <VBox/vmm/stam.h>
34#include <VBox/vmm/cfgm.h>
35
36#include <iprt/stdarg.h>
37
38RT_C_DECLS_BEGIN
39
40/** @defgroup grp_vm_apis VM All Contexts API
41 * @ingroup grp_vm
42 * @{ */
43
44/** @name VM_EXEC_ENGINE_XXX - VM::bMainExecutionEngine values.
45 * @sa EMR3QueryMainExecutionEngine, VM_IS_RAW_MODE_ENABLED, VM_IS_HM_ENABLED,
46 * VM_IS_HM_OR_NEM_ENABLED, VM_IS_NEM_ENABLED, VM_SET_MAIN_EXECUTION_ENGINE
47 * @{ */
48/** Has not yet been set. */
49#define VM_EXEC_ENGINE_NOT_SET UINT8_C(0)
50/** Raw-mode. */
51#define VM_EXEC_ENGINE_RAW_MODE UINT8_C(1)
52/** Hardware assisted virtualization thru HM. */
53#define VM_EXEC_ENGINE_HW_VIRT UINT8_C(2)
54/** Hardware assisted virtualization thru native API (NEM). */
55#define VM_EXEC_ENGINE_NATIVE_API UINT8_C(3)
56/** @} */
57
58
59/**
60 * VM error callback function.
61 *
62 * @param pUVM The user mode VM handle. Can be NULL if an error
63 * occurred before successfully creating a VM.
64 * @param pvUser The user argument.
65 * @param rc VBox status code.
66 * @param SRC_POS The source position arguments. See RT_SRC_POS and RT_SRC_POS_ARGS.
67 * @param pszFormat Error message format string.
68 * @param args Error message arguments.
69 */
70typedef DECLCALLBACKTYPE(void, FNVMATERROR,(PUVM pUVM, void *pvUser, int rc, RT_SRC_POS_DECL,
71 const char *pszFormat, va_list args));
72/** Pointer to a VM error callback. */
73typedef FNVMATERROR *PFNVMATERROR;
74
75VMMDECL(int) VMSetError(PVMCC pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7);
76VMMDECL(int) VMSetErrorV(PVMCC pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(6, 7);
77
78/** @def VM_SET_ERROR
79 * Macro for setting a simple VM error message.
80 * Don't use '%' in the message!
81 *
82 * @returns rc. Meaning you can do:
83 * @code
84 * return VM_SET_ERROR(pVM, VERR_OF_YOUR_CHOICE, "descriptive message");
85 * @endcode
86 * @param pVM The cross context VM structure.
87 * @param rc VBox status code.
88 * @param pszMessage Error message string.
89 * @thread Any
90 */
91#define VM_SET_ERROR(pVM, rc, pszMessage) (VMSetError(pVM, rc, RT_SRC_POS, pszMessage))
92
93/** @def VM_SET_ERROR
94 * Macro for setting a simple VM error message.
95 * Don't use '%' in the message!
96 *
97 * @returns rc. Meaning you can do:
98 * @code
99 * return VM_SET_ERROR(pVM, VERR_OF_YOUR_CHOICE, "descriptive message");
100 * @endcode
101 * @param pVM The cross context VM structure.
102 * @param rc VBox status code.
103 * @param pszMessage Error message string.
104 * @thread Any
105 */
106#define VM_SET_ERROR_U(a_pUVM, a_rc, a_pszMessage) (VMR3SetError(a_pUVM, a_rc, RT_SRC_POS, a_pszMessage))
107
108
109/**
110 * VM runtime error callback function.
111 *
112 * See VMSetRuntimeError for the detailed description of parameters.
113 *
114 * @param pUVM The user mode VM handle.
115 * @param pvUser The user argument.
116 * @param fFlags The error flags.
117 * @param pszErrorId Error ID string.
118 * @param pszFormat Error message format string.
119 * @param va Error message arguments.
120 */
121typedef DECLCALLBACKTYPE(void, FNVMATRUNTIMEERROR,(PUVM pUVM, void *pvUser, uint32_t fFlags, const char *pszErrorId,
122 const char *pszFormat, va_list va)) RT_IPRT_FORMAT_ATTR(5, 0);
123/** Pointer to a VM runtime error callback. */
124typedef FNVMATRUNTIMEERROR *PFNVMATRUNTIMEERROR;
125
126VMMDECL(int) VMSetRuntimeError(PVMCC pVM, uint32_t fFlags, const char *pszErrorId,
127 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(4, 5);
128VMMDECL(int) VMSetRuntimeErrorV(PVMCC pVM, uint32_t fFlags, const char *pszErrorId,
129 const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(4, 0);
130
131/** @name VMSetRuntimeError fFlags
132 * When no flags are given the VM will continue running and it's up to the front
133 * end to take action on the error condition.
134 *
135 * @{ */
136/** The error is fatal.
137 * The VM is not in a state where it can be saved and will enter a state
138 * where it can no longer execute code. The caller <b>must</b> propagate status
139 * codes. */
140#define VMSETRTERR_FLAGS_FATAL RT_BIT_32(0)
141/** Suspend the VM after, or if possible before, raising the error on EMT. The
142 * caller <b>must</b> propagate status codes. */
143#define VMSETRTERR_FLAGS_SUSPEND RT_BIT_32(1)
144/** Don't wait for the EMT to handle the request.
145 * Only valid when on a worker thread and there is a high risk of a dead
146 * lock. Be careful not to flood the user with errors. */
147#define VMSETRTERR_FLAGS_NO_WAIT RT_BIT_32(2)
148/** @} */
149
150/**
151 * VM state change callback function.
152 *
153 * You are not allowed to call any function which changes the VM state from a
154 * state callback, except VMR3Destroy().
155 *
156 * @param pUVM The user mode VM handle.
157 * @param enmState The new state.
158 * @param enmOldState The old state.
159 * @param pvUser The user argument.
160 */
161typedef DECLCALLBACKTYPE(void, FNVMATSTATE,(PUVM pUVM, VMSTATE enmState, VMSTATE enmOldState, void *pvUser));
162/** Pointer to a VM state callback. */
163typedef FNVMATSTATE *PFNVMATSTATE;
164
165VMMDECL(const char *) VMGetStateName(VMSTATE enmState);
166
167VMMDECL(uint32_t) VMGetResetCount(PVMCC pVM);
168VMMDECL(uint32_t) VMGetSoftResetCount(PVMCC pVM);
169VMMDECL(uint32_t) VMGetHardResetCount(PVMCC pVM);
170
171
172/**
173 * Request type.
174 */
175typedef enum VMREQTYPE
176{
177 /** Invalid request. */
178 VMREQTYPE_INVALID = 0,
179 /** VM: Internal. */
180 VMREQTYPE_INTERNAL,
181 /** Maximum request type (exclusive). Used for validation. */
182 VMREQTYPE_MAX
183} VMREQTYPE;
184
185/**
186 * Request state.
187 */
188typedef enum VMREQSTATE
189{
190 /** The state is invalid. */
191 VMREQSTATE_INVALID = 0,
192 /** The request have been allocated and is in the process of being filed. */
193 VMREQSTATE_ALLOCATED,
194 /** The request is queued by the requester. */
195 VMREQSTATE_QUEUED,
196 /** The request is begin processed. */
197 VMREQSTATE_PROCESSING,
198 /** The request is completed, the requester is begin notified. */
199 VMREQSTATE_COMPLETED,
200 /** The request packet is in the free chain. (The requester */
201 VMREQSTATE_FREE
202} VMREQSTATE;
203
204/**
205 * Request flags.
206 */
207typedef enum VMREQFLAGS
208{
209 /** The request returns a VBox status code. */
210 VMREQFLAGS_VBOX_STATUS = 0,
211 /** The request is a void request and have no status code. */
212 VMREQFLAGS_VOID = 1,
213 /** Return type mask. */
214 VMREQFLAGS_RETURN_MASK = 1,
215 /** Caller does not wait on the packet, EMT will free it. */
216 VMREQFLAGS_NO_WAIT = 2,
217 /** Poke the destination EMT(s) if executing guest code. Use with care. */
218 VMREQFLAGS_POKE = 4,
219 /** Priority request that can safely be processed while doing async
220 * suspend and power off. */
221 VMREQFLAGS_PRIORITY = 8
222} VMREQFLAGS;
223
224
225/**
226 * VM Request packet.
227 *
228 * This is used to request an action in the EMT. Usually the requester is
229 * another thread, but EMT can also end up being the requester in which case
230 * it's carried out synchronously.
231 */
232typedef struct VMREQ
233{
234 /** Pointer to the next request in the chain. */
235 struct VMREQ * volatile pNext;
236 /** Pointer to ring-3 VM structure which this request belongs to. */
237 PUVM pUVM;
238 /** Request state. */
239 volatile VMREQSTATE enmState;
240 /** VBox status code for the completed request. */
241 volatile int32_t iStatus;
242 /** Requester event sem.
243 * The request can use this event semaphore to wait/poll for completion
244 * of the request.
245 */
246 RTSEMEVENT EventSem;
247 /** Set if the event semaphore is clear. */
248 volatile bool fEventSemClear;
249 /** Flags, VMR3REQ_FLAGS_*. */
250 unsigned fFlags;
251 /** Request type. */
252 VMREQTYPE enmType;
253 /** Request destination. */
254 VMCPUID idDstCpu;
255 /** Request specific data. */
256 union VMREQ_U
257 {
258 /** VMREQTYPE_INTERNAL. */
259 struct
260 {
261 /** Pointer to the function to be called. */
262 PFNRT pfn;
263 /** Number of arguments. */
264 unsigned cArgs;
265 /** Array of arguments. */
266 uintptr_t aArgs[64];
267 } Internal;
268 } u;
269} VMREQ;
270/** Pointer to a VM request packet. */
271typedef VMREQ *PVMREQ;
272
273
274#ifndef IN_RC
275/** @defgroup grp_vmm_apis_hc VM Host Context API
276 * @ingroup grp_vm
277 * @{ */
278
279/** @} */
280#endif
281
282
283#ifdef IN_RING3
284/** @defgroup grp_vmm_apis_r3 VM Host Context Ring 3 API
285 * @ingroup grp_vm
286 * @{ */
287
288/**
289 * Completion notification codes.
290 */
291typedef enum VMINITCOMPLETED
292{
293 /** The ring-3 init is completed. */
294 VMINITCOMPLETED_RING3 = 1,
295 /** The ring-0 init is completed. */
296 VMINITCOMPLETED_RING0,
297 /** The hardware accelerated virtualization init is completed.
298 * Used to make decisision depending on HM* bits being completely
299 * initialized. */
300 VMINITCOMPLETED_HM
301} VMINITCOMPLETED;
302
303
304/** Reason for VM resume. */
305typedef enum VMRESUMEREASON
306{
307 VMRESUMEREASON_INVALID = 0,
308 /** User decided to do so. */
309 VMRESUMEREASON_USER,
310 /** VM reconfiguration (like changing DVD). */
311 VMRESUMEREASON_RECONFIG,
312 /** The host resumed. */
313 VMRESUMEREASON_HOST_RESUME,
314 /** Restored state. */
315 VMRESUMEREASON_STATE_RESTORED,
316 /** Snapshot / saved state. */
317 VMRESUMEREASON_STATE_SAVED,
318 /** Teleported to a new box / instance. */
319 VMRESUMEREASON_TELEPORTED,
320 /** Teleportation failed. */
321 VMRESUMEREASON_TELEPORT_FAILED,
322 /** FTM temporarily suspended the VM. */
323 VMRESUMEREASON_FTM_SYNC,
324 /** End of valid reasons. */
325 VMRESUMEREASON_END,
326 /** Blow the type up to 32-bits. */
327 VMRESUMEREASON_32BIT_HACK = 0x7fffffff
328} VMRESUMEREASON;
329
330/** Reason for VM suspend. */
331typedef enum VMSUSPENDREASON
332{
333 VMSUSPENDREASON_INVALID = 0,
334 /** User decided to do so. */
335 VMSUSPENDREASON_USER,
336 /** VM reconfiguration (like changing DVD). */
337 VMSUSPENDREASON_RECONFIG,
338 /** The VM is suspending itself. */
339 VMSUSPENDREASON_VM,
340 /** The Vm is suspending because of a runtime error. */
341 VMSUSPENDREASON_RUNTIME_ERROR,
342 /** The host was suspended. */
343 VMSUSPENDREASON_HOST_SUSPEND,
344 /** The host is running low on battery power. */
345 VMSUSPENDREASON_HOST_BATTERY_LOW,
346 /** FTM is temporarily suspending the VM. */
347 VMSUSPENDREASON_FTM_SYNC,
348 /** End of valid reasons. */
349 VMSUSPENDREASON_END,
350 /** Blow the type up to 32-bits. */
351 VMSUSPENDREASON_32BIT_HACK = 0x7fffffff
352} VMSUSPENDREASON;
353
354
355/**
356 * Progress callback.
357 *
358 * This will report the completion percentage of an operation.
359 *
360 * @returns VINF_SUCCESS.
361 * @returns Error code to cancel the operation with.
362 * @param pUVM The user mode VM handle.
363 * @param uPercent Completion percentage (0-100).
364 * @param pvUser User specified argument.
365 */
366typedef DECLCALLBACKTYPE(int, FNVMPROGRESS,(PUVM pUVM, unsigned uPercent, void *pvUser));
367/** Pointer to a FNVMPROGRESS function. */
368typedef FNVMPROGRESS *PFNVMPROGRESS;
369
370
371VMMR3DECL(int) VMR3Create(uint32_t cCpus, PCVMM2USERMETHODS pVm2UserCbs,
372 PFNVMATERROR pfnVMAtError, void *pvUserVM,
373 PFNCFGMCONSTRUCTOR pfnCFGMConstructor, void *pvUserCFGM,
374 PVM *ppVM, PUVM *ppUVM);
375VMMR3DECL(int) VMR3PowerOn(PUVM pUVM);
376VMMR3DECL(int) VMR3Suspend(PUVM pUVM, VMSUSPENDREASON enmReason);
377VMMR3DECL(VMSUSPENDREASON) VMR3GetSuspendReason(PUVM);
378VMMR3DECL(int) VMR3Resume(PUVM pUVM, VMRESUMEREASON enmReason);
379VMMR3DECL(VMRESUMEREASON) VMR3GetResumeReason(PUVM);
380VMMR3DECL(int) VMR3Reset(PUVM pUVM);
381VMMR3_INT_DECL(VBOXSTRICTRC) VMR3ResetFF(PVM pVM);
382VMMR3_INT_DECL(VBOXSTRICTRC) VMR3ResetTripleFault(PVM pVM);
383VMMR3DECL(int) VMR3Save(PUVM pUVM, const char *pszFilename, bool fContinueAfterwards, PFNVMPROGRESS pfnProgress, void *pvUser, bool *pfSuspended);
384VMMR3DECL(int) VMR3Teleport(PUVM pUVM, uint32_t cMsDowntime, PCSSMSTRMOPS pStreamOps, void *pvStreamOpsUser, PFNVMPROGRESS pfnProgress, void *pvProgressUser, bool *pfSuspended);
385VMMR3DECL(int) VMR3LoadFromFile(PUVM pUVM, const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser);
386VMMR3DECL(int) VMR3LoadFromStream(PUVM pUVM, PCSSMSTRMOPS pStreamOps, void *pvStreamOpsUser,
387 PFNVMPROGRESS pfnProgress, void *pvProgressUser);
388
389VMMR3DECL(int) VMR3PowerOff(PUVM pUVM);
390VMMR3DECL(int) VMR3Destroy(PUVM pUVM);
391VMMR3_INT_DECL(void) VMR3Relocate(PVM pVM, RTGCINTPTR offDelta);
392
393VMMR3DECL(PVM) VMR3GetVM(PUVM pUVM);
394VMMR3DECL(PUVM) VMR3GetUVM(PVM pVM);
395VMMR3DECL(uint32_t) VMR3RetainUVM(PUVM pUVM);
396VMMR3DECL(uint32_t) VMR3ReleaseUVM(PUVM pUVM);
397VMMR3DECL(const char *) VMR3GetName(PUVM pUVM);
398VMMR3DECL(PRTUUID) VMR3GetUuid(PUVM pUVM, PRTUUID pUuid);
399VMMR3DECL(VMSTATE) VMR3GetState(PVM pVM);
400VMMR3DECL(VMSTATE) VMR3GetStateU(PUVM pUVM);
401VMMR3DECL(const char *) VMR3GetStateName(VMSTATE enmState);
402VMMR3DECL(int) VMR3AtStateRegister(PUVM pUVM, PFNVMATSTATE pfnAtState, void *pvUser);
403VMMR3DECL(int) VMR3AtStateDeregister(PUVM pUVM, PFNVMATSTATE pfnAtState, void *pvUser);
404VMMR3_INT_DECL(bool) VMR3SetGuruMeditation(PVM pVM);
405VMMR3_INT_DECL(bool) VMR3TeleportedAndNotFullyResumedYet(PVM pVM);
406VMMR3DECL(int) VMR3AtErrorRegister(PUVM pUVM, PFNVMATERROR pfnAtError, void *pvUser);
407VMMR3DECL(int) VMR3AtErrorDeregister(PUVM pUVM, PFNVMATERROR pfnAtError, void *pvUser);
408VMMR3DECL(int) VMR3SetError(PUVM pUVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7);
409VMMR3DECL(int) VMR3SetErrorV(PUVM pUVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0);
410VMMR3_INT_DECL(void) VMR3SetErrorWorker(PVM pVM);
411VMMR3_INT_DECL(uint32_t) VMR3GetErrorCount(PUVM pUVM);
412VMMR3DECL(int) VMR3AtRuntimeErrorRegister(PUVM pUVM, PFNVMATRUNTIMEERROR pfnAtRuntimeError, void *pvUser);
413VMMR3DECL(int) VMR3AtRuntimeErrorDeregister(PUVM pUVM, PFNVMATRUNTIMEERROR pfnAtRuntimeError, void *pvUser);
414VMMR3_INT_DECL(int) VMR3SetRuntimeErrorWorker(PVM pVM);
415VMMR3_INT_DECL(uint32_t) VMR3GetRuntimeErrorCount(PUVM pUVM);
416
417VMMR3DECL(int) VMR3ReqCallU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, RTMSINTERVAL cMillies, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, ...);
418VMMR3DECL(int) VMR3ReqCallVU(PUVM pUVM, VMCPUID idDstCpu, PVMREQ *ppReq, RTMSINTERVAL cMillies, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args);
419VMMR3_INT_DECL(int) VMR3ReqCallWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
420VMMR3DECL(int) VMR3ReqCallWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
421VMMR3DECL(int) VMR3ReqCallNoWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
422VMMR3DECL(int) VMR3ReqCallNoWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
423VMMR3_INT_DECL(int) VMR3ReqCallVoidWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
424VMMR3DECL(int) VMR3ReqCallVoidWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
425VMMR3DECL(int) VMR3ReqCallVoidNoWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
426VMMR3DECL(int) VMR3ReqPriorityCallWait(PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
427VMMR3DECL(int) VMR3ReqPriorityCallWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
428VMMR3DECL(int) VMR3ReqPriorityCallVoidWaitU(PUVM pUVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...);
429VMMR3DECL(int) VMR3ReqAlloc(PUVM pUVM, PVMREQ *ppReq, VMREQTYPE enmType, VMCPUID idDstCpu);
430VMMR3DECL(int) VMR3ReqFree(PVMREQ pReq);
431VMMR3DECL(int) VMR3ReqQueue(PVMREQ pReq, RTMSINTERVAL cMillies);
432VMMR3DECL(int) VMR3ReqWait(PVMREQ pReq, RTMSINTERVAL cMillies);
433VMMR3_INT_DECL(int) VMR3ReqProcessU(PUVM pUVM, VMCPUID idDstCpu, bool fPriorityOnly);
434
435/** @name Flags for VMR3NotifyCpuFFU and VMR3NotifyGlobalFFU.
436 * @{ */
437/** Whether we've done REM or not. */
438#define VMNOTIFYFF_FLAGS_DONE_REM RT_BIT_32(0)
439/** Whether we should poke the CPU if it's executing guest code. */
440#define VMNOTIFYFF_FLAGS_POKE RT_BIT_32(1)
441/** @} */
442VMMR3_INT_DECL(void) VMR3NotifyGlobalFFU(PUVM pUVM, uint32_t fFlags);
443VMMR3_INT_DECL(void) VMR3NotifyCpuFFU(PUVMCPU pUVMCpu, uint32_t fFlags);
444VMMR3DECL(int) VMR3NotifyCpuDeviceReady(PVM pVM, VMCPUID idCpu);
445VMMR3_INT_DECL(int) VMR3WaitHalted(PVM pVM, PVMCPU pVCpu, bool fIgnoreInterrupts);
446VMMR3_INT_DECL(int) VMR3WaitU(PUVMCPU pUVMCpu);
447VMMR3DECL(int) VMR3WaitForDeviceReady(PVM pVM, VMCPUID idCpu);
448VMMR3_INT_DECL(int) VMR3AsyncPdmNotificationWaitU(PUVMCPU pUVCpu);
449VMMR3_INT_DECL(void) VMR3AsyncPdmNotificationWakeupU(PUVM pUVM);
450VMMR3_INT_DECL(RTCPUID) VMR3GetVMCPUId(PVM pVM);
451VMMR3_INT_DECL(bool) VMR3IsLongModeAllowed(PVM pVM);
452VMMR3_INT_DECL(RTTHREAD) VMR3GetThreadHandle(PUVMCPU pUVCpu);
453VMMR3DECL(RTTHREAD) VMR3GetVMCPUThread(PUVM pUVM);
454VMMR3DECL(RTNATIVETHREAD) VMR3GetVMCPUNativeThread(PVM pVM);
455VMMR3DECL(RTNATIVETHREAD) VMR3GetVMCPUNativeThreadU(PUVM pUVM);
456VMMR3DECL(int) VMR3GetCpuCoreAndPackageIdFromCpuId(PUVM pUVM, VMCPUID idCpu, uint32_t *pidCpuCore, uint32_t *pidCpuPackage);
457VMMR3_INT_DECL(uint32_t) VMR3GetActiveEmts(PUVM pUVM);
458VMMR3DECL(int) VMR3HotUnplugCpu(PUVM pUVM, VMCPUID idCpu);
459VMMR3DECL(int) VMR3HotPlugCpu(PUVM pUVM, VMCPUID idCpu);
460VMMR3DECL(int) VMR3SetCpuExecutionCap(PUVM pUVM, uint32_t uCpuExecutionCap);
461VMMR3DECL(int) VMR3SetPowerOffInsteadOfReset(PUVM pUVM, bool fPowerOffInsteadOfReset);
462/** @} */
463#endif /* IN_RING3 */
464
465RT_C_DECLS_END
466
467/** @} */
468
469#endif /* !VBOX_INCLUDED_vmm_vmapi_h */
470
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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