Changeset 44373 in vbox for trunk/include/VBox
- Timestamp:
- Jan 25, 2013 12:19:29 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83343
- Location:
- trunk/include/VBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r43746 r44373 85 85 * should results in the particular service being disabled. */ 86 86 #define VERR_SERVICE_DISABLED (-1020) 87 /** The requested feature is not supported in raw-mode. */ 88 #define VERR_NOT_SUP_IN_RAW_MODE (-1021) 87 89 /** @} */ 88 90 -
trunk/include/VBox/vmm/csam.h
r41732 r44373 152 152 */ 153 153 154 /** 155 * Query CSAM state (enabled/disabled) 156 * 157 * @returns 0 - disabled, 1 - enabled 158 * @param pVM The VM to operate on. 159 */ 160 VMMR3DECL(int) CSAMR3IsEnabled(PVM pVM); 154 VMMR3DECL(bool) CSAMR3IsEnabled(PUVM pUVM); 161 155 162 156 /** -
trunk/include/VBox/vmm/dbgf.h
r43394 r44373 300 300 VMMR3DECL(int) DBGFR3Step(PVM pVM, VMCPUID idCpu); 301 301 VMMR3DECL(int) DBGFR3PrgStep(PVMCPU pVCpu); 302 VMMR3DECL(int) DBGFR3InjectNMI(PUVM pUVM, VMCPUID idCpu); 302 303 303 304 #endif /* IN_RING3 */ -
trunk/include/VBox/vmm/em.h
r44340 r44373 225 225 * @{ 226 226 */ 227 228 VMMR3DECL(bool) EMR3IsRawRing3Enabled(PUVM pUVM); 229 VMMR3DECL(bool) EMR3IsRawRing0Enabled(PUVM pUVM); 230 227 231 VMMR3DECL(int) EMR3Init(PVM pVM); 228 232 VMMR3DECL(void) EMR3Relocate(PVM pVM); -
trunk/include/VBox/vmm/hm.h
r44195 r44373 1 1 /** @file 2 * HM - Intel/AMD VM Hardware SupportManager (VMM)2 * HM - Intel/AMD VM Hardware Assisted Virtualization Manager (VMM) 3 3 */ 4 4 5 5 /* 6 * Copyright (C) 2006-201 0Oracle Corporation6 * Copyright (C) 2006-2013 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 43 43 * 44 44 * @returns 0 - disabled, 1 - enabled 45 * @param pVM The VM to operate on. 45 * @param a_pVM Pointer to the shared VM structure. 46 * @internal 46 47 */ 47 #define HMIsEnabled( pVM) ((pVM)->fHMEnabled)48 #define HMIsEnabled(a_pVM) ((a_pVM)->fHMEnabled) 48 49 49 50 /** … … 51 52 * 52 53 * @returns boolean 53 * @param pCtx CPU context 54 * @param a_pVCpu Pointer to the shared virtual CPU structure. 55 * @internal 54 56 */ 55 #define HMCanEmulateIoBlock(pVCpu) (!CPUMIsGuestInPagedProtectedMode(pVCpu)) 56 #define HMCanEmulateIoBlockEx(pCtx) (!CPUMIsGuestInPagedProtectedModeEx(pCtx)) 57 #define HMCanEmulateIoBlock(a_pVCpu) (!CPUMIsGuestInPagedProtectedMode(a_pVCpu)) 57 58 58 VMMDECL(int) HMInvalidatePage(PVMCPU pVCpu, RTGCPTR GCVirt); 59 VMMDECL(bool) HMHasPendingIrq(PVM pVM); 60 VMMDECL(PX86PDPE) HMGetPaePdpes(PVMCPU pVCpu); 59 /** 60 * Check if the current CPU state is valid for emulating IO blocks in the recompiler 61 * 62 * @returns boolean 63 * @param a_pCtx Pointer to the CPU context (within PVM). 64 * @internal 65 */ 66 #define HMCanEmulateIoBlockEx(a_pCtx) (!CPUMIsGuestInPagedProtectedModeEx(a_pCtx)) 67 68 VMM_INT_DECL(int) HMInvalidatePage(PVMCPU pVCpu, RTGCPTR GCVirt); 69 VMM_INT_DECL(bool) HMHasPendingIrq(PVM pVM); 70 VMM_INT_DECL(PX86PDPE) HMGetPaePdpes(PVMCPU pVCpu); 61 71 62 72 #ifndef IN_RC 63 VMMDECL(int) HMFlushTLB(PVMCPU pVCpu); 64 VMMDECL(int) HMFlushTLBOnAllVCpus(PVM pVM); 65 VMMDECL(int) HMInvalidatePageOnAllVCpus(PVM pVM, RTGCPTR GCVirt); 66 VMMDECL(int) HMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys); 67 VMMDECL(bool) HMIsNestedPagingActive(PVM pVM); 68 VMMDECL(PGMMODE) HMGetShwPagingMode(PVM pVM); 69 #else 70 /* Nop in GC */ 73 VMM_INT_DECL(int) HMFlushTLB(PVMCPU pVCpu); 74 VMM_INT_DECL(int) HMFlushTLBOnAllVCpus(PVM pVM); 75 VMM_INT_DECL(int) HMInvalidatePageOnAllVCpus(PVM pVM, RTGCPTR GCVirt); 76 VMM_INT_DECL(int) HMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys); 77 VMM_INT_DECL(bool) HMIsNestedPagingActive(PVM pVM); 78 VMM_INT_DECL(PGMMODE) HMGetShwPagingMode(PVM pVM); 79 #else /* Nops in RC: */ 71 80 # define HMFlushTLB(pVCpu) do { } while (0) 72 81 # define HMIsNestedPagingActive(pVM) false … … 79 88 * @{ 80 89 */ 81 VMMR0 DECL(int)HMR0Init(void);82 VMMR0 DECL(int)HMR0Term(void);83 VMMR0 DECL(int)HMR0InitVM(PVM pVM);84 VMMR0 DECL(int)HMR0TermVM(PVM pVM);85 VMMR0 DECL(int)HMR0EnableAllCpus(PVM pVM);86 VMMR0 DECL(int)HMR0EnterSwitcher(PVM pVM, VMMSWITCHER enmSwitcher, bool *pfVTxDisabled);87 VMMR0 DECL(void)HMR0LeaveSwitcher(PVM pVM, bool fVTxDisabled);90 VMMR0_INT_DECL(int) HMR0Init(void); 91 VMMR0_INT_DECL(int) HMR0Term(void); 92 VMMR0_INT_DECL(int) HMR0InitVM(PVM pVM); 93 VMMR0_INT_DECL(int) HMR0TermVM(PVM pVM); 94 VMMR0_INT_DECL(int) HMR0EnableAllCpus(PVM pVM); 95 VMMR0_INT_DECL(int) HMR0EnterSwitcher(PVM pVM, VMMSWITCHER enmSwitcher, bool *pfVTxDisabled); 96 VMMR0_INT_DECL(void) HMR0LeaveSwitcher(PVM pVM, bool fVTxDisabled); 88 97 89 VMMR0DECL(void) HMR0SavePendingIOPortWrite(PVMCPU pVCpu, RTGCPTR GCPtrRip, RTGCPTR GCPtrRipNext, unsigned uPort, unsigned uAndVal, unsigned cbSize); 90 VMMR0DECL(void) HMR0SavePendingIOPortRead(PVMCPU pVCpu, RTGCPTR GCPtrRip, RTGCPTR GCPtrRipNext, unsigned uPort, unsigned uAndVal, unsigned cbSize); 98 VMMR0_INT_DECL(void) HMR0SavePendingIOPortWrite(PVMCPU pVCpu, RTGCPTR GCPtrRip, RTGCPTR GCPtrRipNext, 99 unsigned uPort, unsigned uAndVal, unsigned cbSize); 100 VMMR0_INT_DECL(void) HMR0SavePendingIOPortRead(PVMCPU pVCpu, RTGCPTR GCPtrRip, RTGCPTR GCPtrRipNext, 101 unsigned uPort, unsigned uAndVal, unsigned cbSize); 91 102 92 103 /** @} */ … … 99 110 * @{ 100 111 */ 101 VMMR3DECL(bool) HMR3IsEventPending(PVMCPU pVCpu); 102 VMMR3DECL(int) HMR3Init(PVM pVM); 103 VMMR3_INT_DECL(int) HMR3InitCompleted(PVM pVM, VMINITCOMPLETED enmWhat); 104 VMMR3DECL(void) HMR3Relocate(PVM pVM); 105 VMMR3DECL(int) HMR3Term(PVM pVM); 106 VMMR3DECL(void) HMR3Reset(PVM pVM); 107 VMMR3DECL(void) HMR3ResetCpu(PVMCPU pVCpu); 108 VMMR3DECL(void) HMR3CheckError(PVM pVM, int iStatusCode); 109 VMMR3DECL(bool) HMR3CanExecuteGuest(PVM pVM, PCPUMCTX pCtx); 110 VMMR3DECL(void) HMR3NotifyScheduled(PVMCPU pVCpu); 111 VMMR3DECL(void) HMR3NotifyEmulated(PVMCPU pVCpu); 112 VMMR3DECL(bool) HMR3IsActive(PVMCPU pVCpu); 113 VMMR3DECL(bool) HMR3IsNestedPagingActive(PVM pVM); 114 VMMR3DECL(bool) HMR3IsAllowed(PVM pVM); 115 VMMR3DECL(void) HMR3PagingModeChanged(PVM pVM, PVMCPU pVCpu, PGMMODE enmShadowMode, PGMMODE enmGuestMode); 116 VMMR3DECL(bool) HMR3IsVPIDActive(PVM pVM); 117 VMMR3DECL(int) HMR3InjectNMI(PVM pVM); 118 VMMR3DECL(int) HMR3EmulateIoBlock(PVM pVM, PCPUMCTX pCtx); 119 VMMR3DECL(VBOXSTRICTRC) HMR3RestartPendingIOInstr(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx); 120 VMMR3DECL(int) HMR3EnablePatching(PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem); 121 VMMR3DECL(int) HMR3DisablePatching(PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem); 122 VMMR3DECL(int) HMR3PatchTprInstr(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx); 123 VMMR3DECL(bool) HMR3IsRescheduleRequired(PVM pVM, PCPUMCTX pCtx); 124 VMMR3DECL(bool) HMR3IsVmxPreemptionTimerUsed(PVM pVM); 112 VMMR3DECL(bool) HMR3IsEnabled(PUVM pUVM); 113 VMMR3DECL(bool) HMR3IsNestedPagingActive(PUVM pUVM); 114 VMMR3DECL(bool) HMR3IsVpidActive(PUVM pVUM); 115 116 VMMR3_INT_DECL(bool) HMR3IsEventPending(PVMCPU pVCpu); 117 VMMR3_INT_DECL(int) HMR3Init(PVM pVM); 118 VMMR3_INT_DECL(int) HMR3InitCompleted(PVM pVM, VMINITCOMPLETED enmWhat); 119 VMMR3_INT_DECL(void) HMR3Relocate(PVM pVM); 120 VMMR3_INT_DECL(int) HMR3Term(PVM pVM); 121 VMMR3_INT_DECL(void) HMR3Reset(PVM pVM); 122 VMMR3_INT_DECL(void) HMR3ResetCpu(PVMCPU pVCpu); 123 VMMR3_INT_DECL(void) HMR3CheckError(PVM pVM, int iStatusCode); 124 VMMR3DECL(bool) HMR3CanExecuteGuest(PVM pVM, PCPUMCTX pCtx); 125 VMMR3_INT_DECL(void) HMR3NotifyScheduled(PVMCPU pVCpu); 126 VMMR3_INT_DECL(void) HMR3NotifyEmulated(PVMCPU pVCpu); 127 VMMR3_INT_DECL(bool) HMR3IsActive(PVMCPU pVCpu); 128 VMMR3_INT_DECL(bool) HMR3IsAllowed(PVM pVM); 129 VMMR3_INT_DECL(void) HMR3PagingModeChanged(PVM pVM, PVMCPU pVCpu, PGMMODE enmShadowMode, PGMMODE enmGuestMode); 130 VMMR3_INT_DECL(int) HMR3EmulateIoBlock(PVM pVM, PCPUMCTX pCtx); 131 VMMR3_INT_DECL(VBOXSTRICTRC) HMR3RestartPendingIOInstr(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx); 132 VMMR3_INT_DECL(int) HMR3EnablePatching(PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem); 133 VMMR3_INT_DECL(int) HMR3DisablePatching(PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem); 134 VMMR3_INT_DECL(int) HMR3PatchTprInstr(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx); 135 VMMR3_INT_DECL(bool) HMR3IsRescheduleRequired(PVM pVM, PCPUMCTX pCtx); 136 VMMR3_INT_DECL(bool) HMR3IsVmxPreemptionTimerUsed(PVM pVM); 125 137 126 138 /** @} */ … … 131 143 * @{ 132 144 */ 133 VMMR0DECL(int) HMR0SetupVM(PVM pVM); 134 VMMR0DECL(int) HMR0RunGuestCode(PVM pVM, PVMCPU pVCpu); 135 VMMR0DECL(int) HMR0Enter(PVM pVM, PVMCPU pVCpu); 136 VMMR0DECL(int) HMR0Leave(PVM pVM, PVMCPU pVCpu); 137 VMMR0DECL(int) HMR0InvalidatePage(PVM pVM, PVMCPU pVCpu); 138 VMMR0DECL(int) HMR0FlushTLB(PVM pVM); 139 VMMR0DECL(bool) HMR0SuspendPending(void); 145 VMMR0_INT_DECL(int) HMR0SetupVM(PVM pVM); 146 VMMR0_INT_DECL(int) HMR0RunGuestCode(PVM pVM, PVMCPU pVCpu); 147 VMMR0_INT_DECL(int) HMR0Enter(PVM pVM, PVMCPU pVCpu); 148 VMMR0_INT_DECL(int) HMR0Leave(PVM pVM, PVMCPU pVCpu); 149 VMMR0_INT_DECL(bool) HMR0SuspendPending(void); 140 150 141 151 # if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) 142 VMMR0 DECL(int)HMR0SaveFPUState(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx);143 VMMR0 DECL(int)HMR0SaveDebugState(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx);144 VMMR0 DECL(int)HMR0TestSwitcher3264(PVM pVM);152 VMMR0_INT_DECL(int) HMR0SaveFPUState(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx); 153 VMMR0_INT_DECL(int) HMR0SaveDebugState(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx); 154 VMMR0_INT_DECL(int) HMR0TestSwitcher3264(PVM pVM); 145 155 # endif 146 156
Note:
See TracChangeset
for help on using the changeset viewer.