Changeset 91944 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Oct 21, 2021 1:02:36 PM (3 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r91735 r91944 2833 2833 # ifdef LOG_ENABLED 2834 2834 if (LogIsFlowEnabled()) 2835 ichac97R3DbgPrintBdl(pDevIns, pThis, pStream, DBGFR3InfoLogHlp(), "ichac97IoPortNabmWrite: ");2835 ichac97R3DbgPrintBdl(pDevIns, pThis, pStream, PDMDevHlpDBGFInfoLogHlp(pDevIns), "ichac97IoPortNabmWrite: "); 2836 2836 # endif 2837 2837 ichac97R3StreamEnable(pDevIns, pThis, pThisCC, pStream, pStreamCC, true /* fEnable */); -
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r91069 r91944 1925 1925 1926 1926 /* Save the common part */ 1927 int rc = vpciR3SaveExec(p Hlp, &pThis->VPCI, pSSM);1927 int rc = vpciR3SaveExec(pDevIns, pHlp, &pThis->VPCI, pSSM); 1928 1928 AssertRCReturn(rc, rc); 1929 1929 … … 1975 1975 LogRel(("%s: The mac address differs: config=%RTmac saved=%RTmac\n", INSTANCE(pThis), &pThis->macConfigured, &macConfigured)); 1976 1976 1977 rc = vpciR3LoadExec(p Hlp, &pThis->VPCI, pSSM, uVersion, uPass, VNET_N_QUEUES);1977 rc = vpciR3LoadExec(pDevIns, pHlp, &pThis->VPCI, pSSM, uVersion, uPass, VNET_N_QUEUES); 1978 1978 AssertRCReturn(rc, rc); 1979 1979 -
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r91921 r91944 597 597 { 598 598 VMMDevReqNtBugCheck const *pReq = (VMMDevReqNtBugCheck const *)pReqHdr; 599 DBGFR3ReportBugCheck(PDMDevHlpGetVM(pDevIns), PDMDevHlpGetVMCPU(pDevIns), DBGFEVENT_BSOD_VMMDEV,600 pReq->uBugCheck, pReq->auParameters[0], pReq->auParameters[1],601 pReq->auParameters[2], pReq->auParameters[3]);599 PDMDevHlpDBGFReportBugCheck(pDevIns, DBGFEVENT_BSOD_VMMDEV, 600 pReq->uBugCheck, pReq->auParameters[0], pReq->auParameters[1], 601 pReq->auParameters[2], pReq->auParameters[3]); 602 602 } 603 603 else if (pReqHdr->size == sizeof(VMMDevRequestHeader)) 604 604 { 605 605 LogRel(("VMMDev: NT BugCheck w/o data.\n")); 606 DBGFR3ReportBugCheck(PDMDevHlpGetVM(pDevIns), PDMDevHlpGetVMCPU(pDevIns), DBGFEVENT_BSOD_VMMDEV, 607 0, 0, 0, 0, 0); 606 PDMDevHlpDBGFReportBugCheck(pDevIns, DBGFEVENT_BSOD_VMMDEV, 0, 0, 0, 0, 0); 608 607 } 609 608 else … … 2631 2630 * Write the core file. 2632 2631 */ 2633 PUVM pUVM = PDMDevHlpGetUVM(pDevIns); 2634 return DBGFR3CoreWrite(pUVM, szCorePath, true /*fReplaceFile*/); 2632 return PDMDevHlpDBGFCoreWrite(pDevIns, szCorePath, true /*fReplaceFile*/); 2635 2633 } 2636 2634 -
trunk/src/VBox/Devices/VMMDev/VMMDevTesting.cpp
r90609 r91944 260 260 if (cchValueNm && pszRegNm && *pszRegNm) 261 261 { 262 PUVM pUVM = PDMDevHlpGetUVM(pDevIns); 263 PVM pVM = PDMDevHlpGetVM(pDevIns); 264 VMCPUID idCpu = VMMGetCpuId(pVM); 262 VMCPUID idCpu = PDMDevHlpGetCurrentCpuId(pDevIns); 265 263 uint64_t u64Value; 266 int rc2 = DBGFR3RegNmQueryU64(pUVM, idCpu, pszRegNm, &u64Value);264 int rc2 = PDMDevHlpDBGFRegNmQueryU64(pDevIns, idCpu, pszRegNm, &u64Value); 267 265 if (RT_SUCCESS(rc2)) 268 266 { … … 271 269 char szFormat[128], szValue[128]; 272 270 RTStrPrintf(szFormat, sizeof(szFormat), "%%VR{%s}", pszRegNm); 273 rc2 = DBGFR3RegPrintf(pUVM, idCpu, szValue, sizeof(szValue), szFormat);271 rc2 = PDMDevHlpDBGFRegPrintf(pDevIns, idCpu, szValue, sizeof(szValue), szFormat); 274 272 if (RT_SUCCESS(rc2)) 275 273 VMMDEV_TESTING_OUTPUT(("testing: VALUE '%s'%*s: %16s {reg=%s}%s\n", -
trunk/src/VBox/Devices/VirtIO/Virtio.cpp
r90447 r91944 693 693 694 694 # ifdef LOG_ENABLED 695 void vpciR3DumpState(P VPCISTATE pThis, const char *pcszCaller)695 void vpciR3DumpState(PPDMDEVINS pDevIns, PVPCISTATE pThis, const char *pcszCaller) 696 696 { 697 697 if (LogIs2Enabled()) 698 698 { 699 699 Log2(("vpciR3DumpState: (called from %s)\n", pcszCaller)); 700 vpciR3DumpStateWorker(pThis, DBGFR3InfoLogHlp());700 vpciR3DumpStateWorker(pThis, PDMDevHlpDBGFInfoLogHlp(pDevIns)); 701 701 } 702 702 } … … 709 709 * 710 710 * @returns VBox status code. 711 * @param pDevIns The device insatnce data. 711 712 * @param pHlp The device helpers. 712 713 * @param pThis The shared virtio core instance data. 713 714 * @param pSSM The handle to the saved state. 714 715 */ 715 int vpciR3SaveExec(P CPDMDEVHLPR3 pHlp, PVPCISTATE pThis, PSSMHANDLE pSSM)716 { 717 vpciR3DumpState(p This, "vpciR3SaveExec");716 int vpciR3SaveExec(PPDMDEVINS pDevIns, PCPDMDEVHLPR3 pHlp, PVPCISTATE pThis, PSSMHANDLE pSSM) 717 { 718 vpciR3DumpState(pDevIns, pThis, "vpciR3SaveExec"); 718 719 719 720 pHlp->pfnSSMPutU32(pSSM, pThis->uGuestFeatures); … … 741 742 * 742 743 * @returns VBox status code. 744 * @param pDevIns The device insatnce data. 743 745 * @param pHlp The device helpers. 744 746 * @param pThis The shared virtio core instance data. … … 748 750 * @param cQueues The default queue count (for old states). 749 751 */ 750 int vpciR3LoadExec(P CPDMDEVHLPR3 pHlp, PVPCISTATE pThis, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass, uint32_t cQueues)752 int vpciR3LoadExec(PPDMDEVINS pDevIns, PCPDMDEVHLPR3 pHlp, PVPCISTATE pThis, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass, uint32_t cQueues) 751 753 { 752 754 int rc; … … 790 792 } 791 793 792 vpciR3DumpState(p This, "vpciLoadExec");794 vpciR3DumpState(pDevIns, pThis, "vpciLoadExec"); 793 795 794 796 return VINF_SUCCESS; -
trunk/src/VBox/Devices/VirtIO/Virtio.h
r90447 r91944 283 283 void vpciR3SetWriteLed(PVPCISTATE pThis, bool fOn); 284 284 void vpciR3SetReadLed(PVPCISTATE pThis, bool fOn); 285 int vpciR3SaveExec(P CPDMDEVHLPR3 pHlp, PVPCISTATE pThis, PSSMHANDLE pSSM);286 int vpciR3LoadExec(P CPDMDEVHLPR3 pHlp, PVPCISTATE pThis, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass, uint32_t cQueues);285 int vpciR3SaveExec(PPDMDEVINS pDevIns, PCPDMDEVHLPR3 pHlp, PVPCISTATE pThis, PSSMHANDLE pSSM); 286 int vpciR3LoadExec(PPDMDEVINS pDevIns, PCPDMDEVHLPR3 pHlp, PVPCISTATE pThis, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass, uint32_t cQueues); 287 287 void vpciR3DumpStateWorker(PVPCISTATE pThis, PCDBGFINFOHLP pHlp); 288 288
Note:
See TracChangeset
for help on using the changeset viewer.