Searched defs:pVM (Results 1 - 25 of 233) sorted by relevance

12345678910

/vbox/src/VBox/VMM/VMMR0/
H A DHMSVMR0.h42 VMMR0DECL(int) SVMR0Enter(PVM pVM, PVMCPU pVCpu, PHMGLOBALCPUINFO pCpu);
44 VMMR0DECL(int) SVMR0EnableCpu(PHMGLOBALCPUINFO pCpu, PVM pVM, void *pvPageCpu, RTHCPHYS HCPhysCpuPage, bool fEnabledBySystem,
47 VMMR0DECL(int) SVMR0InitVM(PVM pVM); variable
48 VMMR0DECL(int) SVMR0TermVM(PVM pVM); variable
49 VMMR0DECL(int) SVMR0SetupVM(PVM pVM); variable
50 VMMR0DECL(int) SVMR0RunGuestCode(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx);
51 VMMR0DECL(int) SVMR0SaveHostState(PVM pVM, PVMCPU pVCpu);
54 DECLASM(int) SVMR0VMSwitcherRun64(RTHCPHYS pVMCBHostPhys, RTHCPHYS pVMCBPhys, PCPUMCTX pCtx, PVM pVM, PVMCPU pVCpu);
55 VMMR0DECL(int) SVMR0Execute64BitsHandler(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, HM64ON32OP enmOp, uint32_t cbParam,
66 * @param pVM Pointe
[all...]
H A DTRPMR0.cpp36 * @param pVM Pointer to the VM.
39 VMMR0DECL(void) TRPMR0DispatchHostInterrupt(PVM pVM) argument
44 PVMCPU pVCpu = VMMGetCpu0(pVM);
H A DGIMR0.cpp33 * @param pVM Pointer to the VM.
35 VMMR0_INT_DECL(int) GIMR0InitVM(PVM pVM) argument
37 if (!GIMIsEnabled(pVM))
40 switch (pVM->gim.s.enmProviderId)
43 return gimR0HvInitVM(pVM);
56 * @param pVM Pointer to the VM.
58 VMMR0_INT_DECL(int) GIMR0TermVM(PVM pVM) argument
60 if (!GIMIsEnabled(pVM))
63 switch (pVM->gim.s.enmProviderId)
66 return gimR0HvTermVM(pVM);
91 GIMR0UpdateParavirtTsc(PVM pVM, uint64_t u64Offset) argument
[all...]
H A DPDMR0Driver.cpp36 * @param pVM Pointer to the VM (for validation).
39 VMMR0_INT_DECL(int) PDMR0DriverCallReqHandler(PVM pVM, PPDMDRIVERCALLREQHANDLERREQ pReq) argument
44 AssertPtrReturn(pVM, VERR_INVALID_POINTER);
50 AssertReturn(pDrvIns->Internal.s.pVMR0 == pVM, VERR_INVALID_PARAMETER);
H A DHMVMXR0.h31 VMMR0DECL(int) VMXR0Enter(PVM pVM, PVMCPU pVCpu, PHMGLOBALCPUINFO pCpu);
33 VMMR0DECL(int) VMXR0EnableCpu(PHMGLOBALCPUINFO pCpu, PVM pVM, void *pvPageCpu, RTHCPHYS pPageCpuPhys, bool fEnabledBySystem,
38 VMMR0DECL(int) VMXR0InitVM(PVM pVM); variable
39 VMMR0DECL(int) VMXR0TermVM(PVM pVM); variable
40 VMMR0DECL(int) VMXR0SetupVM(PVM pVM); variable
41 VMMR0DECL(int) VMXR0SaveHostState(PVM pVM, PVMCPU pVCpu);
42 VMMR0DECL(int) VMXR0RunGuestCode(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx);
43 DECLASM(int) VMXR0StartVM32(RTHCUINT fResume, PCPUMCTX pCtx, PVMCSCACHE pCache, PVM pVM, PVMCPU pVCpu);
44 DECLASM(int) VMXR0StartVM64(RTHCUINT fResume, PCPUMCTX pCtx, PVMCSCACHE pCache, PVM pVM, PVMCPU pVCpu);
48 DECLASM(int) VMXR0SwitcherStartVM64(RTHCUINT fResume, PCPUMCTX pCtx, PVMCSCACHE pCache, PVM pVM, PVMCP
[all...]
H A DGIMR0Hv.cpp90 * @param pVM Pointer to the VM.
94 VMM_INT_DECL(int) gimR0HvUpdateParavirtTsc(PVM pVM, uint64_t u64Offset) argument
96 Assert(GIMIsEnabled(pVM));
97 bool fHvTscEnabled = MSR_GIM_HV_REF_TSC_IS_ENABLED(pVM->gim.s.u.Hv.u64TscPageMsr);
101 PCGIMHV pcHv = &pVM->gim.s.u.Hv;
109 uint64_t u64Tsc100Ns = TMCpuTicksPerSecond(pVM) / RT_NS_10MS;
138 * @param pVM Pointer to the VM.
140 VMMR0_INT_DECL(int) gimR0HvInitVM(PVM pVM) argument
142 AssertPtr(pVM);
143 Assert(GIMIsEnabled(pVM));
159 gimR0HvTermVM(PVM pVM) argument
[all...]
/vbox/src/VBox/VMM/include/
H A DGIMMinimalInternal.h27 VMMR3_INT_DECL(int) gimR3MinimalInit(PVM pVM); variable
28 VMMR3_INT_DECL(int) gimR3MinimalInitCompleted(PVM pVM); variable
29 VMMR3_INT_DECL(void) gimR3MinimalRelocate(PVM pVM, RTGCINTPTR offDelta);
H A DPDMInline.h25 * @param pVM Pointer to the VM.
28 DECLINLINE(uint32_t) pdmCalcIrqTag(PVM pVM, uint32_t idTracer) argument
30 uint32_t uTag = (pVM->pdm.s.uIrqTag + 1) & 0x3ff; /* {0..1023} */
33 pVM->pdm.s.uIrqTag = uTag |= (idTracer << 16);
H A DEMHandleRCTmpl.h35 * @param pVM Pointer to the VM.
41 int emR3RawHandleRC(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int rc) argument
43 int emR3HmHandleRC(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int rc)
68 rc = emR3RawPrivileged(pVM, pVCpu);
75 if (PATMR3IsInsidePatchJump(pVM, pCtx->eip, NULL))
81 rc = emR3RawGuestTrap(pVM, pVCpu);
89 rc = emR3RawPatchTrap(pVM, pVCpu, pCtx, rc);
93 Assert(PATMIsPatchGCAddr(pVM, pCtx->eip));
94 rc = PATMR3DuplicateFunctionRequest(pVM, pCtx);
100 rc = PATMR3HandleMonitoredPage(pVM);
[all...]
/vbox/src/VBox/VMM/VMMAll/
H A DTMAllReal.cpp33 * @param pVM Pointer to the VM.
35 VMM_INT_DECL(uint64_t) TMRealGet(PVM pVM) argument
37 NOREF(pVM);
46 * @param pVM Pointer to the VM.
48 VMM_INT_DECL(uint64_t) TMRealGetFreq(PVM pVM) argument
50 NOREF(pVM);
H A DFTMAll.cpp38 * @param pVM Pointer to the VM.
41 VMM_INT_DECL(int) FTMSetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType) argument
43 if (!pVM->fFaultTolerantMaster)
47 return FTMR3SetCheckpoint(pVM, enmType);
49 return VMMRZCallRing3(pVM, VMMGetCpu(pVM), VMMCALLRING3_FTM_SET_CHECKPOINT, enmType);
59 * @param pVM Pointer to the VM.
61 VMM_INT_DECL(bool) FTMIsDeltaLoadSaveActive(PVM pVM) argument
63 return pVM->ftm.s.fDeltaLoadSaveActive;
H A DCSAMAll.cpp51 * @param pVM Pointer to the VM.
54 VMM_INT_DECL(int) CSAMExecFault(PVM pVM, RTRCPTR pvFault) argument
56 Assert(!HMIsEnabled(pVM));
57 if (!CSAMIsEnabled(pVM))
60 LogFlow(("CSAMGCExecFault: for page %08X scanned=%d\n", pvFault, CSAMIsPageScanned(pVM, pvFault)));
62 if (CSAMIsPageScanned(pVM, pvFault))
65 STAM_COUNTER_ADD(&pVM->csam.s.StatNrKnownPagesGC, 1);
69 STAM_COUNTER_ADD(&pVM->csam.s.StatNrTraps, 1);
70 VMCPU_FF_SET(VMMGetCpu0(pVM), VMCPU_FF_CSAM_SCAN_PAGE);
79 * @param pVM Pointe
82 CSAMIsPageScanned(PVM pVM, RTRCPTR pPage) argument
111 CSAMMarkPage(PVM pVM, RTRCUINTPTR pPage, bool fScanned) argument
[all...]
H A DPGMAllHandler.cpp52 static int pgmHandlerPhysicalSetRamFlagsAndFlushShadowPTs(PVM pVM, PPGMPHYSHANDLER pCur, PPGMRAMRANGE pRam);
53 static void pgmHandlerPhysicalDeregisterNotifyREM(PVM pVM, PPGMPHYSHANDLER pCur);
54 static void pgmHandlerPhysicalResetRamFlags(PVM pVM, PPGMPHYSHANDLER pCur);
69 * @param pVM Pointer to the VM.
83 VMMDECL(int) PGMHandlerPhysicalRegisterEx(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS GCPhysLast, argument
111 || MMHyperR3ToRC(pVM, MMHyperRCToR3(pVM, pvUserRC)) == pvUserRC,
115 || MMHyperR3ToR0(pVM, MMHyperR0ToR3(pVM, pvUserR0)) == pvUserR0,
120 AssertReturn(pfnHandlerRC || HMIsEnabled(pVM), VERR_INVALID_PARAMETE
160 pgmLock(pVM); variable
170 pgmUnlock(pVM); variable
183 pgmUnlock(pVM); variable
[all...]
/vbox/src/VBox/VMM/VMMR3/
H A DPGMBth.h23 PGM_BTH_DECL(int, InitData)(PVM pVM, PPGMMODEDATA pModeData, bool fResolveGCAndR0);
42 * @param pVM Pointer to the VM.
47 PGM_BTH_DECL(int, InitData)(PVM pVM, PPGMMODEDATA pModeData, bool fResolveGCAndR0)
67 if (!HMIsEnabled(pVM))
71 rc = PDMR3LdrGetSymbolRC(pVM, NULL, PGM_BTH_NAME_RC_STR(Trap0eHandler), &pModeData->pfnRCBthTrap0eHandler);
73 rc = PDMR3LdrGetSymbolRC(pVM, NULL, PGM_BTH_NAME_RC_STR(InvalidatePage), &pModeData->pfnRCBthInvalidatePage);
75 rc = PDMR3LdrGetSymbolRC(pVM, NULL, PGM_BTH_NAME_RC_STR(SyncCR3), &pModeData->pfnRCBthSyncCR3);
77 rc = PDMR3LdrGetSymbolRC(pVM, NULL, PGM_BTH_NAME_RC_STR(PrefetchPage), &pModeData->pfnRCBthPrefetchPage);
79 rc = PDMR3LdrGetSymbolRC(pVM, NULL, PGM_BTH_NAME_RC_STR(VerifyAccessSyncPage),&pModeData->pfnRCBthVerifyAccessSyncPage);
82 rc = PDMR3LdrGetSymbolRC(pVM, NUL
135 PVM pVM = pVCpu->pVMR3; local
[all...]
H A DIEMR3.cpp40 * @param pVM The cross context VM structure.
42 VMMR3DECL(int) IEMR3Init(PVM pVM) argument
44 for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
46 PVMCPU pVCpu = &pVM->aCpus[idCpu];
50 pVCpu->iem.s.pCtxR0 = VM_R0_ADDR(pVM, pVCpu->iem.s.pCtxR3);
51 pVCpu->iem.s.pCtxRC = VM_RC_ADDR(pVM, pVCpu->iem.s.pCtxR3);
53 STAMR3RegisterF(pVM, &pVCpu->iem.s.cInstructions, STAMTYPE_U32, STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT,
55 STAMR3RegisterF(pVM, &pVCpu->iem.s.cPotentialExits, STAMTYPE_U32, STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT,
57 STAMR3RegisterF(pVM, &pVCpu->iem.s.cRetAspectNotImplemented, STAMTYPE_U32_RESET, STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT,
59 STAMR3RegisterF(pVM,
93 IEMR3Term(PVM pVM) argument
100 IEMR3Relocate(PVM pVM) argument
[all...]
H A DPGMPhysRWTmpl.h25 * @param pVM Pointer to the VM.
28 VMMDECL(PGMPHYS_DATATYPE) PGMPHYSFN_READNAME(PVM pVM, RTGCPHYS GCPhys) argument
30 Assert(VM_IS_EMT(pVM));
32 PGMPhysRead(pVM, GCPhys, &val, sizeof(val));
43 * @param pVM Pointer to the VM.
47 VMMDECL(void) PGMPHYSFN_WRITENAME(PVM pVM, RTGCPHYS GCPhys, PGMPHYS_DATATYPE val) argument
49 Assert(VM_IS_EMT(pVM));
50 PGMPhysWrite(pVM, GCPhys, &val, sizeof(val));
H A DGIMMinimal.cpp42 * @param pVM Pointer to the VM.
44 VMMR3_INT_DECL(int) gimR3MinimalInit(PVM pVM) argument
46 AssertReturn(pVM, VERR_INVALID_PARAMETER);
47 AssertReturn(pVM->gim.s.enmProviderId == GIMPROVIDERID_MINIMAL, VERR_INTERNAL_ERROR_5);
52 CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_HVP);
63 * @param pVM Pointer to the VM.
65 VMMR3_INT_DECL(int) gimR3MinimalInitCompleted(PVM pVM) argument
75 int rc = CPUMR3CpuIdGetLeaf(pVM, &HyperLeaf, 0x40000000, 0 /* uSubLeaf */);
79 rc = CPUMR3CpuIdInsert(pVM, &HyperLeaf);
88 rc = CPUMR3CpuIdGetLeaf(pVM,
133 gimR3MinimalRelocate(PVM pVM, RTGCINTPTR offDelta) argument
[all...]
/vbox/include/VBox/vmm/
H A Drem.h45 VMMDECL(void) REMNotifyInvalidatePage(PVM pVM, RTGCPTR GCPtrPage);
46 VMMDECL(void) REMNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler);
47 VMMDECL(void) REMNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
48 VMMDECL(void) REMNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
51 VMMDECL(void) REMNotifyHandlerPhysicalFlushIfAlmostFull(PVM pVM, PVMCPU pVCpu);
53 VMMDECL(void) REMFlushTBs(PVM pVM); variable
60 REMR3DECL(int) REMR3Init(PVM pVM); variable
61 REMR3DECL(int) REMR3InitFinalize(PVM pVM); variable
62 REMR3DECL(int) REMR3Term(PVM pVM); variable
63 REMR3DECL(void) REMR3Reset(PVM pVM); variable
74 REMR3DECL(void) REMR3ReplayHandlerNotifications(PVM pVM); variable
92 REMR3DECL(void) REMR3NotifyDmaPending(PVM pVM); variable
93 REMR3DECL(void) REMR3NotifyQueuePending(PVM pVM); variable
94 REMR3DECL(void) REMR3NotifyFF(PVM pVM); variable
[all...]
H A Dcsam.h63 VMM_INT_DECL(bool) CSAMDoesPageNeedScanning(PVM pVM, RTRCUINTPTR GCPtr);
64 VMM_INT_DECL(bool) CSAMIsPageScanned(PVM pVM, RTRCPTR pPage);
65 VMM_INT_DECL(int) CSAMMarkPage(PVM pVM, RTRCUINTPTR pPage, bool fScanned);
66 VMM_INT_DECL(void) CSAMMarkPossibleCodePage(PVM pVM, RTRCPTR GCPtr);
67 VMM_INT_DECL(int) CSAMEnableScanning(PVM pVM); variable
68 VMM_INT_DECL(int) CSAMDisableScanning(PVM pVM); variable
69 VMM_INT_DECL(int) CSAMExecFault(PVM pVM, RTRCPTR pvFault);
70 VMM_INT_DECL(bool) CSAMIsKnownDangerousInstr(PVM pVM, RTRCUINTPTR GCPtr);
81 VMMR3_INT_DECL(int) CSAMR3Init(PVM pVM); variable
82 VMMR3_INT_DECL(void) CSAMR3Relocate(PVM pVM, RTGCINTPT
83 VMMR3_INT_DECL(int) CSAMR3Term(PVM pVM); variable
84 VMMR3_INT_DECL(int) CSAMR3Reset(PVM pVM); variable
[all...]
H A Dftm.h50 VMM_INT_DECL(bool) FTMIsDeltaLoadSaveActive(PVM pVM); variable
51 VMM_INT_DECL(int) FTMSetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType);
60 VMMR3_INT_DECL(int) FTMR3Init(PVM pVM); variable
61 VMMR3_INT_DECL(int) FTMR3Term(PVM pVM); variable
62 VMMR3_INT_DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType);
H A Diem.h75 VMM_INT_DECL(int) IEMBreakpointSet(PVM pVM, RTGCPTR GCPtrBp);
76 VMM_INT_DECL(int) IEMBreakpointClear(PVM pVM, RTGCPTR GCPtrBp);
92 VMM_INT_DECL(void) IEMNotifyMMIORead(PVM pVM, RTGCPHYS GCPhys, size_t cbValue);
93 VMM_INT_DECL(void) IEMNotifyMMIOWrite(PVM pVM, RTGCPHYS GCPhys, uint32_t u32Value, size_t cbValue);
94 VMM_INT_DECL(void) IEMNotifyIOPortRead(PVM pVM, RTIOPORT Port, size_t cbValue);
95 VMM_INT_DECL(void) IEMNotifyIOPortWrite(PVM pVM, RTIOPORT Port, uint32_t u32Value, size_t cbValue);
96 VMM_INT_DECL(void) IEMNotifyIOPortReadString(PVM pVM, RTIOPORT Port, RTGCPTR GCPtrDst, RTGCUINTREG cTransfers, size_t cbValue);
97 VMM_INT_DECL(void) IEMNotifyIOPortWriteString(PVM pVM, RTIOPORT Port, RTGCPTR GCPtrSrc, RTGCUINTREG cTransfers, size_t cbValue);
104 VMMR3DECL(int) IEMR3Init(PVM pVM); variable
105 VMMR3DECL(int) IEMR3Term(PVM pVM); variable
106 VMMR3DECL(void) IEMR3Relocate(PVM pVM); variable
[all...]
H A Dpdmcritsect.h54 VMMR3_INT_DECL(int) PDMR3CritSectBothTerm(PVM pVM); variable
55 VMMR3_INT_DECL(void) PDMR3CritSectLeaveAll(PVM pVM); variable
59 VMMR3DECL(uint32_t) PDMR3CritSectCountOwned(PVM pVM, char *pszNames, size_t cbNames);
61 VMMR3DECL(int) PDMR3CritSectInit(PVM pVM, PPDMCRITSECT pCritSect, RT_SRC_POS_DECL, const char *pszNameFmt, ...);
80 VMMR3DECL(PPDMCRITSECT) PDMR3CritSectGetNop(PVM pVM); variable
81 VMMR3DECL(R0PTRTYPE(PPDMCRITSECT)) PDMR3CritSectGetNopR0(PVM pVM); variable
82 VMMR3DECL(RCPTRTYPE(PPDMCRITSECT)) PDMR3CritSectGetNopRC(PVM pVM); variable
/vbox/src/VBox/VMM/VMMRC/
H A DIOMRC.cpp63 * @param pVM The virtual machine handle.
68 VMMRCDECL(VBOXSTRICTRC) IOMRCIOPortHandler(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, PDISCPUSTATE pCpu) argument
73 return IOMInterpretIN(pVM, pVCpu, pRegFrame, pCpu);
76 return IOMInterpretOUT(pVM, pVCpu, pRegFrame, pCpu);
80 return IOMInterpretINS(pVM, pVCpu, pRegFrame, pCpu);
84 return IOMInterpretOUTS(pVM, pVCpu, pRegFrame, pCpu);
/vbox/src/VBox/Debugger/testcase/
H A DtstVBoxDbg.cpp47 PVM pVM; local
49 int rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM, &pUVM);
/vbox/src/VBox/ExtPacks/BusMouseSample/
H A DVBoxBusMouseMain.cpp79 static DECLCALLBACK(int) vboxBusMouseExtPack_VMConfigureVMM(PCVBOXEXTPACKREG pThis, IConsole *pConsole, PVM pVM) argument
90 PCFGMNODE pCfgRoot = CFGMR3GetRoot(pVM);
125 // static DECLCALLBACK(int) vboxSkeletonExtPack_VMPowerOn(PCVBOXEXTPACKREG pThis, IConsole *pConsole, PVM pVM);
129 // static DECLCALLBACK(void) vboxSkeletonExtPack_VMPowerOff(PCVBOXEXTPACKREG pThis, IConsole *pConsole, PVM pVM);

Completed in 141 milliseconds

12345678910