Searched defs:pVM (Results 26 - 50 of 233) sorted by relevance

12345678910

/vbox/src/VBox/VMM/VMMR3/
H A DDBGFCpu.cpp38 * @param pVM Pointer to the VM.
42 static DECLCALLBACK(int) dbgfR3CpuGetMode(PVM pVM, VMCPUID idCpu, CPUMMODE *penmMode) argument
44 Assert(idCpu == VMMGetCpuId(pVM));
45 PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu);
61 VM_ASSERT_VALID_EXT_RETURN(pUVM->pVM, CPUMMODE_INVALID);
62 AssertReturn(idCpu < pUVM->pVM->cCpus, CPUMMODE_INVALID);
65 int rc = VMR3ReqPriorityCallWaitU(pUVM, idCpu, (PFNRT)dbgfR3CpuGetMode, 3, pUVM->pVM, idCpu, &enmMode);
76 * @param pVM Pointer to the VM.
80 static DECLCALLBACK(int) dbgfR3CpuIn64BitCode(PVM pVM, VMCPUID idCpu, bool *pfIn64BitCode) argument
82 Assert(idCpu == VMMGetCpuId(pVM));
[all...]
H A DEMR3Dbg.cpp68 int emR3InitDbg(PVM pVM) argument
/vbox/include/VBox/vmm/
H A Dpdmpci.h356 PCIRAWR0DECL(int) PciRawR0ProcessReq(PSUPDRVSESSION pSession, PVM pVM, PPCIRAWSENDREQ pReq);
365 PCIRAWR0DECL(int) PciRawR0InitVM(PVM pVM); variable
370 PCIRAWR0DECL(void) PciRawR0TermVM(PVM pVM); variable
H A Dselm.h41 VMMDECL(RTSEL) SELMGetTrap8Selector(PVM pVM); variable
42 VMMDECL(void) SELMSetTrap8EIP(PVM pVM, uint32_t u32EIP);
43 VMMDECL(int) SELMGetRing1Stack(PVM pVM, uint32_t *pSS, PRTGCPTR32 pEsp);
44 VMMDECL(RTSEL) SELMGetHyperCS(PVM pVM); variable
45 VMMDECL(RTSEL) SELMGetHyperCS64(PVM pVM); variable
46 VMMDECL(RTSEL) SELMGetHyperDS(PVM pVM); variable
47 VMMDECL(RTSEL) SELMGetHyperTSS(PVM pVM); variable
48 VMMDECL(RTSEL) SELMGetHyperTSSTrap08(PVM pVM); variable
49 VMMDECL(RTRCPTR) SELMGetHyperGDT(PVM pVM); variable
50 VMMDECL(int) SELMGetTSSInfo(PVM pVM, PVMCP
90 VMMR3DECL(int) SELMR3Init(PVM pVM); variable
91 VMMR3DECL(int) SELMR3InitFinalize(PVM pVM); variable
92 VMMR3DECL(void) SELMR3Relocate(PVM pVM); variable
93 VMMR3DECL(int) SELMR3Term(PVM pVM); variable
94 VMMR3DECL(void) SELMR3Reset(PVM pVM); variable
102 VMMR3DECL(void) SELMR3DumpHyperGDT(PVM pVM); variable
103 VMMR3DECL(void) SELMR3DumpHyperLDT(PVM pVM); variable
104 VMMR3DECL(void) SELMR3DumpGuestGDT(PVM pVM); variable
105 VMMR3DECL(void) SELMR3DumpGuestLDT(PVM pVM); variable
106 VMMR3DECL(bool) SELMR3CheckTSS(PVM pVM); variable
107 VMMR3DECL(int) SELMR3DebugCheck(PVM pVM); variable
109 VMMR3DECL(bool) SELMR3CheckShadowTR(PVM pVM); variable
[all...]
H A Dgvm.h41 /** VCPU id (0 - (pVM->cCpus - 1). */
81 PVM pVM; member in struct:GVM
H A Dpdmqueue.h109 * @param pVM The VM handle.
114 typedef DECLCALLBACK(bool) FNPDMQUEUEINT(PVM pVM, PPDMQUEUEITEMCORE pItem);
133 VMMR3_INT_DECL(int) PDMR3QueueCreateDevice(PVM pVM, PPDMDEVINS pDevIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval,
135 VMMR3_INT_DECL(int) PDMR3QueueCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval,
137 VMMR3_INT_DECL(int) PDMR3QueueCreateInternal(PVM pVM, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval,
139 VMMR3_INT_DECL(int) PDMR3QueueCreateExternal(PVM pVM, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval,
142 VMMR3_INT_DECL(int) PDMR3QueueDestroyDevice(PVM pVM, PPDMDEVINS pDevIns);
143 VMMR3_INT_DECL(int) PDMR3QueueDestroyDriver(PVM pVM, PPDMDRVINS pDrvIns);
144 VMMR3_INT_DECL(void) PDMR3QueueFlushAll(PVM pVM); variable
H A Dtrpm.h97 VMMR3DECL(int) TRPMR3Init(PVM pVM); variable
98 VMMR3DECL(void) TRPMR3Relocate(PVM pVM, RTGCINTPTR offDelta);
100 VMMR3DECL(void) TRPMR3Reset(PVM pVM); variable
101 VMMR3DECL(int) TRPMR3Term(PVM pVM); variable
102 VMMR3DECL(int) TRPMR3InjectEvent(PVM pVM, PVMCPU pVCpu, TRPMEVENT enmEvent);
104 VMMR3_INT_DECL(int) TRPMR3GetImportRC(PVM pVM, const char *pszSymbol, PRTRCPTR pRCPtrValue);
105 VMMR3DECL(int) TRPMR3SyncIDT(PVM pVM, PVMCPU pVCpu);
106 VMMR3DECL(bool) TRPMR3IsGateHandler(PVM pVM, RTRCPTR GCPtr);
107 VMMR3DECL(uint32_t) TRPMR3QueryGateByHandler(PVM pVM, RTRCPTR GCPtr);
108 VMMR3DECL(int) TRPMR3EnableGuestTrapHandler(PVM pVM, unsigne
143 VMMR0DECL(void) TRPMR0DispatchHostInterrupt(PVM pVM); variable
[all...]
/vbox/src/VBox/VMM/VMMRC/
H A DCPUMRC.cpp39 DECLCALLBACK(int) cpumRCHandleNPAndGP(PVM pVM, PCPUMCTXCORE pRegFrame, uintptr_t uUser);
48 * @param pVM Pointer to the VM.
53 DECLCALLBACK(int) cpumRCHandleNPAndGP(PVM pVM, PCPUMCTXCORE pRegFrame, uintptr_t uUser) argument
68 TRPMGCHyperReturnToHost(pVM, VINF_EM_RAW_STALE_SELECTOR);
72 TRPMGCHyperReturnToHost(pVM, VINF_EM_RAW_IRET_TRAP);
85 * @param pVM The VM handle.
87 DECLASM(void) CPUMRCAssertPreExecutionSanity(PVM pVM) argument
92 PVMCPU pVCpu = VMMGetCpu0(pVM);
96 bool const fPatch = PATMIsPatchGCAddr(pVM, pCtx->eip);
148 && EMIsRawRing1Enabled(pVCpu->CTX_SUFF(pVM)) )
[all...]
H A DCSAMRC.cpp56 * @param pVM Pointer to the VM.
64 VMMRCDECL(int) CSAMGCCodePageWriteHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPTR pvRange, uintptr_t offRange) argument
67 bool fPatchCode = PATMIsPatchGCAddr(pVM, pRegFrame->eip);
69 PVMCPU pVCpu = VMMGetCpu0(pVM);
72 Assert(pVM->csam.s.cDirtyPages < CSAM_MAX_DIRTY_PAGES);
76 REMFlushTBs(pVM);
79 pPATMGCState = PATMGetGCState(pVM);
111 rc = PATMRCHandleWriteToPatchPage(pVM, pRegFrame, (RTRCPTR)((RTRCUINTPTR)pvRange + offRange), 4 /** @todo */);
116 STAM_COUNTER_INC(&pVM->csam.s.StatDangerousWrite);
125 pVM
[all...]
H A DMMRamRC.cpp40 static DECLCALLBACK(int) mmGCRamTrap0eHandler(PVM pVM, PCPUMCTXCORE pRegFrame);
54 * @param pVM Pointer to the VM.
56 VMMRCDECL(void) MMGCRamRegisterTrapHandler(PVM pVM) argument
58 TRPMGCSetTempHandler(pVM, 0xe, mmGCRamTrap0eHandler);
66 * @param pVM Pointer to the VM.
68 VMMRCDECL(void) MMGCRamDeregisterTrapHandler(PVM pVM) argument
70 TRPMGCSetTempHandler(pVM, 0xe, NULL);
78 * @param pVM Pointer to the VM.
83 VMMRCDECL(int) MMGCRamRead(PVM pVM, void *pDst, void *pSrc, size_t cb) argument
86 PVMCPU pVCpu = VMMGetCpu0(pVM);
142 MMGCRamWrite(PVM pVM, void *pDst, void *pSrc, size_t cb) argument
167 mmGCRamTrap0eHandler(PVM pVM, PCPUMCTXCORE pRegFrame) argument
[all...]
H A DTRPMRC.cpp49 * @param pVM Pointer to the VM.
53 VMMRCDECL(int) TRPMGCSetTempHandler(PVM pVM, unsigned iTrap, PFNTRPMGCTRAPHANDLER pfnHandler) argument
58 if (iTrap >= RT_ELEMENTS(pVM->trpm.s.aTmpTrapHandlers))
67 pVM->trpm.s.aTmpTrapHandlers[iTrap] = (RTRCPTR)(uintptr_t)pfnHandler;
78 * @param pVM Pointer to the VM.
81 VMMRCDECL(void) TRPMGCHyperReturnToHost(PVM pVM, int rc) argument
83 PVMCPU pVCpu = VMMGetCpu0(pVM);
87 VMMGCGuestToHost(pVM, rc);
96 * @param pVM Pointer to the VM.
104 VMMRCDECL(int) trpmRCGuestIDTWriteHandler(PVM pVM, RTGCUIN argument
167 trpmRCShadowIDTWriteHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPTR pvRange, uintptr_t offRange) argument
[all...]
/vbox/src/VBox/VMM/VMMRZ/
H A DDBGFRZ.cpp40 * @param pVM Pointer to the VM.
46 VMMRZ_INT_DECL(int) DBGFRZTrap01Handler(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, RTGCUINTREG uDr6, bool fAltStepping) argument
61 for (unsigned iBp = 0; iBp < RT_ELEMENTS(pVM->dbgf.s.aHwBreakpoints); iBp++)
64 && pVM->dbgf.s.aHwBreakpoints[iBp].enmType == DBGFBPTYPE_REG)
66 pVCpu->dbgf.s.iActiveBp = pVM->dbgf.s.aHwBreakpoints[iBp].iBp;
69 pVM->dbgf.s.aHwBreakpoints[iBp].iBp, pRegFrame->cs.Sel, pRegFrame->rip));
110 * @param pVM Pointer to the VM.
114 VMMRZ_INT_DECL(int) DBGFRZTrap03Handler(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame) argument
126 if (pVM->dbgf.s.cBreakpoints > 0)
138 for (unsigned iBp = 0; iBp < RT_ELEMENTS(pVM
[all...]
H A DVMMRZ.cpp41 * @param pVM Pointer to the VM.
46 VMMRZDECL(int) VMMRZCallRing3(PVM pVM, PVMCPU pVCpu, VMMCALLRING3 enmOperation, uint64_t uArg) argument
71 RTStrPrintf(g_szRTAssertMsg1, sizeof(pVM->vmm.s.szRing0AssertMsg1),
74 RTStrPrintf(pVM->vmm.s.szRing0AssertMsg1, sizeof(pVM->vmm.s.szRing0AssertMsg1),
87 pVM->vmm.s.pfnRCToHost(VINF_VMM_CALL_HOST);
112 * @param pVM Pointer to the VM.
116 VMMRZDECL(int) VMMRZCallRing3NoCpu(PVM pVM, VMMCALLRING3 enmOperation, uint64_t uArg) argument
118 return VMMRZCallRing3(pVM, VMMGetCpu(pVM), enmOperatio
[all...]
/vbox/src/VBox/VMM/include/
H A DIOMInline.h32 * @param pVM Pointer to the VM.
35 DECLINLINE(CTX_SUFF(PIOMIOPORTRANGE)) iomIOPortGetRange(PVM pVM, RTIOPORT Port) argument
37 Assert(IOM_IS_SHARED_LOCK_OWNER(pVM));
38 return (CTX_SUFF(PIOMIOPORTRANGE))RTAvlroIOPortRangeGet(&pVM->iom.s.CTX_SUFF(pTrees)->CTX_SUFF(IOPortTree), Port);
48 * @param pVM Pointer to the VM.
51 DECLINLINE(PIOMIOPORTRANGER3) iomIOPortGetRangeR3(PVM pVM, RTIOPORT Port) argument
53 Assert(IOM_IS_SHARED_LOCK_OWNER(pVM));
54 return (PIOMIOPORTRANGER3)RTAvlroIOPortRangeGet(&pVM->iom.s.CTX_SUFF(pTrees)->IOPortTreeR3, Port);
64 * @param pVM Pointer to the VM.
68 DECLINLINE(PIOMMMIORANGE) iomMmioGetRange(PVM pVM, PVMCP argument
[all...]
H A DSELMInline.h176 * @param pVM The VM handle.
179 DECL_FORCE_INLINE(void) selmGuestToShadowDesc(PVM pVM, PX86DESC pDesc) argument
208 && EMIsRawRing1Enabled(pVM)
/vbox/src/VBox/VMM/include/internal/
H A Dpgm.h64 VMMDECL(PGMPAGETYPE) PGMPhysGetPageType(PVM pVM, RTGCPHYS GCPhys);
66 VMMDECL(int) PGMPhysGCPhys2HCPhys(PVM pVM, RTGCPHYS GCPhys, PRTHCPHYS pHCPhys);
68 VMMDECL(int) PGMPhysGCPhys2CCPtr(PVM pVM, RTGCPHYS GCPhys, void **ppv, PPGMPAGEMAPLOCK pLock);
69 VMMDECL(int) PGMPhysGCPhys2CCPtrReadOnly(PVM pVM, RTGCPHYS GCPhys, void const **ppv, PPGMPAGEMAPLOCK pLock);
72 VMMR3DECL(void) PGMR3ResetNoMorePhysWritesFlag(PVM pVM); variable
/vbox/src/VBox/VMM/testcase/
H A DtstVMM-HM.cpp38 VMMR3DECL(int) VMMDoHmTest(PVM pVM); variable
41 static DECLCALLBACK(int) tstVmmHmConfigConstructor(PUVM pUVM, PVM pVM, void *pvUser) argument
49 PCFGMNODE pRoot = CFGMR3GetRoot(pVM);
85 PVM pVM; local
87 int rc = VMR3Create(1, NULL, NULL, NULL, tstVmmHmConfigConstructor, NULL, &pVM, &pUVM);
94 rc = VMR3ReqCallWaitU(pUVM, VMCPUID_ANY, (PFNRT)VMMDoHmTest, 1, pVM);
H A DtstVMMFork.cpp41 VMMR3DECL(int) VMMDoTest(PVM pVM); variable
68 PVM pVM; local
70 int rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM, &pUVM);
135 VMR3ReqCallWaitU(pUVM, VMCPUID_ANY, (PFNRT)VMMDoTest, 1, pVM);
H A DtstVMStructSize.cpp258 PVM pVM = NULL; NOREF(pVM); local
259 if ((RT_OFFSETOF(VM, selm.s.Tss) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.Tss))
265 if ((RT_OFFSETOF(VM, selm.s.TssTrap08) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.TssTrap08))
/vbox/src/VBox/VMM/VMMAll/
H A DGIMAll.cpp38 * @param pVM Pointer to the VM.
40 VMMDECL(bool) GIMIsEnabled(PVM pVM) argument
42 return pVM->gim.s.enmProviderId != GIMPROVIDERID_NONE;
50 * @param pVM Pointer to the VM.
52 VMMDECL(GIMPROVIDERID) GIMGetProvider(PVM pVM) argument
54 return pVM->gim.s.enmProviderId;
66 PVM pVM = pVCpu->CTX_SUFF(pVM); local
67 if (!GIMIsEnabled(pVM))
70 switch (pVM
93 PVM pVM = pVCpu->CTX_SUFF(pVM); local
124 GIMIsParavirtTscEnabled(PVM pVM) argument
155 PVM pVM = pVCpu->CTX_SUFF(pVM); local
180 PVM pVM = pVCpu->CTX_SUFF(pVM); local
209 PVM pVM = pVCpu->CTX_SUFF(pVM); local
246 PVM pVM = pVCpu->CTX_SUFF(pVM); local
[all...]
H A DGIMAllHv.cpp46 PVM pVM = pVCpu->CTX_SUFF(pVM); local
47 if (!MSR_GIM_HV_HYPERCALL_IS_ENABLED(pVM->gim.s.u.Hv.u64HypercallMsr))
64 return MSR_GIM_HV_HYPERCALL_IS_ENABLED(pVCpu->CTX_SUFF(pVM)->gim.s.u.Hv.u64HypercallMsr);
73 * @param pVM Pointer to the VM.
75 VMM_INT_DECL(bool) gimHvIsParavirtTscEnabled(PVM pVM) argument
77 return MSR_GIM_HV_REF_TSC_IS_ENABLED(pVM->gim.s.u.Hv.u64TscPageMsr);
96 PVM pVM = pVCpu->CTX_SUFF(pVM); local
97 PGIMHV pHv = &pVM
186 PVM pVM = pVCpu->CTX_SUFF(pVM); local
[all...]
H A DMMAllPagePool.cpp57 VM_ASSERT_EMT(pPool->pVM);
83 * @param pVM Pointer to the VM.
88 VMMDECL(int) MMPagePhys2PageEx(PVM pVM, RTHCPHYS HCPhysPage, void **ppvPage) argument
90 void *pvPage = mmPagePoolPhys2Ptr(pVM->mm.s.CTX_SUFF(pPagePool), HCPhysPage);
93 pvPage = mmPagePoolPhys2Ptr(pVM->mm.s.CTX_SUFF(pPagePoolLow), HCPhysPage);
96 STAM_COUNTER_INC(&pVM->mm.s.CTX_SUFF(pPagePool)->cErrors);
114 * @param pVM Pointer to the VM.
118 VMMDECL(void *) MMPagePhys2Page(PVM pVM, RTHCPHYS HCPhysPage) argument
120 void *pvPage = mmPagePoolPhys2Ptr(pVM->mm.s.CTX_SUFF(pPagePool), HCPhysPage);
123 pvPage = mmPagePoolPhys2Ptr(pVM
145 MMPagePhys2PageTry(PVM pVM, RTHCPHYS HCPhysPage, void **ppvPage) argument
209 MMPage2Phys(PVM pVM, void *pvPage) argument
[all...]
H A DPDMAllQueue.cpp50 Assert(VALID_PTR(pQueue) && pQueue->CTX_SUFF(pVM));
76 PVM pVM = pQueue->CTX_SUFF(pVM); local
77 Log2(("PDMQueueInsert: VM_FF_PDM_QUEUES %d -> 1\n", VM_FF_IS_SET(pVM, VM_FF_PDM_QUEUES)));
78 VM_FF_SET(pVM, VM_FF_PDM_QUEUES);
79 ASMAtomicBitSet(&pVM->pdm.s.fQueueFlushing, PDM_QUEUE_FLUSH_FLAG_PENDING_BIT);
82 REMR3NotifyQueuePending(pVM); /** @todo r=bird: we can remove REMR3NotifyQueuePending and let VMR3NotifyFF do the work. */
84 VMR3NotifyGlobalFFU(pVM->pUVM, VMNOTIFYFF_FLAGS_DONE_REM);
100 Assert(VALID_PTR(pQueue) && pQueue->CTX_SUFF(pVM));
142 PVM pVM local
[all...]
H A DVMAll.cpp42 * return VM_SET_ERROR(pVM, VERR_OF_YOUR_CHOICE, "descriptive message");
44 * @param pVM Pointer to the VM. Must be non-NULL.
51 VMMDECL(int) VMSetError(PVM pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) argument
55 int rc2 = VMSetErrorV(pVM, rc, RT_SRC_POS_ARGS, pszFormat, args); Assert(rc == rc2); NOREF(rc2);
66 * return VM_SET_ERROR(pVM, VERR_OF_YOUR_CHOICE, "descriptive message");
68 * @param pVM Pointer to the VM. Must be non-NULL.
75 VMMDECL(int) VMSetErrorV(PVM pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list args) argument
83 VMR3ReqPriorityCallWait(pVM, VMCPUID_ANY, (PFNRT)vmR3SetErrorUV, 7, /* ASSUMES 3 source pos args! */
84 pVM->pUVM, rc, RT_SRC_POS_ARGS, pszFormat, &va2);
91 vmSetErrorCopy(pVM, r
112 vmSetErrorCopy(PVM pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list args) argument
207 VMSetRuntimeError(PVM pVM, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...) argument
232 VMSetRuntimeErrorV(PVM pVM, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va) argument
308 vmSetRuntimeErrorCopy(PVM pVM, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va) argument
[all...]
/vbox/src/VBox/VMM/VMMR0/
H A DPGMR0SharedPage.cpp41 * @param pVM Pointer to the VM.
49 VMMR0DECL(int) PGMR0SharedModuleCheck(PVM pVM, PGVM pGVM, VMCPUID idCpu, PGMMSHAREDMODULE pModule, PCRTGCPTR64 paRegionsGCPtrs) argument
51 PVMCPU pVCpu = &pVM->aCpus[idCpu];
59 PGM_LOCK_ASSERT_OWNER(pVM); /* This cannot fail as we grab the lock in pgmR3SharedModuleRegRendezvous before calling into ring-0. */
79 PPGMPAGE pPage = pgmPhysGetPage(pVM, GCPhys);
108 rc = pgmPoolTrackUpdateGCPhys(pVM, PageDesc.GCPhys, pPage, true /* clear the entries */, &fFlush);
119 PGM_PAGE_SET_HCPHYS(pVM, pPage, PageDesc.HCPhys);
120 PGM_PAGE_SET_PAGEID(pVM, pPage, PageDesc.idPage);
123 pgmPhysInvalidatePageMapTLBEntry(pVM, PageDesc.GCPhys);
124 pVM
[all...]

Completed in 423 milliseconds

12345678910