VirtualBox

source: vbox/trunk/include/VBox/vmm/rem.h@ 79146

Last change on this file since 79146 was 76585, checked in by vboxsync, 6 years ago

*: scm --fix-header-guard-endif

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1/** @file
2 * REM - The Recompiled Execution Manager.
3 */
4
5/*
6 * Copyright (C) 2006-2019 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 */
25
26#ifndef VBOX_INCLUDED_vmm_rem_h
27#define VBOX_INCLUDED_vmm_rem_h
28#ifndef RT_WITHOUT_PRAGMA_ONCE
29# pragma once
30#endif
31
32#include <VBox/types.h>
33#include <VBox/vmm/pgm.h>
34#include <VBox/vmm/vmapi.h>
35
36
37RT_C_DECLS_BEGIN
38
39/** @defgroup grp_rem The Recompiled Execution Manager API
40 * @ingroup grp_vmm
41 * @{
42 */
43
44/** No pending interrupt. */
45#define REM_NO_PENDING_IRQ (~(uint32_t)0)
46
47
48#if defined(IN_RING0) || defined(IN_RC)
49VMMDECL(void) REMNotifyInvalidatePage(PVM pVM, RTGCPTR GCPtrPage);
50VMMDECL(void) REMNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler);
51VMMDECL(void) REMNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
52VMMDECL(void) REMNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
53#endif /* IN_RING0 || IN_RC */
54#ifdef IN_RC
55VMMDECL(void) REMNotifyHandlerPhysicalFlushIfAlmostFull(PVM pVM, PVMCPU pVCpu);
56#endif
57VMMDECL(void) REMFlushTBs(PVM pVM);
58
59
60#ifdef IN_RING3
61/** @defgroup grp_rem_r3 REM Host Context Ring 3 API
62 * @{
63 */
64REMR3DECL(int) REMR3Init(PVM pVM);
65REMR3DECL(int) REMR3InitFinalize(PVM pVM);
66REMR3DECL(int) REMR3Term(PVM pVM);
67REMR3DECL(void) REMR3Reset(PVM pVM);
68REMR3DECL(int) REMR3Run(PVM pVM, PVMCPU pVCpu);
69REMR3DECL(int) REMR3EmulateInstruction(PVM pVM, PVMCPU pVCpu);
70REMR3DECL(int) REMR3Step(PVM pVM, PVMCPU pVCpu);
71REMR3DECL(int) REMR3BreakpointSet(PVM pVM, RTGCUINTPTR Address);
72REMR3DECL(int) REMR3BreakpointClear(PVM pVM, RTGCUINTPTR Address);
73REMR3DECL(int) REMR3State(PVM pVM, PVMCPU pVCpu);
74REMR3DECL(int) REMR3StateBack(PVM pVM, PVMCPU pVCpu);
75REMR3DECL(void) REMR3StateUpdate(PVM pVM, PVMCPU pVCpu);
76REMR3DECL(void) REMR3A20Set(PVM pVM, PVMCPU pVCpu, bool fEnable);
77REMR3DECL(int) REMR3DisasEnableStepping(PVM pVM, bool fEnable);
78REMR3DECL(void) REMR3ReplayHandlerNotifications(PVM pVM);
79REMR3DECL(int) REMR3NotifyCodePageChanged(PVM pVM, PVMCPU pVCpu, RTGCPTR pvCodePage);
80REMR3DECL(void) REMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, unsigned fFlags);
81/** @name Flags for REMR3NotifyPhysRamRegister.
82 * @{ */
83#define REM_NOTIFY_PHYS_RAM_FLAGS_RAM RT_BIT(16)
84#define REM_NOTIFY_PHYS_RAM_FLAGS_MMIO2 RT_BIT(17)
85/** @} */
86REMR3DECL(void) REMR3NotifyPhysRomRegister(PVM pVM, RTGCPHYS GCPhys, RTUINT cb, void *pvCopy, bool fShadow);
87REMR3DECL(void) REMR3NotifyPhysRamDeregister(PVM pVM, RTGCPHYS GCPhys, RTUINT cb);
88REMR3DECL(void) REMR3NotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler);
89REMR3DECL(void) REMR3NotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
90REMR3DECL(void) REMR3NotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
91REMR3DECL(void) REMR3NotifyInterruptSet(PVM pVM, PVMCPU pVCpu);
92REMR3DECL(void) REMR3NotifyInterruptClear(PVM pVM, PVMCPU pVCpu);
93REMR3DECL(void) REMR3NotifyTimerPending(PVM pVM, PVMCPU pVCpuDst);
94REMR3DECL(void) REMR3NotifyDmaPending(PVM pVM);
95REMR3DECL(void) REMR3NotifyQueuePending(PVM pVM);
96REMR3DECL(void) REMR3NotifyFF(PVM pVM);
97REMR3DECL(bool) REMR3IsPageAccessHandled(PVM pVM, RTGCPHYS GCPhys);
98/** @} */
99#endif /* IN_RING3 */
100
101
102/** @} */
103RT_C_DECLS_END
104
105
106#endif /* !VBOX_INCLUDED_vmm_rem_h */
107
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