VirtualBox

source: vbox/trunk/src/VBox/VMM/PGMSharedPage.cpp@ 28549

Last change on this file since 28549 was 28434, checked in by vboxsync, 15 years ago

*: whitespace cleanups by scm and two manually picked nits.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/* $Id: PGMSharedPage.cpp 28434 2010-04-17 18:08:28Z vboxsync $ */
2/** @file
3 * PGM - Page Manager and Monitor, Shared page handling
4 */
5
6/*
7 * Copyright (C) 2006-2010 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22
23/*******************************************************************************
24* Header Files *
25*******************************************************************************/
26#define LOG_GROUP LOG_GROUP_PGM
27#include <VBox/pgm.h>
28#include <VBox/stam.h>
29#include "PGMInternal.h"
30#include <VBox/vm.h>
31#include <VBox/sup.h>
32#include <VBox/param.h>
33#include <VBox/err.h>
34#include <VBox/log.h>
35#include <iprt/assert.h>
36#include <iprt/asm.h>
37
38
39/**
40 * Registers a new shared module for the VM
41 *
42 * @returns VBox status code.
43 * @param pVM VM handle
44 * @param pszModuleName Module name
45 * @param pszVersion Module version
46 * @param GCBaseAddr Module base address
47 * @param cbModule Module size
48 * @param cRegions Number of shared region descriptors
49 * @param pRegions Shared region(s)
50 */
51VMMR3DECL(int) PGMR3SharedModuleRegister(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule,
52 unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions)
53{
54 return GMMR3RegisterSharedModule(pVM, pszModuleName, pszVersion, GCBaseAddr, cbModule, cRegions, pRegions);
55}
56
57
58/**
59 * Unregisters a shared module for the VM
60 *
61 * @returns VBox status code.
62 * @param pVM VM handle
63 * @param pszModuleName Module name
64 * @param pszVersion Module version
65 * @param GCBaseAddr Module base address
66 * @param cbModule Module size
67 */
68VMMR3DECL(int) PGMR3SharedModuleUnregister(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule)
69{
70 return GMMR3UnregisterSharedModule(pVM, pszModuleName, pszVersion, GCBaseAddr, cbModule);
71}
72
73
74/**
75 * Checks regsitered modules for shared pages
76 *
77 * @returns VBox status code.
78 * @param pVM VM handle
79 */
80VMMR3DECL(int) PGMR3SharedModuleCheck(PVM pVM)
81{
82 return GMMR3CheckSharedModules(pVM);
83}
Note: See TracBrowser for help on using the repository browser.

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