vmm.h revision 74b308a9368bd8065d316be3ee45ab23ff79cca5
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** @file
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * VMM - The Virtual Machine Monitor. (VMM)
5b281ba489ca18f0380d7efc7a5108b606cce449vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/*
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * Copyright (C) 2006-2010 Oracle Corporation
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync *
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * available from http://www.virtualbox.org. This file is free software;
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * you can redistribute it and/or modify it under the terms of the GNU
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * General Public License (GPL) as published by the Free Software
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync *
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * The contents of this file may alternatively be used under the terms
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * of the Common Development and Distribution License Version 1.0
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * VirtualBox OSE distribution, in which case the provisions of the
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * CDDL are applicable instead of those of the GPL.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync *
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * You may elect to license modified versions of this file under the
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * terms and conditions of either the GPL or the CDDL or both.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#ifndef ___VBox_vmm_h
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define ___VBox_vmm_h
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#include <VBox/cdefs.h>
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#include <VBox/types.h>
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#include <VBox/vmapi.h>
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#include <VBox/sup.h>
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#include <VBox/log.h>
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#include <iprt/stdarg.h>
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncRT_C_DECLS_BEGIN
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** @defgroup grp_vmm The Virtual Machine Monitor API
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @{
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/**
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * World switcher identifiers.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
881b5ff6bc55e1fb0f4ef42f9782ccec79c0a138vboxsynctypedef enum VMMSWITCHER
881b5ff6bc55e1fb0f4ef42f9782ccec79c0a138vboxsync{
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** The usual invalid 0. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_INVALID = 0,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Switcher for 32-bit host to 32-bit shadow paging. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_32_TO_32,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Switcher for 32-bit host paging to PAE shadow paging. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_32_TO_PAE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Switcher for 32-bit host paging to AMD64 shadow paging. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_32_TO_AMD64,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Switcher for PAE host to 32-bit shadow paging. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_PAE_TO_32,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Switcher for PAE host to PAE shadow paging. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_PAE_TO_PAE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Switcher for PAE host paging to AMD64 shadow paging. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_PAE_TO_AMD64,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Switcher for AMD64 host paging to 32-bit shadow paging. */
9621896680fea9b2078823e8ef2e64cec5bf2da0vboxsync VMMSWITCHER_AMD64_TO_32,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Switcher for AMD64 host paging to PAE shadow paging. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_AMD64_TO_PAE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Switcher for AMD64 host paging to AMD64 shadow paging. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_AMD64_TO_AMD64,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Used to make a count for array declarations and suchlike. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_MAX,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** The usual 32-bit paranoia. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMSWITCHER_32BIT_HACK = 0x7fffffff
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync} VMMSWITCHER;
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/**
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * VMMRZCallRing3 operations.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynctypedef enum VMMCALLRING3
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync{
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Invalid operation. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_INVALID = 0,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Acquire the PDM lock. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_PDM_LOCK,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Acquire the PGM lock. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_PGM_LOCK,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Grow the PGM shadow page pool. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_PGM_POOL_GROW,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Maps a chunk into ring-3. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_PGM_MAP_CHUNK,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Allocates more handy pages. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_PGM_ALLOCATE_HANDY_PAGES,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Allocates a large (2MB) page. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_PGM_ALLOCATE_LARGE_HANDY_PAGE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Acquire the MM hypervisor heap lock. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_MMHYPER_LOCK,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Replay the REM handler notifications. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_REM_REPLAY_HANDLER_NOTIFICATIONS,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Flush the GC/R0 logger. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_VMM_LOGGER_FLUSH,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Set the VM error message. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_VM_SET_ERROR,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Set the VM runtime error message. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_VM_SET_RUNTIME_ERROR,
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync /** Signal a ring 0 assertion. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_VM_R0_ASSERTION,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Ring switch to force preemption. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_VM_R0_PREEMPT,
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync /** The usual 32-bit hack. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMCALLRING3_32BIT_HACK = 0x7fffffff
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync} VMMCALLRING3;
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/**
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * VMMR3AtomicExecuteHandler callback function.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync *
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @returns VBox status code.
3f1eb07aba9eee6394f3084c956149ee9a27df09vboxsync * @param pVM Pointer to the shared VM structure.
3f1eb07aba9eee6394f3084c956149ee9a27df09vboxsync * @param pvUser User specified argument
3f1eb07aba9eee6394f3084c956149ee9a27df09vboxsync *
3f1eb07aba9eee6394f3084c956149ee9a27df09vboxsync * @todo missing prefix.
3f1eb07aba9eee6394f3084c956149ee9a27df09vboxsync */
3f1eb07aba9eee6394f3084c956149ee9a27df09vboxsynctypedef DECLCALLBACK(int) FNATOMICHANDLER(PVM pVM, void *pvUser);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Pointer to a FNMMATOMICHANDLER(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynctypedef FNATOMICHANDLER *PFNATOMICHANDLER;
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/**
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * Rendezvous callback.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync *
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @returns VBox strict status code - EM scheduling. Do not return
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * informational status code other than the ones used by EM for
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * scheduling.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync *
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @param pVM The VM handle.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @param pVCpu The handle of the calling virtual CPU.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @param pvUser The user argument.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynctypedef DECLCALLBACK(VBOXSTRICTRC) FNVMMEMTRENDEZVOUS(PVM pVM, PVMCPU pVCpu, void *pvUser);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Pointer to a rendezvous callback function. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynctypedef FNVMMEMTRENDEZVOUS *PFNVMMEMTRENDEZVOUS;
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMDECL(RTRCPTR) VMMGetStackRC(PVMCPU pVCpu);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMDECL(VMCPUID) VMMGetCpuId(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMDECL(PVMCPU) VMMGetCpu(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMDECL(PVMCPU) VMMGetCpu0(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMDECL(PVMCPU) VMMGetCpuById(PVM pVM, VMCPUID idCpu);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMDECL(uint32_t) VMMGetSvnRev(void);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMDECL(VMMSWITCHER) VMMGetSwitcher(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMDECL(void) VMMTrashVolatileXMMRegs(void);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** @def VMMIsHwVirtExtForced
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * Checks if forced to use the hardware assisted virtualization extensions.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync *
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * This is intended for making setup decisions where we can save resources when
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * using hardware assisted virtualization.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync *
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @returns true / false.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @param pVM Pointer to the shared VM structure.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMIsHwVirtExtForced(pVM) ((pVM)->fHwVirtExtForced)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#ifdef IN_RING3
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** @defgroup grp_vmm_r3 The VMM Host Context Ring 3 API
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @ingroup grp_vmm
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @{
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3Init(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3InitCPU(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3InitFinalize(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3InitR0(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3InitRC(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3Term(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3TermCPU(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(void) VMMR3Relocate(PVM pVM, RTGCINTPTR offDelta);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3UpdateLoggers(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(const char *) VMMR3GetRZAssertMsg1(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(const char *) VMMR3GetRZAssertMsg2(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3GetImportRC(PVM pVM, const char *pszSymbol, PRTRCPTR pRCPtrValue);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3SelectSwitcher(PVM pVM, VMMSWITCHER enmSwitcher);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3DisableSwitcher(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(RTR0PTR) VMMR3GetHostToGuestSwitcher(PVM pVM, VMMSWITCHER enmSwitcher);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3RawRunGC(PVM pVM, PVMCPU pVCpu);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3HwAccRunGC(PVM pVM, PVMCPU pVCpu);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3CallRC(PVM pVM, RTRCPTR RCPtrEntry, unsigned cArgs, ...);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3CallRCV(PVM pVM, RTRCPTR RCPtrEntry, unsigned cArgs, va_list args);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3CallR0(PVM pVM, uint32_t uOperation, uint64_t u64Arg, PSUPVMMR0REQHDR pReqHdr);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3ResumeHyper(PVM pVM, PVMCPU pVCpu);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(void) VMMR3FatalDump(PVM pVM, PVMCPU pVCpu, int rcErr);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(void) VMMR3YieldSuspend(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(void) VMMR3YieldStop(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(void) VMMR3YieldResume(PVM pVM);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(void) VMMR3SendSipi(PVM pVM, VMCPUID idCpu, uint32_t uVector);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(void) VMMR3SendInitIpi(PVM pVM, VMCPUID idCpu);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3RegisterPatchMemory(PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3DeregisterPatchMemory(PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3AtomicExecuteHandler(PVM pVM, PFNATOMICHANDLER pfnHandler, void *pvUser);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3EmtRendezvous(PVM pVM, uint32_t fFlags, PFNVMMEMTRENDEZVOUS pfnRendezvous, void *pvUser);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** @defgroup grp_VMMR3EmtRendezvous_fFlags VMMR3EmtRendezvous flags
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @{ */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Execution type mask. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_MASK UINT32_C(0x00000007)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Invalid execution type. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_INVALID UINT32_C(0)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Let the EMTs execute the callback one by one (in no particular order). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_ONE_BY_ONE UINT32_C(1)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Let all the EMTs execute the callback at the same time. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_ALL_AT_ONCE UINT32_C(2)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Only execute the callback on one EMT (no particular one). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_ONCE UINT32_C(3)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Let the EMTs execute the callback one by one in ascending order. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_ASCENDING UINT32_C(4)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Let the EMTs execute the callback one by one in descending order. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMEMTRENDEZVOUS_FLAGS_TYPE_DESCENDING UINT32_C(5)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** Stop after the first error.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * This is not valid for any execution type where more than one EMT is active
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * at a time. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMEMTRENDEZVOUS_FLAGS_STOP_ON_ERROR UINT32_C(0x00000008)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** The valid flags. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#define VMMEMTRENDEZVOUS_FLAGS_VALID_MASK UINT32_C(0x0000000f)
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** @} */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3EmtRendezvousFF(PVM pVM, PVMCPU pVCpu);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsyncVMMR3DECL(int) VMMR3ReadR0Stack(PVM pVM, VMCPUID idCpu, RTHCUINTPTR R0Addr, void *pvBuf, size_t cbRead);
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** @} */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync#endif /* IN_RING3 */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/** @defgroup grp_vmm_r0 The VMM Host Context Ring 0 API
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @ingroup grp_vmm
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @{
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/**
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * The VMMR0Entry() codes.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynctypedef enum VMMR0OPERATION
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync{
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Run guest context. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_RAW_RUN = SUP_VMMR0_DO_RAW_RUN,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Run guest code using the available hardware acceleration technology. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_HWACC_RUN = SUP_VMMR0_DO_HWACC_RUN,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Official NOP that we use for profiling. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_NOP = SUP_VMMR0_DO_NOP,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Official slow iocl NOP that we use for profiling. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_SLOW_NOP,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Ask the GVMM to create a new VM. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_CREATE_VM,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Ask the GVMM to destroy the VM. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_DESTROY_VM,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GVMMR0SchedHalt(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_SCHED_HALT,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GVMMR0SchedWakeUp(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_SCHED_WAKE_UP,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GVMMR0SchedPoke(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_SCHED_POKE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GVMMR0SchedWakeUpAndPokeCpus(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_SCHED_WAKE_UP_AND_POKE_CPUS,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GVMMR0SchedPoll(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_SCHED_POLL,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GVMMR0QueryStatistics(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_QUERY_STATISTICS,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GVMMR0ResetStatistics(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_RESET_STATISTICS,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GVMMR0RegisterVCpu(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GVMM_REGISTER_VMCPU,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call VMMR0 Per VM Init. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_VMMR0_INIT,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call VMMR0 Per VM Termination. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_VMMR0_TERM,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Setup the hardware accelerated raw-mode session. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_HWACC_SETUP_VM,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Attempt to enable or disable hardware accelerated raw-mode. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_HWACC_ENABLE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Calls function in the hypervisor.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * The caller must setup the hypervisor context so the call will be performed.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * The difference between VMMR0_DO_RUN_GC and this one is the handling of
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * the return GC code. The return code will not be interpreted by this operation.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_CALL_HYPERVISOR,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call PGMR0PhysAllocateHandyPages(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_PGM_ALLOCATE_HANDY_PAGES,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call PGMR0AllocateLargePage(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_PGM_ALLOCATE_LARGE_HANDY_PAGE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0InitialReservation(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_INITIAL_RESERVATION,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0UpdateReservation(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_UPDATE_RESERVATION,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0AllocatePages(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_ALLOCATE_PAGES,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0FreePages(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_FREE_PAGES,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0FreeLargePage(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_FREE_LARGE_PAGE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0QueryHypervisorMemoryStatsReq(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_QUERY_HYPERVISOR_MEM_STATS,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0QueryMemoryStatsReq(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_QUERY_MEM_STATS,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0BalloonedPages(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_BALLOONED_PAGES,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0MapUnmapChunk(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_MAP_UNMAP_CHUNK,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0SeedChunk(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_SEED_CHUNK,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0RegisterSharedModule. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_REGISTER_SHARED_MODULE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0UnregisterSharedModule. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_UNREGISTER_SHARED_MODULE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0ResetSharedModules. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_RESET_SHARED_MODULES,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0CheckSharedModules. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_CHECK_SHARED_MODULES,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call GMMR0FindDuplicatePage. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GMM_FIND_DUPLICATE_PAGE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Set a GVMM or GMM configuration value. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GCFGM_SET_VALUE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Query a GVMM or GMM configuration value. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_GCFGM_QUERY_VALUE,
0f77dc54d7ec617480988ccdfcd080f480e79698vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call PDMR0DriverCallReqHandler. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_PDM_DRIVER_CALL_REQ_HANDLER,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call PDMR0DeviceCallReqHandler. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_PDM_DEVICE_CALL_REQ_HANDLER,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** The start of the R0 service operations. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_SRV_START,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call IntNetR0Open(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_INTNET_OPEN,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call IntNetR0IfClose(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_INTNET_IF_CLOSE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call IntNetR0IfGetBufferPtrs(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_INTNET_IF_GET_BUFFER_PTRS,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call IntNetR0IfSetPromiscuousMode(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_INTNET_IF_SET_PROMISCUOUS_MODE,
0f77dc54d7ec617480988ccdfcd080f480e79698vboxsync /** Call IntNetR0IfSetMacAddress(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_INTNET_IF_SET_MAC_ADDRESS,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call IntNetR0IfSetActive(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_INTNET_IF_SET_ACTIVE,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call IntNetR0IfSend(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_INTNET_IF_SEND,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call IntNetR0IfWait(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_INTNET_IF_WAIT,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Call IntNetR0IfAbortWait(). */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_INTNET_IF_ABORT_WAIT,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** The end of the R0 service operations. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_SRV_END,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Official call we use for testing Ring-0 APIs. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_TESTS,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** Test the 32->64 bits switcher. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_TEST_SWITCHER3264,
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** The usual 32-bit type blow up. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync VMMR0_DO_32BIT_HACK = 0x7fffffff
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync} VMMR0OPERATION;
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync/**
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * Request buffer for VMMR0_DO_GCFGM_SET_VALUE and VMMR0_DO_GCFGM_QUERY_VALUE.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * @todo Move got GCFGM.h when it's implemented.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsynctypedef struct GCFGMVALUEREQ
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync{
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** The request header.*/
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync SUPVMMR0REQHDR Hdr;
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** The support driver session handle. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync PSUPDRVSESSION pSession;
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** The value.
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync * This is input for the set request and output for the query. */
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync uint64_t u64Value;
d1c5a03c19683c719b94496bb998fde2f2e5e622vboxsync /** The variable name.
* This is fixed sized just to make things simple for the mock-up. */
char szName[48];
} GCFGMVALUEREQ;
/** Pointer to a VMMR0_DO_GCFGM_SET_VALUE and VMMR0_DO_GCFGM_QUERY_VALUE request buffer.
* @todo Move got GCFGM.h when it's implemented.
*/
typedef GCFGMVALUEREQ *PGCFGMVALUEREQ;
VMMR0DECL(int) VMMR0EntryInt(PVM pVM, VMMR0OPERATION enmOperation, void *pvArg);
VMMR0DECL(void) VMMR0EntryFast(PVM pVM, VMCPUID idCpu, VMMR0OPERATION enmOperation);
VMMR0DECL(int) VMMR0EntryEx(PVM pVM, VMCPUID idCpu, VMMR0OPERATION enmOperation, PSUPVMMR0REQHDR pReq, uint64_t u64Arg, PSUPDRVSESSION);
VMMR0DECL(int) VMMR0TermVM(PVM pVM, PGVM pGVM);
#ifdef LOG_ENABLED
VMMR0DECL(void) VMMR0LogFlushDisable(PVMCPU pVCpu);
VMMR0DECL(void) VMMR0LogFlushEnable(PVMCPU pVCpu);
#else
#define VMMR0LogFlushDisable(pVCpu) do { } while(0)
#define VMMR0LogFlushEnable(pVCpu) do { } while(0)
#endif
/** @} */
#ifdef IN_RC
/** @defgroup grp_vmm_rc The VMM Raw-Mode Context API
* @ingroup grp_vmm
* @{
*/
VMMRCDECL(int) VMMGCEntry(PVM pVM, unsigned uOperation, unsigned uArg, ...);
VMMRCDECL(void) VMMGCGuestToHost(PVM pVM, int rc);
VMMRCDECL(void) VMMGCLogFlushIfFull(PVM pVM);
/** @} */
#endif /* IN_RC */
#if defined(IN_RC) || defined(IN_RING0)
/** @defgroup grp_vmm_rz The VMM Raw-Mode and Ring-0 Context API
* @ingroup grp_vmm
* @{
*/
VMMRZDECL(int) VMMRZCallRing3(PVM pVM, PVMCPU pVCpu, VMMCALLRING3 enmOperation, uint64_t uArg);
VMMRZDECL(int) VMMRZCallRing3NoCpu(PVM pVM, VMMCALLRING3 enmOperation, uint64_t uArg);
VMMRZDECL(void) VMMRZCallRing3Disable(PVMCPU pVCpu);
VMMRZDECL(void) VMMRZCallRing3Enable(PVMCPU pVCpu);
VMMRZDECL(bool) VMMRZCallRing3IsEnabled(PVMCPU pVCpu);
/** @} */
#endif
/** @} */
RT_C_DECLS_END
#endif