vmm.h revision 9577536266a8da7dbbe29fd3be840cbfc0dc9721
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * VMM - The Virtual Machine Monitor.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * Copyright (C) 2006-2013 Oracle Corporation
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * available from http://www.virtualbox.org. This file is free software;
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * you can redistribute it and/or modify it under the terms of the GNU
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * General Public License (GPL) as published by the Free Software
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * The contents of this file may alternatively be used under the terms
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * of the Common Development and Distribution License Version 1.0
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * VirtualBox OSE distribution, in which case the provisions of the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * CDDL are applicable instead of those of the GPL.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * You may elect to license modified versions of this file under the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * terms and conditions of either the GPL or the CDDL or both.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** @defgroup grp_vmm The Virtual Machine Monitor API
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * World switcher identifiers.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** The usual invalid 0. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Switcher for 32-bit host to 32-bit shadow paging. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Switcher for 32-bit host paging to PAE shadow paging. */
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync /** Switcher for 32-bit host paging to AMD64 shadow paging. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Switcher for PAE host to 32-bit shadow paging. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Switcher for PAE host to PAE shadow paging. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Switcher for PAE host paging to AMD64 shadow paging. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Switcher for AMD64 host paging to 32-bit shadow paging. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Switcher for AMD64 host paging to PAE shadow paging. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Switcher for AMD64 host paging to AMD64 shadow paging. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Stub switcher for 32-bit and PAE. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Stub switcher for AMD64. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Used to make a count for array declarations and suchlike. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** The usual 32-bit paranoia. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * VMMRZCallRing3 operations.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Invalid operation. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Acquire the PDM lock. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Acquire the critical section specified as argument. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Enter the R/W critical section (in argument) exclusively. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Enter the R/W critical section (in argument) shared. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Acquire the PGM lock. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Grow the PGM shadow page pool. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Maps a chunk into ring-3. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Allocates more handy pages. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Allocates a large (2MB) page. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Acquire the MM hypervisor heap lock. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Replay the REM handler notifications. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Flush the GC/R0 logger. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Set the VM error message. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Set the VM runtime error message. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Signal a ring 0 assertion. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Ring switch to force preemption. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Sync the FTM state with the standby node. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** The usual 32-bit hack. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * VMMRZCallRing3 notification callback.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pVCpu Pointer to the VMCPU.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param enmOperation The operation causing the ring-3 jump.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pvUser The user argument.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsynctypedef DECLCALLBACK(void) FNVMMR0CALLRING3NOTIFICATION(PVMCPU pVCpu, VMMCALLRING3 enmOperation, void *pvUser);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Pointer to a FNRTMPNOTIFICATION(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsynctypedef FNVMMR0CALLRING3NOTIFICATION *PFNVMMR0CALLRING3NOTIFICATION;
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * Rendezvous callback.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @returns VBox strict status code - EM scheduling. Do not return
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * informational status code other than the ones used by EM for
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * scheduling.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pVM The VM handle.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pVCpu The handle of the calling virtual CPU.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pvUser The user argument.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsynctypedef DECLCALLBACK(VBOXSTRICTRC) FNVMMEMTRENDEZVOUS(PVM pVM, PVMCPU pVCpu, void *pvUser);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Pointer to a rendezvous callback function. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * Method table that the VMM uses to call back the user of the VMM.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Magic value (VMM2USERMETHODS_MAGIC). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Structure version (VMM2USERMETHODS_VERSION). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * Save the VM state.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @returns VBox status code.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pThis Pointer to the callback method table.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pUVM The user mode VM handle.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @remarks This member shall be set to NULL if the operation is not
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * supported.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync DECLR3CALLBACKMEMBER(int, pfnSaveState,(PCVMM2USERMETHODS pThis, PUVM pUVM));
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** @todo Move pfnVMAtError and pfnCFGMConstructor here? */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * EMT initialization notification callback.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * This is intended for doing per-thread initialization for EMTs (like COM
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pThis Pointer to the callback method table.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pUVM The user mode VM handle.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pUVCpu The user mode virtual CPU handle.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @remarks This is optional and shall be set to NULL if not wanted.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync DECLR3CALLBACKMEMBER(void, pfnNotifyEmtInit,(PCVMM2USERMETHODS pThis, PUVM pUVM, PUVMCPU pUVCpu));
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * EMT termination notification callback.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * This is intended for doing per-thread cleanups for EMTs (like COM).
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pThis Pointer to the callback method table.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pUVM The user mode VM handle.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pUVCpu The user mode virtual CPU handle.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @remarks This is optional and shall be set to NULL if not wanted.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync DECLR3CALLBACKMEMBER(void, pfnNotifyEmtTerm,(PCVMM2USERMETHODS pThis, PUVM pUVM, PUVMCPU pUVCpu));
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * PDM thread initialization notification callback.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * This is intended for doing per-thread initialization (like COM init).
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pThis Pointer to the callback method table.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pUVM The user mode VM handle.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @remarks This is optional and shall be set to NULL if not wanted.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync DECLR3CALLBACKMEMBER(void, pfnNotifyPdmtInit,(PCVMM2USERMETHODS pThis, PUVM pUVM));
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * EMT termination notification callback.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * This is intended for doing per-thread cleanups for EMTs (like COM).
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pThis Pointer to the callback method table.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pUVM The user mode VM handle.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @remarks This is optional and shall be set to NULL if not wanted.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync DECLR3CALLBACKMEMBER(void, pfnNotifyPdmtTerm,(PCVMM2USERMETHODS pThis, PUVM pUVM));
d1310b60a66ca7122b1f7b1a0efdd6af5b5d2235vboxsync /** Magic value (VMM2USERMETHODS_MAGIC) marking the end of the structure. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Magic value of the VMM2USERMETHODS (Franz Kafka). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** The VMM2USERMETHODS structure version. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMM2USERMETHODS_VERSION UINT32_C(0x00020000)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * Checks whether we've armed the ring-0 long jump machinery.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @returns @c true / @c false
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @param pVCpu The caller's cross context virtual CPU structure.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @thread EMT
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @sa VMMR0IsLongJumpArmed
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync# define VMMIsLongJumpArmed(a_pVCpu) VMMR0IsLongJumpArmed(a_pVCpu)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMDECL(PVMCPU) VMMGetCpuById(PVM pVM, VMCPUID idCpu);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(PVMCPU) VMMR3GetCpuByIdU(PUVM pVM, VMCPUID idCpu);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** @defgroup grp_vmm_r3 The VMM Host Context Ring 3 API
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @ingroup grp_vmm
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(int) VMMR3InitCompleted(PVM pVM, VMINITCOMPLETED enmWhat);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(void) VMMR3Relocate(PVM pVM, RTGCINTPTR offDelta);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(const char *) VMMR3GetRZAssertMsg1(PVM pVM);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(const char *) VMMR3GetRZAssertMsg2(PVM pVM);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(int) VMMR3SelectSwitcher(PVM pVM, VMMSWITCHER enmSwitcher);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(RTR0PTR) VMMR3GetHostToGuestSwitcher(PVM pVM, VMMSWITCHER enmSwitcher);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(int) VMMR3HmRunGC(PVM pVM, PVMCPU pVCpu);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(int) VMMR3RawRunGC(PVM pVM, PVMCPU pVCpu);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(int) VMMR3ResumeHyper(PVM pVM, PVMCPU pVCpu);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(int) VMMR3GetImportRC(PVM pVM, const char *pszSymbol, PRTRCPTR pRCPtrValue);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(int) VMMR3CallRC(PVM pVM, RTRCPTR RCPtrEntry, unsigned cArgs, ...);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(int) VMMR3CallRCV(PVM pVM, RTRCPTR RCPtrEntry, unsigned cArgs, va_list args);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(int) VMMR3CallR0(PVM pVM, uint32_t uOperation, uint64_t u64Arg, PSUPVMMR0REQHDR pReqHdr);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(void) VMMR3FatalDump(PVM pVM, PVMCPU pVCpu, int rcErr);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(void) VMMR3SendSipi(PVM pVM, VMCPUID idCpu, uint32_t uVector);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(void) VMMR3SendInitIpi(PVM pVM, VMCPUID idCpu);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(int) VMMR3RegisterPatchMemory(PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(int) VMMR3DeregisterPatchMemory(PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3DECL(int) VMMR3EmtRendezvous(PVM pVM, uint32_t fFlags, PFNVMMEMTRENDEZVOUS pfnRendezvous, void *pvUser);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(bool) VMMR3EmtRendezvousSetDisabled(PVMCPU pVCpu, bool fDisabled);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** @defgroup grp_VMMR3EmtRendezvous_fFlags VMMR3EmtRendezvous flags
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Execution type mask. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_MASK UINT32_C(0x00000007)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Invalid execution type. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_INVALID UINT32_C(0)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Let the EMTs execute the callback one by one (in no particular order). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_ONE_BY_ONE UINT32_C(1)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Let all the EMTs execute the callback at the same time. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_ALL_AT_ONCE UINT32_C(2)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Only execute the callback on one EMT (no particular one). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_ONCE UINT32_C(3)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Let the EMTs execute the callback one by one in ascending order. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_ASCENDING UINT32_C(4)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Let the EMTs execute the callback one by one in descending order. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_DESCENDING UINT32_C(5)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** Stop after the first error.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * This is not valid for any execution type where more than one EMT is active
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * at a time. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMMEMTRENDEZVOUS_FLAGS_STOP_ON_ERROR UINT32_C(0x00000008)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** The valid flags. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#define VMMEMTRENDEZVOUS_FLAGS_VALID_MASK UINT32_C(0x0000000f)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(int) VMMR3EmtRendezvousFF(PVM pVM, PVMCPU pVCpu);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR3_INT_DECL(int) VMMR3ReadR0Stack(PVM pVM, VMCPUID idCpu, RTHCUINTPTR R0Addr, void *pvBuf, size_t cbRead);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#endif /* IN_RING3 */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** @defgroup grp_vmm_r0 The VMM Host Context Ring 0 API
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * @ingroup grp_vmm
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * The VMMR0Entry() codes.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Run guest context. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Run guest code using the available hardware acceleration technology. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Official NOP that we use for profiling. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Official slow iocl NOP that we use for profiling. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Ask the GVMM to create a new VM. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Ask the GVMM to destroy the VM. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GVMMR0SchedHalt(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GVMMR0SchedWakeUp(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GVMMR0SchedPoke(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GVMMR0SchedWakeUpAndPokeCpus(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GVMMR0SchedPoll(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GVMMR0QueryStatistics(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GVMMR0ResetStatistics(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GVMMR0RegisterVCpu(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call VMMR0 Per VM Init. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call VMMR0 Per VM Termination. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Setup the hardware accelerated raw-mode session. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Attempt to enable or disable hardware accelerated raw-mode. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Calls function in the hypervisor.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * The caller must setup the hypervisor context so the call will be performed.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * The difference between VMMR0_DO_RUN_GC and this one is the handling of
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * the return GC code. The return code will not be interpreted by this operation.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call PGMR0PhysAllocateHandyPages(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call PGMR0PhysFlushHandyPages(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call PGMR0AllocateLargePage(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call PGMR0PhysSetupIommu(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0InitialReservation(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0UpdateReservation(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0AllocatePages(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0FreePages(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0FreeLargePage(). */
d1310b60a66ca7122b1f7b1a0efdd6af5b5d2235vboxsync /** Call GMMR0QueryHypervisorMemoryStatsReq(). */
d1310b60a66ca7122b1f7b1a0efdd6af5b5d2235vboxsync /** Call GMMR0QueryMemoryStatsReq(). */
d1310b60a66ca7122b1f7b1a0efdd6af5b5d2235vboxsync /** Call GMMR0BalloonedPages(). */
d1310b60a66ca7122b1f7b1a0efdd6af5b5d2235vboxsync /** Call GMMR0MapUnmapChunk(). */
d1310b60a66ca7122b1f7b1a0efdd6af5b5d2235vboxsync /** Call GMMR0SeedChunk(). */
d1310b60a66ca7122b1f7b1a0efdd6af5b5d2235vboxsync /** Call GMMR0RegisterSharedModule. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0UnregisterSharedModule. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0ResetSharedModules. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0CheckSharedModules. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0FindDuplicatePage. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0QueryStatistics(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call GMMR0ResetStatistics(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Set a GVMM or GMM configuration value. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Query a GVMM or GMM configuration value. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call PDMR0DriverCallReqHandler. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call PDMR0DeviceCallReqHandler. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** The start of the R0 service operations. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call IntNetR0Open(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call IntNetR0IfClose(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call IntNetR0IfGetBufferPtrs(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call IntNetR0IfSetPromiscuousMode(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call IntNetR0IfSetMacAddress(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call IntNetR0IfSetActive(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call IntNetR0IfSend(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call IntNetR0IfWait(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Call IntNetR0IfAbortWait(). */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Forward call to the PCI driver */
f6ec7fe3e4607b1c0c06fd650be48072f410c95dvboxsync /** The end of the R0 service operations. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Official call we use for testing Ring-0 APIs. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync /** Test the 32->64 bits switcher. */
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync /** The usual 32-bit type blow up. */
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync * Request buffer for VMMR0_DO_GCFGM_SET_VALUE and VMMR0_DO_GCFGM_QUERY_VALUE.
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync * @todo Move got GCFGM.h when it's implemented.
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync /** The request header.*/
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync /** The support driver session handle. */
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync /** The value.
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync * This is input for the set request and output for the query. */
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync /** The variable name.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * This is fixed sized just to make things simple for the mock-up. */
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync/** Pointer to a VMMR0_DO_GCFGM_SET_VALUE and VMMR0_DO_GCFGM_QUERY_VALUE request buffer.
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsync * @todo Move got GCFGM.h when it's implemented.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR0DECL(int) VMMR0EntryInt(PVM pVM, VMMR0OPERATION enmOperation, void *pvArg);
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsyncVMMR0DECL(void) VMMR0EntryFast(PVM pVM, VMCPUID idCpu, VMMR0OPERATION enmOperation);
e74c6b6b998c532cdfec426de8ad08b6441e7215vboxsyncVMMR0DECL(int) VMMR0EntryEx(PVM pVM, VMCPUID idCpu, VMMR0OPERATION enmOperation, PSUPVMMR0REQHDR pReq, uint64_t u64Arg, PSUPDRVSESSION);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR0_INT_DECL(bool) VMMR0IsLongJumpArmed(PVMCPU pVCpu);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR0DECL(int) VMMR0ThreadCtxHooksCreate(PVMCPU pVCpu);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncVMMR0DECL(void) VMMR0ThreadCtxHooksRelease(PVMCPU pVCpu);
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsyncVMMR0DECL(bool) VMMR0IsLogFlushDisabled(PVMCPU pVCpu);
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsync/** @defgroup grp_vmm_rc The VMM Raw-Mode Context API
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsync * @ingroup grp_vmm
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsyncVMMRCDECL(int) VMMGCEntry(PVM pVM, unsigned uOperation, unsigned uArg, ...);
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsync#endif /* IN_RC */
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsync/** @defgroup grp_vmm_rz The VMM Raw-Mode and Ring-0 Context API
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsync * @ingroup grp_vmm
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsyncVMMRZDECL(int) VMMRZCallRing3(PVM pVM, PVMCPU pVCpu, VMMCALLRING3 enmOperation, uint64_t uArg);
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsyncVMMRZDECL(int) VMMRZCallRing3NoCpu(PVM pVM, VMMCALLRING3 enmOperation, uint64_t uArg);
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsyncVMMRZDECL(void) VMMRZCallRing3Disable(PVMCPU pVCpu);
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsyncVMMRZDECL(bool) VMMRZCallRing3IsEnabled(PVMCPU pVCpu);
ed4a2bd5f3f74bb638e09a9ef937e69d130263d6vboxsyncVMMRZDECL(int) VMMRZCallRing3SetNotification(PVMCPU pVCpu, R0PTRTYPE(PFNVMMR0CALLRING3NOTIFICATION) pfnCallback, RTR0PTR pvUser);