pgm.h revision 2d18a25aa61a56c9d1ac5284f937260a2fa64691
de4157257515400c2c25373591135f110227b68cvboxsync/** @file
de4157257515400c2c25373591135f110227b68cvboxsync * PGM - Page Monitor / Monitor. (VMM)
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/*
de4157257515400c2c25373591135f110227b68cvboxsync * Copyright (C) 2006-2007 Sun Microsystems, Inc.
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync * available from http://www.virtualbox.org. This file is free software;
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync * you can redistribute it and/or modify it under the terms of the GNU
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync * General Public License (GPL) as published by the Free Software
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
b263fac6f6e7fa933c7bfb2a45d598fe8e458c09vboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * The contents of this file may alternatively be used under the terms
de4157257515400c2c25373591135f110227b68cvboxsync * of the Common Development and Distribution License Version 1.0
de4157257515400c2c25373591135f110227b68cvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
de4157257515400c2c25373591135f110227b68cvboxsync * VirtualBox OSE distribution, in which case the provisions of the
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync * CDDL are applicable instead of those of the GPL.
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * You may elect to license modified versions of this file under the
de4157257515400c2c25373591135f110227b68cvboxsync * terms and conditions of either the GPL or the CDDL or both.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
de4157257515400c2c25373591135f110227b68cvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync * additional information or have any questions.
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#ifndef ___VBox_pgm_h
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#define ___VBox_pgm_h
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#include <VBox/cdefs.h>
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#include <VBox/types.h>
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#include <VBox/sup.h>
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#include <VBox/vmapi.h>
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#include <VBox/x86.h>
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#include <VBox/hwacc_vmx.h>
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncRT_C_DECLS_BEGIN
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync/** @defgroup grp_pgm The Page Monitor / Manager API
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync * @{
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync/** Chunk size for dynamically allocated physical memory. */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#define PGM_DYNAMIC_CHUNK_SIZE (1*1024*1024)
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync/** Shift GC physical address by 20 bits to get the offset into the pvHCChunkHC array. */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#define PGM_DYNAMIC_CHUNK_SHIFT 20
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync/** Dynamic chunk offset mask. */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#define PGM_DYNAMIC_CHUNK_OFFSET_MASK 0xfffff
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync/** Dynamic chunk base mask. */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#define PGM_DYNAMIC_CHUNK_BASE_MASK (~(RTGCPHYS)PGM_DYNAMIC_CHUNK_OFFSET_MASK)
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync/**
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync * FNPGMRELOCATE callback mode.
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsynctypedef enum PGMRELOCATECALL
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync{
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync /** The callback is for checking if the suggested address is suitable. */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync PGMRELOCATECALL_SUGGEST = 1,
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync /** The callback is for executing the relocation. */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync PGMRELOCATECALL_RELOCATE
de4157257515400c2c25373591135f110227b68cvboxsync} PGMRELOCATECALL;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * Callback function which will be called when PGM is trying to find
de4157257515400c2c25373591135f110227b68cvboxsync * a new location for the mapping.
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync *
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync * The callback is called in two modes, 1) the check mode and 2) the relocate mode.
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync * In 1) the callback should say if it objects to a suggested new location. If it
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync * accepts the new location, it is called again for doing it's relocation.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * @returns true if the location is ok.
de4157257515400c2c25373591135f110227b68cvboxsync * @returns false if another location should be found.
de4157257515400c2c25373591135f110227b68cvboxsync * @param GCPtrOld The old virtual address.
de4157257515400c2c25373591135f110227b68cvboxsync * @param GCPtrNew The new virtual address.
de4157257515400c2c25373591135f110227b68cvboxsync * @param enmMode Used to indicate the callback mode.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvUser User argument.
de4157257515400c2c25373591135f110227b68cvboxsync * @remark The return value is no a failure indicator, it's an acceptance
de4157257515400c2c25373591135f110227b68cvboxsync * indicator. Relocation can not fail!
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef DECLCALLBACK(bool) FNPGMRELOCATE(PVM pVM, RTGCPTR GCPtrOld, RTGCPTR GCPtrNew, PGMRELOCATECALL enmMode, void *pvUser);
de4157257515400c2c25373591135f110227b68cvboxsync/** Pointer to a relocation callback function. */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsynctypedef FNPGMRELOCATE *PFNPGMRELOCATE;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * Physical page access handler type.
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef enum PGMPHYSHANDLERTYPE
de4157257515400c2c25373591135f110227b68cvboxsync{
de4157257515400c2c25373591135f110227b68cvboxsync /** MMIO range. Pages are not present, all access is done in interpreter or recompiler. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMPHYSHANDLERTYPE_MMIO = 1,
de4157257515400c2c25373591135f110227b68cvboxsync /** Handler all write access to a physical page range. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMPHYSHANDLERTYPE_PHYSICAL_WRITE,
de4157257515400c2c25373591135f110227b68cvboxsync /** Handler all access to a physical page range. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMPHYSHANDLERTYPE_PHYSICAL_ALL
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync} PGMPHYSHANDLERTYPE;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * \#PF Handler callback for physical access handler ranges in RC.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * @returns VBox status code (appropriate for RC return).
de4157257515400c2c25373591135f110227b68cvboxsync * @param pVM VM Handle.
de4157257515400c2c25373591135f110227b68cvboxsync * @param uErrorCode CPU Error code.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pRegFrame Trap register frame.
de4157257515400c2c25373591135f110227b68cvboxsync * NULL on DMA and other non CPU access.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvFault The fault address (cr2).
de4157257515400c2c25373591135f110227b68cvboxsync * @param GCPhysFault The GC physical address corresponding to pvFault.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvUser User argument.
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef DECLCALLBACK(int) FNPGMRCPHYSHANDLER(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser);
de4157257515400c2c25373591135f110227b68cvboxsync/** Pointer to PGM access callback. */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef FNPGMRCPHYSHANDLER *PFNPGMRCPHYSHANDLER;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * \#PF Handler callback for physical access handler ranges in R0.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * @returns VBox status code (appropriate for R0 return).
de4157257515400c2c25373591135f110227b68cvboxsync * @param pVM VM Handle.
de4157257515400c2c25373591135f110227b68cvboxsync * @param uErrorCode CPU Error code.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pRegFrame Trap register frame.
de4157257515400c2c25373591135f110227b68cvboxsync * NULL on DMA and other non CPU access.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvFault The fault address (cr2).
de4157257515400c2c25373591135f110227b68cvboxsync * @param GCPhysFault The GC physical address corresponding to pvFault.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvUser User argument.
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef DECLCALLBACK(int) FNPGMR0PHYSHANDLER(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser);
de4157257515400c2c25373591135f110227b68cvboxsync/** Pointer to PGM access callback. */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef FNPGMR0PHYSHANDLER *PFNPGMR0PHYSHANDLER;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * Guest Access type
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef enum PGMACCESSTYPE
de4157257515400c2c25373591135f110227b68cvboxsync{
de4157257515400c2c25373591135f110227b68cvboxsync /** Read access. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMACCESSTYPE_READ = 1,
de4157257515400c2c25373591135f110227b68cvboxsync /** Write access. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMACCESSTYPE_WRITE
de4157257515400c2c25373591135f110227b68cvboxsync} PGMACCESSTYPE;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * \#PF Handler callback for physical access handler ranges (MMIO among others) in HC.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * The handler can not raise any faults, it's mainly for monitoring write access
de4157257515400c2c25373591135f110227b68cvboxsync * to certain pages.
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * @returns VINF_SUCCESS if the handler have carried out the operation.
de4157257515400c2c25373591135f110227b68cvboxsync * @returns VINF_PGM_HANDLER_DO_DEFAULT if the caller should carry out the access operation.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pVM VM Handle.
de4157257515400c2c25373591135f110227b68cvboxsync * @param GCPhys The physical address the guest is writing to.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvPhys The HC mapping of that address.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvBuf What the guest is reading/writing.
de4157257515400c2c25373591135f110227b68cvboxsync * @param cbBuf How much it's reading/writing.
de4157257515400c2c25373591135f110227b68cvboxsync * @param enmAccessType The access type.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvUser User argument.
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef DECLCALLBACK(int) FNPGMR3PHYSHANDLER(PVM pVM, RTGCPHYS GCPhys, void *pvPhys, void *pvBuf, size_t cbBuf, PGMACCESSTYPE enmAccessType, void *pvUser);
de4157257515400c2c25373591135f110227b68cvboxsync/** Pointer to PGM access callback. */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef FNPGMR3PHYSHANDLER *PFNPGMR3PHYSHANDLER;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * Virtual access handler type.
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef enum PGMVIRTHANDLERTYPE
de4157257515400c2c25373591135f110227b68cvboxsync{
de4157257515400c2c25373591135f110227b68cvboxsync /** Write access handled. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMVIRTHANDLERTYPE_WRITE = 1,
de4157257515400c2c25373591135f110227b68cvboxsync /** All access handled. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMVIRTHANDLERTYPE_ALL,
de4157257515400c2c25373591135f110227b68cvboxsync /** Hypervisor write access handled.
de4157257515400c2c25373591135f110227b68cvboxsync * This is used to catch the guest trying to write to LDT, TSS and any other
de4157257515400c2c25373591135f110227b68cvboxsync * system structure which the brain dead intel guys let unprivilegde code find. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMVIRTHANDLERTYPE_HYPERVISOR
de4157257515400c2c25373591135f110227b68cvboxsync} PGMVIRTHANDLERTYPE;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * \#PF Handler callback for virtual access handler ranges, RC.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * Important to realize that a physical page in a range can have aliases, and
de4157257515400c2c25373591135f110227b68cvboxsync * for ALL and WRITE handlers these will also trigger.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * @returns VBox status code (appropriate for GC return).
de4157257515400c2c25373591135f110227b68cvboxsync * @param pVM VM Handle.
de4157257515400c2c25373591135f110227b68cvboxsync * @param uErrorCode CPU Error code.
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync * @param pRegFrame Trap register frame.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvFault The fault address (cr2).
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvRange The base address of the handled virtual range.
de4157257515400c2c25373591135f110227b68cvboxsync * @param offRange The offset of the access into this range.
de4157257515400c2c25373591135f110227b68cvboxsync * (If it's a EIP range this's the EIP, if not it's pvFault.)
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef DECLCALLBACK(int) FNPGMRCVIRTHANDLER(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPTR pvRange, uintptr_t offRange);
de4157257515400c2c25373591135f110227b68cvboxsync/** Pointer to PGM access callback. */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef FNPGMRCVIRTHANDLER *PFNPGMRCVIRTHANDLER;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * \#PF Handler callback for virtual access handler ranges, R3.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * Important to realize that a physical page in a range can have aliases, and
de4157257515400c2c25373591135f110227b68cvboxsync * for ALL and WRITE handlers these will also trigger.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * @returns VINF_SUCCESS if the handler have carried out the operation.
de4157257515400c2c25373591135f110227b68cvboxsync * @returns VINF_PGM_HANDLER_DO_DEFAULT if the caller should carry out the access operation.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pVM VM Handle.
de4157257515400c2c25373591135f110227b68cvboxsync * @param GCPtr The virtual address the guest is writing to. (not correct if it's an alias!)
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvPtr The HC mapping of that address.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvBuf What the guest is reading/writing.
de4157257515400c2c25373591135f110227b68cvboxsync * @param cbBuf How much it's reading/writing.
de4157257515400c2c25373591135f110227b68cvboxsync * @param enmAccessType The access type.
de4157257515400c2c25373591135f110227b68cvboxsync * @param pvUser User argument.
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef DECLCALLBACK(int) FNPGMR3VIRTHANDLER(PVM pVM, RTGCPTR GCPtr, void *pvPtr, void *pvBuf, size_t cbBuf, PGMACCESSTYPE enmAccessType, void *pvUser);
de4157257515400c2c25373591135f110227b68cvboxsync/** Pointer to PGM access callback. */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef FNPGMR3VIRTHANDLER *PFNPGMR3VIRTHANDLER;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * \#PF Handler callback for invalidation of virtual access handler ranges.
de4157257515400c2c25373591135f110227b68cvboxsync *
de4157257515400c2c25373591135f110227b68cvboxsync * @param pVM VM Handle.
de4157257515400c2c25373591135f110227b68cvboxsync * @param GCPtr The virtual address the guest has changed.
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef DECLCALLBACK(int) FNPGMR3VIRTINVALIDATE(PVM pVM, RTGCPTR GCPtr);
de4157257515400c2c25373591135f110227b68cvboxsync/** Pointer to PGM invalidation callback. */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef FNPGMR3VIRTINVALIDATE *PFNPGMR3VIRTINVALIDATE;
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/**
de4157257515400c2c25373591135f110227b68cvboxsync * Paging mode.
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsynctypedef enum PGMMODE
de4157257515400c2c25373591135f110227b68cvboxsync{
de4157257515400c2c25373591135f110227b68cvboxsync /** The usual invalid value. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_INVALID = 0,
de4157257515400c2c25373591135f110227b68cvboxsync /** Real mode. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_REAL,
de4157257515400c2c25373591135f110227b68cvboxsync /** Protected mode, no paging. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_PROTECTED,
de4157257515400c2c25373591135f110227b68cvboxsync /** 32-bit paging. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_32_BIT,
de4157257515400c2c25373591135f110227b68cvboxsync /** PAE paging. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_PAE,
de4157257515400c2c25373591135f110227b68cvboxsync /** PAE paging with NX enabled. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_PAE_NX,
de4157257515400c2c25373591135f110227b68cvboxsync /** 64-bit AMD paging (long mode). */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_AMD64,
de4157257515400c2c25373591135f110227b68cvboxsync /** 64-bit AMD paging (long mode) with NX enabled. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_AMD64_NX,
de4157257515400c2c25373591135f110227b68cvboxsync /** Nested paging mode (shadow only; guest physical to host physical). */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_NESTED,
de4157257515400c2c25373591135f110227b68cvboxsync /** Extended paging (Intel) mode. */
de4157257515400c2c25373591135f110227b68cvboxsync PGMMODE_EPT,
de4157257515400c2c25373591135f110227b68cvboxsync /** The max number of modes */
ccc948c886b751603889a67909fbd4a5fcaeac85vboxsync PGMMODE_MAX,
ccc948c886b751603889a67909fbd4a5fcaeac85vboxsync /** 32bit hackishness. */
ccc948c886b751603889a67909fbd4a5fcaeac85vboxsync PGMMODE_32BIT_HACK = 0x7fffffff
66d43d6192fb8fbb95c01515ba64f8a1e678a863vboxsync} PGMMODE;
ccc948c886b751603889a67909fbd4a5fcaeac85vboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/** Macro for checking if the guest is using paging.
de4157257515400c2c25373591135f110227b68cvboxsync * @param enmMode PGMMODE_*.
de4157257515400c2c25373591135f110227b68cvboxsync * @remark ASSUMES certain order of the PGMMODE_* values.
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsync#define PGMMODE_WITH_PAGING(enmMode) ((enmMode) >= PGMMODE_32_BIT)
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync/** Macro for checking if it's one of the long mode modes.
de4157257515400c2c25373591135f110227b68cvboxsync * @param enmMode PGMMODE_*.
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync */
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync#define PGMMODE_IS_LONG_MODE(enmMode) ((enmMode) == PGMMODE_AMD64_NX || (enmMode) == PGMMODE_AMD64)
de4157257515400c2c25373591135f110227b68cvboxsync
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync/**
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync * Is the ROM mapped (true) or is the shadow RAM mapped (false).
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync *
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync * @returns boolean.
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync * @param enmProt The PGMROMPROT value, must be valid.
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync */
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync#define PGMROMPROT_IS_ROM(enmProt) \
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync ( (enmProt) == PGMROMPROT_READ_ROM_WRITE_IGNORE \
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync || (enmProt) == PGMROMPROT_READ_ROM_WRITE_RAM )
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(bool) PGMIsLocked(PVM pVM);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(bool) PGMIsLockOwner(PVM pVM);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsync
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMRegisterStringFormatTypes(void);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(void) PGMDeregisterStringFormatTypes(void);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(RTHCPHYS) PGMGetHyperCR3(PVMCPU pVCpu);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(RTHCPHYS) PGMGetNestedCR3(PVMCPU pVCpu, PGMMODE enmShadowMode);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(RTHCPHYS) PGMGetInterHCCR3(PVM pVM);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(RTHCPHYS) PGMGetInterRCCR3(PVM pVM, PVMCPU pVCpu);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(RTHCPHYS) PGMGetInter32BitCR3(PVM pVM);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(RTHCPHYS) PGMGetInterPaeCR3(PVM pVM);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(RTHCPHYS) PGMGetInterAmd64CR3(PVM pVM);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMTrap0eHandler(PVMCPU pVCpu, RTGCUINT uErr, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMPrefetchPage(PVMCPU pVCpu, RTGCPTR GCPtrPage);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMVerifyAccess(PVMCPU pVCpu, RTGCPTR Addr, uint32_t cbSize, uint32_t fAccess);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMIsValidAccess(PVMCPU pVCpu, RTGCPTR Addr, uint32_t cbSize, uint32_t fAccess);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMInterpretInstruction(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMMap(PVM pVM, RTGCPTR GCPtr, RTHCPHYS HCPhys, uint32_t cbPages, unsigned fFlags);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMMapSetPage(PVM pVM, RTGCPTR GCPtr, uint64_t cb, uint64_t fFlags);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMMapModifyPage(PVM pVM, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask);
de4157257515400c2c25373591135f110227b68cvboxsync#ifndef IN_RING0
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(bool) PGMMapHasConflicts(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMMapResolveConflicts(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsync#endif
de4157257515400c2c25373591135f110227b68cvboxsync#ifdef VBOX_STRICT
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMMapCheck(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsync#endif
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMShwGetPage(PVMCPU pVCpu, RTGCPTR GCPtr, uint64_t *pfFlags, PRTHCPHYS pHCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMShwSetPage(PVMCPU pVCpu, RTGCPTR GCPtr, size_t cb, uint64_t fFlags);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMShwModifyPage(PVMCPU pVCpu, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMGstGetPage(PVMCPU pVCpu, RTGCPTR GCPtr, uint64_t *pfFlags, PRTGCPHYS pGCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(bool) PGMGstIsPagePresent(PVMCPU pVCpu, RTGCPTR GCPtr);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMGstSetPage(PVMCPU pVCpu, RTGCPTR GCPtr, size_t cb, uint64_t fFlags);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMGstModifyPage(PVMCPU pVCpu, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(X86PDPE) PGMGstGetPaePDPtr(PVMCPU pVCpu, unsigned iPdPt);
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMInvalidatePage(PVMCPU pVCpu, RTGCPTR GCPtrPage);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMFlushTLB(PVMCPU pVCpu, uint64_t cr3, bool fGlobal);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMSyncCR3(PVMCPU pVCpu, uint64_t cr0, uint64_t cr3, uint64_t cr4, bool fGlobal);
2a047f0d7ee5964456dbc4dec9925031482588abvboxsyncVMMDECL(int) PGMUpdateCR3(PVMCPU pVCpu, uint64_t cr3);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMChangeMode(PVMCPU pVCpu, uint64_t cr0, uint64_t cr4, uint64_t efer);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(PGMMODE) PGMGetGuestMode(PVMCPU pVCpu);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(PGMMODE) PGMGetShadowMode(PVMCPU pVCpu);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(PGMMODE) PGMGetHostMode(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(const char *) PGMGetModeName(PGMMODE enmMode);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(bool) PGMHasDirtyPages(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalRegisterEx(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS GCPhysLast,
de4157257515400c2c25373591135f110227b68cvboxsync R3PTRTYPE(PFNPGMR3PHYSHANDLER) pfnHandlerR3, RTR3PTR pvUserR3,
de4157257515400c2c25373591135f110227b68cvboxsync R0PTRTYPE(PFNPGMR0PHYSHANDLER) pfnHandlerR0, RTR0PTR pvUserR0,
de4157257515400c2c25373591135f110227b68cvboxsync RCPTRTYPE(PFNPGMRCPHYSHANDLER) pfnHandlerRC, RTRCPTR pvUserRC,
de4157257515400c2c25373591135f110227b68cvboxsync R3PTRTYPE(const char *) pszDesc);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalModify(PVM pVM, RTGCPHYS GCPhysCurrent, RTGCPHYS GCPhys, RTGCPHYS GCPhysLast);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalDeregister(PVM pVM, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalChangeCallbacks(PVM pVM, RTGCPHYS GCPhys,
de4157257515400c2c25373591135f110227b68cvboxsync R3PTRTYPE(PFNPGMR3PHYSHANDLER) pfnHandlerR3, RTR3PTR pvUserR3,
de4157257515400c2c25373591135f110227b68cvboxsync R0PTRTYPE(PFNPGMR0PHYSHANDLER) pfnHandlerR0, RTR0PTR pvUserR0,
de4157257515400c2c25373591135f110227b68cvboxsync RCPTRTYPE(PFNPGMRCPHYSHANDLER) pfnHandlerRC, RTRCPTR pvUserRC,
de4157257515400c2c25373591135f110227b68cvboxsync R3PTRTYPE(const char *) pszDesc);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalSplit(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysSplit);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalJoin(PVM pVM, RTGCPHYS GCPhys1, RTGCPHYS GCPhys2);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalPageTempOff(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysPage);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalPageAlias(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysPage, RTGCPHYS GCPhysPageRemap);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalPageAliasHC(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysPage, RTHCPHYS HCPhysPageRemap);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerPhysicalReset(PVM pVM, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(bool) PGMHandlerPhysicalIsRegistered(PVM pVM, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(bool) PGMHandlerVirtualIsRegistered(PVM pVM, RTGCPTR GCPtr);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(bool) PGMPhysIsA20Enabled(PVMCPU pVCpu);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(bool) PGMPhysIsGCPhysValid(PVM pVM, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(bool) PGMPhysIsGCPhysNormal(PVM pVM, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysGCPhys2HCPhys(PVM pVM, RTGCPHYS GCPhys, PRTHCPHYS pHCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysGCPtr2GCPhys(PVMCPU pVCpu, RTGCPTR GCPtr, PRTGCPHYS pGCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysGCPtr2HCPhys(PVMCPU pVCpu, RTGCPTR GCPtr, PRTHCPHYS pHCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMPhysInvalidatePageMapTLB(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMPhysInvalidatePageMapTLBEntry(PVM pVM, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysGCPhys2CCPtr(PVM pVM, RTGCPHYS GCPhys, void **ppv, PPGMPAGEMAPLOCK pLock);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysGCPhys2CCPtrReadOnly(PVM pVM, RTGCPHYS GCPhys, void const **ppv, PPGMPAGEMAPLOCK pLock);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysGCPtr2CCPtr(PVMCPU pVCpu, RTGCPTR GCPtr, void **ppv, PPGMPAGEMAPLOCK pLock);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysGCPtr2CCPtrReadOnly(PVMCPU pVCpu, RTGCPTR GCPtr, void const **ppv, PPGMPAGEMAPLOCK pLock);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMPhysReleasePageMappingLock(PVM pVM, PPGMPAGEMAPLOCK pLock);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysGCPhys2R3Ptr(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange, PRTR3PTR pR3Ptr);
de4157257515400c2c25373591135f110227b68cvboxsync#ifdef VBOX_STRICT
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(RTR3PTR) PGMPhysGCPhys2R3PtrAssert(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange);
de4157257515400c2c25373591135f110227b68cvboxsync#endif
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysGCPtr2R3Ptr(PVMCPU pVCpu, RTGCPTR GCPtr, PRTR3PTR pR3Ptr);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysRead(PVM pVM, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysWrite(PVM pVM, RTGCPHYS GCPhys, const void *pvBuf, size_t cbWrite);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysSimpleReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysSimpleWriteGCPhys(PVM pVM, RTGCPHYS GCPhysDst, const void *pvSrc, size_t cb);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysSimpleReadGCPtr(PVMCPU pVCpu, void *pvDst, RTGCPTR GCPtrSrc, size_t cb);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysSimpleWriteGCPtr(PVMCPU pVCpu, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMPhysReadGCPtr(PVMCPU pVCpu, void *pvDst, RTGCPTR GCPtrSrc, size_t cb);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMPhysWriteGCPtr(PVMCPU pVCpu, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMPhysSimpleDirtyWriteGCPtr(PVMCPU pVCpu, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMPhysInterpretedRead(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore, void *pvDst, RTGCPTR GCPtrSrc, size_t cb);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMPhysInterpretedReadNoHandlers(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore, void *pvDst, RTGCUINTPTR GCPtrSrc, size_t cb, bool fRaiseTrap);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMPhysInterpretedWriteNoHandlers(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore, RTGCPTR GCPtrDst, void const *pvSrc, size_t cb, bool fRaiseTrap);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#ifdef VBOX_STRICT
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(unsigned) PGMAssertHandlerAndFlagsInSync(PVM pVM);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(unsigned) PGMAssertNoMappingConflicts(PVM pVM);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(unsigned) PGMAssertCR3(PVM pVM, PVMCPU pVCpu, uint64_t cr3, uint64_t cr4);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#endif /* VBOX_STRICT */
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE)
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMDynMapGCPage(PVM pVM, RTGCPHYS GCPhys, void **ppv);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMDynMapGCPageOff(PVM pVM, RTGCPHYS GCPhys, void **ppv);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync# ifdef IN_RC
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMDynMapHCPage(PVM pVM, RTHCPHYS HCPhys, void **ppv);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMDynLockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMDynUnlockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage);
de4157257515400c2c25373591135f110227b68cvboxsync# ifdef VBOX_STRICT
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMDynCheckLocks(PVM pVM);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync# endif
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync# endif
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMDynMapStartAutoSet(PVMCPU pVCpu);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMDynMapReleaseAutoSet(PVMCPU pVCpu);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMDynMapFlushAutoSet(PVMCPU pVCpu);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMDynMapMigrateAutoSet(PVMCPU pVCpu);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(uint32_t) PGMDynMapPushAutoSubset(PVMCPU pVCpu);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMDynMapPopAutoSubset(PVMCPU pVCpu, uint32_t iPrevSubset);
de4157257515400c2c25373591135f110227b68cvboxsync#endif
de4157257515400c2c25373591135f110227b68cvboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync
de4157257515400c2c25373591135f110227b68cvboxsync#ifdef IN_RC
de4157257515400c2c25373591135f110227b68cvboxsync/** @defgroup grp_pgm_gc The PGM Guest Context API
de4157257515400c2c25373591135f110227b68cvboxsync * @ingroup grp_pgm
de4157257515400c2c25373591135f110227b68cvboxsync * @{
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsync/** @} */
de4157257515400c2c25373591135f110227b68cvboxsync#endif /* IN_RC */
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync#ifdef IN_RING0
de4157257515400c2c25373591135f110227b68cvboxsync/** @defgroup grp_pgm_r0 The PGM Host Context Ring-0 API
de4157257515400c2c25373591135f110227b68cvboxsync * @ingroup grp_pgm
de4157257515400c2c25373591135f110227b68cvboxsync * @{
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR0DECL(int) PGMR0PhysAllocateHandyPages(PVM pVM, PVMCPU pVCpu);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR0DECL(int) PGMR0Trap0eHandlerNestedPaging(PVM pVM, PVMCPU pVCpu, PGMMODE enmShwPagingMode, RTGCUINT uErr, PCPUMCTXCORE pRegFrame, RTGCPHYS pvFault);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync# ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR0DECL(int) PGMR0DynMapInit(void);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR0DECL(void) PGMR0DynMapTerm(void);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR0DECL(int) PGMR0DynMapInitVM(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR0DECL(void) PGMR0DynMapTermVM(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR0DECL(int) PGMR0DynMapAssertIntegrity(void);
de4157257515400c2c25373591135f110227b68cvboxsync# endif
de4157257515400c2c25373591135f110227b68cvboxsync/** @} */
de4157257515400c2c25373591135f110227b68cvboxsync#endif /* IN_RING0 */
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync
586cf6585d0e6aa3bef888eeff116bf82d18cd83vboxsync
de4157257515400c2c25373591135f110227b68cvboxsync#ifdef IN_RING3
de4157257515400c2c25373591135f110227b68cvboxsync/** @defgroup grp_pgm_r3 The PGM Host Context Ring-3 API
c69091b522190cc83264ed458a05c6b2660a167cvboxsync * @ingroup grp_pgm
de4157257515400c2c25373591135f110227b68cvboxsync * @{
de4157257515400c2c25373591135f110227b68cvboxsync */
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3Init(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3InitCPU(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3InitDynMap(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3InitFinalize(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(void) PGMR3Relocate(PVM pVM, RTGCINTPTR offDelta);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(void) PGMR3Reset(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3Term(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3TermCPU(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3LockCall(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3ChangeMode(PVM pVM, PVMCPU pVCpu, PGMMODE enmGuestMode);
de4157257515400c2c25373591135f110227b68cvboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysRegisterRam(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, const char *pszDesc);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysMMIORegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb,
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync R3PTRTYPE(PFNPGMR3PHYSHANDLER) pfnHandlerR3, RTR3PTR pvUserR3,
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync R0PTRTYPE(PFNPGMR0PHYSHANDLER) pfnHandlerR0, RTR0PTR pvUserR0,
586cf6585d0e6aa3bef888eeff116bf82d18cd83vboxsync RCPTRTYPE(PFNPGMRCPHYSHANDLER) pfnHandlerRC, RTRCPTR pvUserRC,
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync R3PTRTYPE(const char *) pszDesc);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysMMIODeregister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3PhysMMIO2Register(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS cb, uint32_t fFlags, void **ppv, const char *pszDesc);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3PhysMMIO2Deregister(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3PhysMMIO2Map(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3PhysMMIO2Unmap(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(bool) PGMR3PhysMMIO2IsBase(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3PhysMMIO2GetHCPhys(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS off, PRTHCPHYS pHCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3PhysMMIO2MapKernel(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS off, RTGCPHYS cb, const char *pszDesc, PRTR0PTR pR0Ptr);
de4157257515400c2c25373591135f110227b68cvboxsync
5a9f1d57ea268b1d88ff2492d9d59a696b1c693evboxsync/** @group PGMR3PhysRegisterRom flags.
de4157257515400c2c25373591135f110227b68cvboxsync * @{ */
de4157257515400c2c25373591135f110227b68cvboxsync/** Inidicates that ROM shadowing should be enabled. */
de4157257515400c2c25373591135f110227b68cvboxsync#define PGMPHYS_ROM_FLAGS_SHADOWED RT_BIT_32(0)
de4157257515400c2c25373591135f110227b68cvboxsync/** Indicates that what pvBinary points to won't go away
de4157257515400c2c25373591135f110227b68cvboxsync * and can be used for strictness checks. */
de4157257515400c2c25373591135f110227b68cvboxsync#define PGMPHYS_ROM_FLAGS_PERMANENT_BINARY RT_BIT_32(1)
de4157257515400c2c25373591135f110227b68cvboxsync/** @} */
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3PhysRomRegister(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTGCPHYS cb,
de4157257515400c2c25373591135f110227b68cvboxsync const void *pvBinary, uint32_t fFlags, const char *pszDesc);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysRomProtect(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, PGMROMPROT enmProt);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3PhysRegister(PVM pVM, void *pvRam, RTGCPHYS GCPhys, size_t cb, unsigned fFlags, const SUPPAGE *paPages, const char *pszDesc);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(void) PGMR3PhysSetA20(PVMCPU pVCpu, bool fEnable);
de4157257515400c2c25373591135f110227b68cvboxsync/** @name PGMR3MapPT flags.
de4157257515400c2c25373591135f110227b68cvboxsync * @{ */
de4157257515400c2c25373591135f110227b68cvboxsync/** The mapping may be unmapped later. The default is permanent mappings. */
de4157257515400c2c25373591135f110227b68cvboxsync#define PGMR3MAPPT_FLAGS_UNMAPPABLE RT_BIT(0)
de4157257515400c2c25373591135f110227b68cvboxsync/** @} */
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3MapPT(PVM pVM, RTGCPTR GCPtr, uint32_t cb, uint32_t fFlags, PFNPGMRELOCATE pfnRelocate, void *pvUser, const char *pszDesc);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3UnmapPT(PVM pVM, RTGCPTR GCPtr);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3FinalizeMappings(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3MappingsSize(PVM pVM, uint32_t *pcb);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3MappingsFix(PVM pVM, RTGCPTR GCPtrBase, uint32_t cb);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3MappingsUnfix(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3MappingsDisable(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3MapIntermediate(PVM pVM, RTUINTPTR Addr, RTHCPHYS HCPhys, unsigned cbPages);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3MapRead(PVM pVM, void *pvDst, RTGCPTR GCPtrSrc, size_t cb);
de4157257515400c2c25373591135f110227b68cvboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3HandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS GCPhysLast,
de4157257515400c2c25373591135f110227b68cvboxsync PFNPGMR3PHYSHANDLER pfnHandlerR3, void *pvUserR3,
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync const char *pszModR0, const char *pszHandlerR0, RTR0PTR pvUserR0,
de4157257515400c2c25373591135f110227b68cvboxsync const char *pszModRC, const char *pszHandlerRC, RTRCPTR pvUserRC, const char *pszDesc);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMR3HandlerVirtualRegisterEx(PVM pVM, PGMVIRTHANDLERTYPE enmType, RTGCPTR GCPtr, RTGCPTR GCPtrLast,
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync R3PTRTYPE(PFNPGMR3VIRTINVALIDATE) pfnInvalidateR3,
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync R3PTRTYPE(PFNPGMR3VIRTHANDLER) pfnHandlerR3,
de4157257515400c2c25373591135f110227b68cvboxsync RCPTRTYPE(PFNPGMRCVIRTHANDLER) pfnHandlerRC,
de4157257515400c2c25373591135f110227b68cvboxsync R3PTRTYPE(const char *) pszDesc);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3HandlerVirtualRegister(PVM pVM, PGMVIRTHANDLERTYPE enmType, RTGCPTR GCPtr, RTGCPTR GCPtrLast,
de4157257515400c2c25373591135f110227b68cvboxsync PFNPGMR3VIRTINVALIDATE pfnInvalidateR3,
de4157257515400c2c25373591135f110227b68cvboxsync PFNPGMR3VIRTHANDLER pfnHandlerR3,
de4157257515400c2c25373591135f110227b68cvboxsync const char *pszHandlerRC, const char *pszModRC, const char *pszDesc);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMDECL(int) PGMHandlerVirtualChangeInvalidateCallback(PVM pVM, RTGCPTR GCPtr, R3PTRTYPE(PFNPGMR3VIRTINVALIDATE) pfnInvalidateR3);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMDECL(int) PGMHandlerVirtualDeregister(PVM pVM, RTGCPTR GCPtr);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PoolGrow(PVM pVM);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsync#ifdef ___VBox_dbgf_h /** @todo fix this! */
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(int) PGMR3DumpHierarchyHC(PVM pVM, uint64_t cr3, uint64_t cr4, bool fLongMode, unsigned cMaxDepth, PCDBGFINFOHLP pHlp);
de4157257515400c2c25373591135f110227b68cvboxsync#endif
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3DumpHierarchyGC(PVM pVM, uint64_t cr3, uint64_t cr4, RTGCPHYS PhysSearch);
de4157257515400c2c25373591135f110227b68cvboxsync
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysTlbGCPhys2Ptr(PVM pVM, RTGCPHYS GCPhys, bool fWritable, void **ppv);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(uint8_t) PGMR3PhysReadU8(PVM pVM, RTGCPHYS GCPhys);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(uint16_t) PGMR3PhysReadU16(PVM pVM, RTGCPHYS GCPhys);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(uint32_t) PGMR3PhysReadU32(PVM pVM, RTGCPHYS GCPhys);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(uint64_t) PGMR3PhysReadU64(PVM pVM, RTGCPHYS GCPhys);
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(void) PGMR3PhysWriteU8(PVM pVM, RTGCPHYS GCPhys, uint8_t Value);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(void) PGMR3PhysWriteU16(PVM pVM, RTGCPHYS GCPhys, uint16_t Value);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(void) PGMR3PhysWriteU32(PVM pVM, RTGCPHYS GCPhys, uint32_t Value);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(void) PGMR3PhysWriteU64(PVM pVM, RTGCPHYS GCPhys, uint64_t Value);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysReadExternal(PVM pVM, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysWriteExternal(PVM pVM, RTGCPHYS GCPhys, const void *pvBuf, size_t cbWrite, const char *pszWho);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysGCPhys2CCPtrExternal(PVM pVM, RTGCPHYS GCPhys, void **ppv, PPGMPAGEMAPLOCK pLock);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysGCPhys2CCPtrReadOnlyExternal(PVM pVM, RTGCPHYS GCPhys, void const **ppv, PPGMPAGEMAPLOCK pLock);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysChunkMap(PVM pVM, uint32_t idChunk);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(void) PGMR3PhysChunkInvalidateTLB(PVM pVM);
75479ee94ecd639290ae67b38c9497d9492f89e1vboxsyncVMMR3DECL(int) PGMR3PhysAllocateHandyPages(PVM pVM);
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsync
de4157257515400c2c25373591135f110227b68cvboxsyncVMMR3DECL(void) PGMR3ReleaseOwnedLocks(PVM pVM);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsync
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncVMMR3DECL(int) PGMR3CheckIntegrity(PVM pVM);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsync
586cf6585d0e6aa3bef888eeff116bf82d18cd83vboxsyncVMMR3DECL(int) PGMR3DbgR3Ptr2GCPhys(PVM pVM, RTR3PTR R3Ptr, PRTGCPHYS pGCPhys);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncVMMR3DECL(int) PGMR3DbgR3Ptr2HCPhys(PVM pVM, RTR3PTR R3Ptr, PRTHCPHYS pHCPhys);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncVMMR3DECL(int) PGMR3DbgHCPhys2GCPhys(PVM pVM, RTHCPHYS HCPhys, PRTGCPHYS pGCPhys);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncVMMR3DECL(int) PGMR3DbgReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb, uint32_t fFlags, size_t *pcbRead);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncVMMR3DECL(int) PGMR3DbgWriteGCPhys(PVM pVM, RTGCPHYS GCPhysDst, const void *pvSrc, size_t cb, uint32_t fFlags, size_t *pcbWritten);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncVMMR3DECL(int) PGMR3DbgReadGCPtr(PVM pVM, void *pvDst, RTGCPTR GCPtrSrc, size_t cb, uint32_t fFlags, size_t *pcbRead);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncVMMR3DECL(int) PGMR3DbgWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, void const *pvSrc, size_t cb, uint32_t fFlags, size_t *pcbWritten);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncVMMR3DECL(int) PGMR3DbgScanPhysical(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cbRange, RTGCPHYS GCPhysAlign, const uint8_t *pabNeedle, size_t cbNeedle, PRTGCPHYS pGCPhysHit);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncVMMR3DECL(int) PGMR3DbgScanVirtual(PVM pVM, PVMCPU pVCpu, RTGCPTR GCPtr, RTGCPTR cbRange, RTGCPTR GCPtrAlign, const uint8_t *pabNeedle, size_t cbNeedle, PRTGCUINTPTR pGCPhysHit);
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsync/** @} */
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsync#endif /* IN_RING3 */
586cf6585d0e6aa3bef888eeff116bf82d18cd83vboxsync
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsyncRT_C_DECLS_END
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsync
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsync/** @} */
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsync#endif
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsync
69c51855f3b700d7b26a81f1d7dfed523097b7e2vboxsync