mm.h revision 37ebf1330e7e4408b384bddec3e47f19ad388ce0
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync/** @file
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * MM - The Memory Manager.
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync/*
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * Copyright (C) 2006-2007 Sun Microsystems, Inc.
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync *
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * available from http://www.virtualbox.org. This file is free software;
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * you can redistribute it and/or modify it under the terms of the GNU
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * General Public License (GPL) as published by the Free Software
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync *
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * The contents of this file may alternatively be used under the terms
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * of the Common Development and Distribution License Version 1.0
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * VirtualBox OSE distribution, in which case the provisions of the
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * CDDL are applicable instead of those of the GPL.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync *
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * You may elect to license modified versions of this file under the
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync * terms and conditions of either the GPL or the CDDL or both.
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync *
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
b0db50948c349fa76655abf252f7946b515e8204vboxsync * additional information or have any questions.
2f0d866e126dd288169fed591c259c1c6b4016e5vboxsync */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync#ifndef ___VBox_mm_h
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#define ___VBox_mm_h
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync#include <VBox/cdefs.h>
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync#include <VBox/types.h>
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#include <VBox/x86.h>
f5e53763b0a581b0299e98028c6c52192eb06785vboxsync#include <iprt/stdarg.h>
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#include <VBox/sup.h>
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync__BEGIN_DECLS
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync/** @defgroup grp_mm The Memory Manager API
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync * @{
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync */
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync#ifndef VBOX_WITH_NEW_PHYS_CODE
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync/** @name RAM Page Flags
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * Since internal ranges have a byte granularity it's possible for a
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * page be flagged for several uses. The access virtualization in PGM
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * will choose the most restricted one and use EM to emulate access to
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * the less restricted areas of the page.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync *
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * Bits 0-11 only since they are fitted into the offset part of a physical memory address.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * @{
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync/** Reserved - Not RAM, ROM nor MMIO2.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * If this bit is cleared the memory is assumed to be some kind of RAM.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * Normal MMIO may set it but that depends on whether the RAM range was
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * created specially for the MMIO or not.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync *
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * @remarks The current implementation will always reserve backing
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * memory for reserved ranges to simplify things.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#define MM_RAM_FLAGS_RESERVED RT_BIT(0)
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync/** ROM - Read Only Memory.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * The page have a HC physical address which contains the BIOS code. All write
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * access is trapped and ignored.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync *
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * HACK: Writable shadow ROM is indicated by both ROM and MMIO2 being
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * set. (We're out of bits.)
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#define MM_RAM_FLAGS_ROM RT_BIT(1)
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync/** MMIO - Memory Mapped I/O.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * All access is trapped and emulated. No physical backing is required, but
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * might for various reasons be present.
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync */
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync#define MM_RAM_FLAGS_MMIO RT_BIT(2)
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync/** MMIO2 - Memory Mapped I/O, variation 2.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * The virtualization is performed using real memory and only catching
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync * a few accesses for like keeping track for dirty pages.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * @remark Involved in the shadow ROM hack.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync */
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync#define MM_RAM_FLAGS_MMIO2 RT_BIT(3)
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync/** Physical backing memory is allocated dynamically. Not set implies a one time static allocation. */
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync#define MM_RAM_FLAGS_DYNAMIC_ALLOC RT_BIT(11)
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync/** @} */
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync/** @name MMR3PhysRegisterEx registration type
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * @{
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsynctypedef enum
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync{
d4e9ccea0ea1ed303b5708ff94f6c202755f0dc6vboxsync /** Normal physical region (flags specify exact page type) */
d4e9ccea0ea1ed303b5708ff94f6c202755f0dc6vboxsync MM_PHYS_TYPE_NORMAL = 0,
0c4004948fca34f2db87e7b38013137e9472c306vboxsync /** Allocate part of a dynamically allocated physical region */
0c4004948fca34f2db87e7b38013137e9472c306vboxsync MM_PHYS_TYPE_DYNALLOC_CHUNK,
0c4004948fca34f2db87e7b38013137e9472c306vboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_PHYS_TYPE_32BIT_HACK = 0x7fffffff
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync} MMPHYSREG;
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync/** @} */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#endif /* !VBOX_WITH_NEW_PHYS_CODE */
44a2ecaf2d0fc196ab76cab13b3f909299e386d1vboxsync
44a2ecaf2d0fc196ab76cab13b3f909299e386d1vboxsync/**
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync * Memory Allocation Tags.
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync * For use with MMHyperAlloc(), MMR3HeapAlloc(), MMR3HeapAllocEx(),
65697a26b524640b83828b715160c798c43a0424vboxsync * MMR3HeapAllocZ() and MMR3HeapAllocZEx().
65697a26b524640b83828b715160c798c43a0424vboxsync *
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * @remark Don't forget to update the dump command in MMHeap.cpp!
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync */
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsynctypedef enum MMTAG
cab115cfa31c584def7069312a1e23c3fc88533bvboxsync{
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_INVALID = 0,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
cab115cfa31c584def7069312a1e23c3fc88533bvboxsync MM_TAG_CFGM,
cab115cfa31c584def7069312a1e23c3fc88533bvboxsync MM_TAG_CFGM_BYTES,
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_CFGM_STRING,
0381007ae929f1a0885e69644b7d586a1dbb3a2avboxsync MM_TAG_CFGM_USER,
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync MM_TAG_CSAM,
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync MM_TAG_CSAM_PATCH,
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync MM_TAG_CPUM_CTX,
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync MM_TAG_DBGF,
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync MM_TAG_DBGF_INFO,
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync MM_TAG_DBGF_LINE,
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync MM_TAG_DBGF_LINE_DUP,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_DBGF_MODULE,
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_DBGF_OS,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_DBGF_STACK,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_DBGF_SYMBOL,
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_DBGF_SYMBOL_DUP,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_EM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_IOM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_IOM_STATS,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_MM,
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_MM_LOOKUP_GUEST,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_MM_LOOKUP_PHYS,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_MM_LOOKUP_VIRT,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_MM_PAGE,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsync MM_TAG_PARAV,
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsync
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsync MM_TAG_PATM,
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsync MM_TAG_PATM_PATCH,
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_PDM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PDM_ASYNC_COMPLETION,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PDM_DEVICE,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PDM_DEVICE_USER,
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_PDM_DRIVER,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PDM_DRIVER_USER,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PDM_USB,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PDM_USB_USER,
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_PDM_LUN,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PDM_QUEUE,
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync MM_TAG_PDM_THREAD,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PGM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PGM_CHUNK_MAPPING,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PGM_HANDLERS,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PGM_PHYS,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_PGM_POOL,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync MM_TAG_REM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_SELM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_SSM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_STAM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_TM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync MM_TAG_TRPM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_VM,
93f91841f87620d1cb6d0238b3d0d5e52cd3b9a4vboxsync MM_TAG_VM_REQ,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_VMM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_HWACCM,
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync MM_TAG_32BIT_HACK = 0x7fffffff
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync} MMTAG;
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
65697a26b524640b83828b715160c798c43a0424vboxsync
65697a26b524640b83828b715160c798c43a0424vboxsync
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsync/** @defgroup grp_mm_hyper Hypervisor Memory Management
65697a26b524640b83828b715160c798c43a0424vboxsync * @ingroup grp_mm
65697a26b524640b83828b715160c798c43a0424vboxsync * @{ */
65697a26b524640b83828b715160c798c43a0424vboxsync
65697a26b524640b83828b715160c798c43a0424vboxsyncVMMDECL(RTR3PTR) MMHyperR0ToR3(PVM pVM, RTR0PTR R0Ptr);
65697a26b524640b83828b715160c798c43a0424vboxsyncVMMDECL(RTRCPTR) MMHyperR0ToRC(PVM pVM, RTR0PTR R0Ptr);
65697a26b524640b83828b715160c798c43a0424vboxsync#ifndef IN_RING0
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMDECL(void *) MMHyperR0ToCC(PVM pVM, RTR0PTR R0Ptr);
65697a26b524640b83828b715160c798c43a0424vboxsync#endif
65697a26b524640b83828b715160c798c43a0424vboxsyncVMMDECL(RTR0PTR) MMHyperR3ToR0(PVM pVM, RTR3PTR R3Ptr);
65697a26b524640b83828b715160c798c43a0424vboxsyncVMMDECL(RTRCPTR) MMHyperR3ToRC(PVM pVM, RTR3PTR R3Ptr);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMDECL(RTR3PTR) MMHyperRCToR3(PVM pVM, RTRCPTR RCPtr);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMDECL(RTR0PTR) MMHyperRCToR0(PVM pVM, RTRCPTR RCPtr);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#ifndef IN_RING3
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsyncVMMDECL(void *) MMHyperR3ToCC(PVM pVM, RTR3PTR R3Ptr);
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync#else
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsyncDECLINLINE(void *) MMHyperR3ToCC(PVM pVM, RTR3PTR R3Ptr)
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync{
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync NOREF(pVM);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync return R3Ptr;
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync}
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#endif
65697a26b524640b83828b715160c798c43a0424vboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync#ifndef IN_RC
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsyncVMMDECL(void *) MMHyperRCToCC(PVM pVM, RTRCPTR RCPtr);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync#else
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsyncDECLINLINE(void *) MMHyperRCToCC(PVM pVM, RTRCPTR RCPtr)
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync{
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync NOREF(pVM);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync return (void *)RCPtr;
f687f34bd232be13744edbc0cc5155fa5d4540edvboxsync}
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#endif
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync#ifndef IN_RING3
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMDECL(RTR3PTR) MMHyperCCToR3(PVM pVM, void *pv);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync#else
0dd6dfbebcda0af90da4413aaea5f3b9d1817556vboxsyncDECLINLINE(RTR3PTR) MMHyperCCToR3(PVM pVM, void *pv)
0dd6dfbebcda0af90da4413aaea5f3b9d1817556vboxsync{
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync NOREF(pVM);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync return pv;
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsync}
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsync#endif
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync#ifndef IN_RING0
ead016c68c61b5f2e1fe4d237054eebea9327d4bvboxsyncVMMDECL(RTR0PTR) MMHyperCCToR0(PVM pVM, void *pv);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#else
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsyncDECLINLINE(RTR0PTR) MMHyperCCToR0(PVM pVM, void *pv)
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync{
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync NOREF(pVM);
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsync return pv;
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsync}
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsync#endif
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsync
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsync#ifndef IN_RC
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsyncVMMDECL(RTRCPTR) MMHyperCCToRC(PVM pVM, void *pv);
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsync#else
64f58e4154eaa20c47782b429eeaff09070369bfvboxsyncDECLINLINE(RTRCPTR) MMHyperCCToRC(PVM pVM, void *pv)
64f58e4154eaa20c47782b429eeaff09070369bfvboxsync{
64f58e4154eaa20c47782b429eeaff09070369bfvboxsync NOREF(pVM);
64f58e4154eaa20c47782b429eeaff09070369bfvboxsync return (RTRCPTR)pv;
64f58e4154eaa20c47782b429eeaff09070369bfvboxsync}
64f58e4154eaa20c47782b429eeaff09070369bfvboxsync#endif
64f58e4154eaa20c47782b429eeaff09070369bfvboxsync
64f58e4154eaa20c47782b429eeaff09070369bfvboxsync
64f58e4154eaa20c47782b429eeaff09070369bfvboxsyncVMMDECL(int) MMHyperAlloc(PVM pVM, size_t cb, uint32_t uAlignment, MMTAG enmTag, void **ppv);
64f58e4154eaa20c47782b429eeaff09070369bfvboxsyncVMMDECL(int) MMHyperFree(PVM pVM, void *pv);
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsyncVMMDECL(void) MMHyperHeapCheck(PVM pVM);
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsync#ifdef DEBUG
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsyncVMMDECL(void) MMHyperHeapDump(PVM pVM);
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsync#endif
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsyncVMMDECL(size_t) MMHyperHeapGetFreeSize(PVM pVM);
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsyncVMMDECL(size_t) MMHyperHeapGetSize(PVM pVM);
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsyncVMMDECL(RTGCPTR) MMHyperGetArea(PVM pVM, size_t *pcb);
64f58e4154eaa20c47782b429eeaff09070369bfvboxsyncVMMDECL(bool) MMHyperIsInsideArea(PVM pVM, RTGCPTR GCPtr);
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsync
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync
7ccfefe49db4cd93c3701d7b60873ebf404b5b87vboxsyncVMMDECL(RTHCPHYS) MMPage2Phys(PVM pVM, void *pvPage);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsyncVMMDECL(void *) MMPagePhys2Page(PVM pVM, RTHCPHYS HCPhysPage);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMDECL(int) MMPagePhys2PageEx(PVM pVM, RTHCPHYS HCPhysPage, void **ppvPage);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsyncVMMDECL(int) MMPagePhys2PageTry(PVM pVM, RTHCPHYS HCPhysPage, void **ppvPage);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
65697a26b524640b83828b715160c798c43a0424vboxsync
65697a26b524640b83828b715160c798c43a0424vboxsync/** @def MMHYPER_RC_ASSERT_RCPTR
65697a26b524640b83828b715160c798c43a0424vboxsync * Asserts that an address is either NULL or inside the hypervisor memory area.
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync * This assertion only works while IN_RC, it's a NOP everywhere else.
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync * @thread The Emulation Thread.
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#ifdef IN_RC
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync# define MMHYPER_RC_ASSERT_RCPTR(pVM, RCPtr) Assert(MMHyperIsInsideArea((pVM), (RTRCUINTPTR)(RCPtr)) || !(RCPtr))
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#else
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync# define MMHYPER_RC_ASSERT_RCPTR(pVM, RCPtr) do { } while (0)
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync#endif
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
0dd6dfbebcda0af90da4413aaea5f3b9d1817556vboxsync/** @} */
0dd6dfbebcda0af90da4413aaea5f3b9d1817556vboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#ifdef IN_RING3
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync/** @defgroup grp_mm_r3 The MM Host Context Ring-3 API
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync * @ingroup grp_mm
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync * @{
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync */
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMR3DECL(int) MMR3InitUVM(PUVM pUVM);
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMR3DECL(int) MMR3Init(PVM pVM);
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMR3DECL(int) MMR3InitPaging(PVM pVM);
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMR3DECL(int) MMR3HyperInitFinalize(PVM pVM);
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMR3DECL(int) MMR3Term(PVM pVM);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(void) MMR3TermUVM(PUVM pUVM);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsyncVMMR3DECL(void) MMR3Reset(PVM pVM);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3IncreaseBaseReservation(PVM pVM, uint64_t cAddBasePages);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3AdjustFixedReservation(PVM pVM, int32_t cDeltaFixedPages, const char *pszDesc);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3UpdateShadowReservation(PVM pVM, uint32_t cShadowPages);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsync
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3HCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys, void **ppv);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3ReadGCVirt(PVM pVM, void *pvDst, RTGCPTR GCPtr, size_t cb);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3WriteGCVirt(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsync
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsync
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsync/** @defgroup grp_mm_r3_hyper Hypervisor Memory Manager (HC R3 Portion)
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsync * @ingroup grp_mm_r3
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsync * @{ */
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMDECL(int) MMR3HyperAllocOnceNoRel(PVM pVM, size_t cb, uint32_t uAlignment, MMTAG enmTag, void **ppv);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3HyperMapHCPhys(PVM pVM, void *pvR3, RTR0PTR pvR0, RTHCPHYS HCPhys, size_t cb, const char *pszDesc, PRTGCPTR pGCPtr);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3HyperMapGCPhys(PVM pVM, RTGCPHYS GCPhys, size_t cb, const char *pszDesc, PRTGCPTR pGCPtr);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3HyperMapMMIO2(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS off, RTGCPHYS cb, const char *pszDesc, PRTRCPTR pRCPtr);
f4aad55f8addd816ef005845842a2418bbdc3ea2vboxsyncVMMR3DECL(int) MMR3HyperMapPages(PVM pVM, void *pvR3, RTR0PTR pvR0, size_t cPages, PCSUPPAGE paPages, const char *pszDesc, PRTGCPTR pGCPtr);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(int) MMR3HyperReserve(PVM pVM, unsigned cb, const char *pszDesc, PRTGCPTR pGCPtr);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(RTHCPHYS) MMR3HyperHCVirt2HCPhys(PVM pVM, void *pvHC);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsyncVMMR3DECL(int) MMR3HyperHCVirt2HCPhysEx(PVM pVM, void *pvHC, PRTHCPHYS pHCPhys);
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsyncVMMR3DECL(void *) MMR3HyperHCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys);
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsyncVMMR3DECL(int) MMR3HyperHCPhys2HCVirtEx(PVM pVM, RTHCPHYS HCPhys, void **ppv);
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsyncVMMR3DECL(int) MMR3HyperReadGCVirt(PVM pVM, void *pvDst, RTGCPTR GCPtr, size_t cb);
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsync/** @} */
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync/** @defgroup grp_mm_phys Guest Physical Memory Manager
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync * @ingroup grp_mm_r3
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync * @{ */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#ifndef VBOX_WITH_NEW_PHYS_CODE
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(int) MMR3PhysRegisterEx(PVM pVM, void *pvRam, RTGCPHYS GCPhys, unsigned cb, unsigned fFlags, MMPHYSREG enmType, const char *pszDesc);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsyncVMMR3DECL(int) MMR3PhysRomRegister(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTUINT cbRange, const void *pvBinary, bool fShadow, const char *pszDesc);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(int) MMR3PhysRomProtect(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(int) MMR3PhysReserve(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange, const char *pszDesc);
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsync#endif
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(uint64_t) MMR3PhysGetRamSize(PVM pVM);
0dd6dfbebcda0af90da4413aaea5f3b9d1817556vboxsync/** @} */
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync/** @defgroup grp_mm_page Physical Page Pool
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync * @ingroup grp_mm_r3
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync * @{ */
a9f41cb889f53e8407561a6155052c441eb0fc5fvboxsyncVMMR3DECL(void *) MMR3PageAlloc(PVM pVM);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(RTHCPHYS) MMR3PageAllocPhys(PVM pVM);
0dd6dfbebcda0af90da4413aaea5f3b9d1817556vboxsyncVMMR3DECL(void) MMR3PageFree(PVM pVM, void *pvPage);
0dd6dfbebcda0af90da4413aaea5f3b9d1817556vboxsyncVMMR3DECL(void *) MMR3PageAllocLow(PVM pVM);
0dd6dfbebcda0af90da4413aaea5f3b9d1817556vboxsyncVMMR3DECL(void) MMR3PageFreeLow(PVM pVM, void *pvPage);
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMR3DECL(void) MMR3PageFreeByPhys(PVM pVM, RTHCPHYS HCPhysPage);
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMR3DECL(void *) MMR3PageDummyHCPtr(PVM pVM);
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMR3DECL(RTHCPHYS) MMR3PageDummyHCPhys(PVM pVM);
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync/** @} */
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync/** @defgroup grp_mm_heap Heap Manager
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync * @ingroup grp_mm_r3
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsync * @{ */
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMR3DECL(void *) MMR3HeapAlloc(PVM pVM, MMTAG enmTag, size_t cbSize);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(void *) MMR3HeapAllocU(PUVM pUVM, MMTAG enmTag, size_t cbSize);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsyncVMMR3DECL(int) MMR3HeapAllocEx(PVM pVM, MMTAG enmTag, size_t cbSize, void **ppv);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(int) MMR3HeapAllocExU(PUVM pUVM, MMTAG enmTag, size_t cbSize, void **ppv);
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsyncVMMR3DECL(void *) MMR3HeapAllocZ(PVM pVM, MMTAG enmTag, size_t cbSize);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsyncVMMR3DECL(void *) MMR3HeapAllocZU(PUVM pUVM, MMTAG enmTag, size_t cbSize);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(int) MMR3HeapAllocZEx(PVM pVM, MMTAG enmTag, size_t cbSize, void **ppv);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(int) MMR3HeapAllocZExU(PUVM pUVM, MMTAG enmTag, size_t cbSize, void **ppv);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(void *) MMR3HeapRealloc(void *pv, size_t cbNewSize);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(char *) MMR3HeapStrDup(PVM pVM, MMTAG enmTag, const char *psz);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(char *) MMR3HeapStrDupU(PUVM pUVM, MMTAG enmTag, const char *psz);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(char *) MMR3HeapAPrintf(PVM pVM, MMTAG enmTag, const char *pszFormat, ...);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(char *) MMR3HeapAPrintfU(PUVM pUVM, MMTAG enmTag, const char *pszFormat, ...);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(char *) MMR3HeapAPrintfV(PVM pVM, MMTAG enmTag, const char *pszFormat, va_list va);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(char *) MMR3HeapAPrintfVU(PUVM pUVM, MMTAG enmTag, const char *pszFormat, va_list va);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMR3DECL(void) MMR3HeapFree(void *pv);
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsync/** @} */
c2f2661efd8da5281e2a3af6ddd10e737d333909vboxsync
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync/** @} */
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync#endif /* IN_RING3 */
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync#ifdef IN_RC
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync/** @defgroup grp_mm_gc The MM Guest Context API
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync * @ingroup grp_mm
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync * @{
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync */
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsync
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMRCDECL(void) MMGCRamRegisterTrapHandler(PVM pVM);
96a7e06717e2d7398642eadb5ebab1bf13fbe2dbvboxsyncVMMRCDECL(void) MMGCRamDeregisterTrapHandler(PVM pVM);
4569bf0ad094b40d2e177299a00d37e94d28616cvboxsyncVMMRCDECL(int) MMGCRamReadNoTrapHandler(void *pDst, void *pSrc, size_t cb);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMRCDECL(int) MMGCRamWriteNoTrapHandler(void *pDst, void *pSrc, size_t cb);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMRCDECL(int) MMGCRamRead(PVM pVM, void *pDst, void *pSrc, size_t cb);
fc78e01f665145ab3641c5f8095e9ae984ddcb84vboxsyncVMMRCDECL(int) MMGCRamWrite(PVM pVM, void *pDst, void *pSrc, size_t cb);
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync/** @} */
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync#endif /* IN_RC */
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync/** @} */
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync__END_DECLS
ea779b55cc87f3e3fadddca4672c6697c82606edvboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync#endif
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync
9dca051a5f8ff457ef1692990f6ecfa280daf265vboxsync