Changeset 92950 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 15, 2021 8:54:37 PM (3 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp
r92939 r92950 896 896 pHlp->pfnPrintf(pHlp, " cVirtqs .,................. %d\n", pThis->cVirtqs); 897 897 pHlp->pfnPrintf(pHlp, " cWorkers .................. %d\n", pThis->cWorkers); 898 pHlp->pfnPrintf(pHlp, " MMIO mapping name ......... %d\n", pThisCC->Virtio. pcszMmioName);898 pHlp->pfnPrintf(pHlp, " MMIO mapping name ......... %d\n", pThisCC->Virtio.szMmioName); 899 899 pHlp->pfnPrintf(pHlp, "\n"); 900 900 } -
trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp
r92949 r92950 2537 2537 PDMPciDevSetStatus(pPciDev, VBOX_PCI_STATUS_CAP_LIST); 2538 2538 2539 size_t cbSize = RTStrPrintf(pVirtioCC-> pcszMmioName, sizeof(pVirtioCC->pcszMmioName), "%s (modern)", pcszInstance);2539 size_t cbSize = RTStrPrintf(pVirtioCC->szMmioName, sizeof(pVirtioCC->szMmioName), "%s (modern)", pcszInstance); 2540 2540 if (cbSize <= 0) 2541 2541 return PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: out of memory allocating string")); /* can we put params in this error? */ 2542 2542 2543 cbSize = RTStrPrintf(pVirtioCC-> pcszPortIoName, sizeof(pVirtioCC->pcszPortIoName), "%s (legacy)", pcszInstance);2543 cbSize = RTStrPrintf(pVirtioCC->szPortIoName, sizeof(pVirtioCC->szPortIoName), "%s (legacy)", pcszInstance); 2544 2544 if (cbSize <= 0) 2545 2545 return PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: out of memory allocating string")); /* can we put params in this error? */ … … 2554 2554 */ 2555 2555 rc = PDMDevHlpPCIIORegionCreateIo(pDevIns, VIRTIO_REGION_LEGACY_IO, sizeof(VIRTIO_LEGACY_PCI_COMMON_CFG_T) + cbDevSpecificCfg, 2556 virtioLegacyIOPortOut, virtioLegacyIOPortIn, NULL /*pvUser*/, pVirtioCC-> pcszPortIoName,2556 virtioLegacyIOPortOut, virtioLegacyIOPortIn, NULL /*pvUser*/, pVirtioCC->szPortIoName, 2557 2557 NULL /*paExtDescs*/, &pVirtio->hLegacyIoPorts); 2558 2558 AssertLogRelRCReturn(rc, PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: cannot register legacy config in I/O space at BAR0 */"))); … … 2565 2565 PCI_ADDRESS_SPACE_MEM, virtioMmioWrite, virtioMmioRead, pVirtio, 2566 2566 IOMMMIO_FLAGS_READ_PASSTHRU | IOMMMIO_FLAGS_WRITE_PASSTHRU, 2567 pVirtioCC-> pcszMmioName,2567 pVirtioCC->szMmioName, 2568 2568 &pVirtio->hMmioPciCap); 2569 2569 AssertLogRelRCReturn(rc, PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: cannot register PCI Capabilities address space"))); -
trunk/src/VBox/Devices/VirtIO/VirtioCore.h
r92949 r92950 460 460 R3PTRTYPE(uint8_t *) pbPrevDevSpecificCfg; /**< Previous read dev-specific cfg of client */ 461 461 bool fGenUpdatePending; /**< If set, update cfg gen after driver reads */ 462 char pcszMmioName[MAX_NAME];/**< MMIO mapping name */463 char pcszPortIoName[MAX_NAME];/**< PORT mapping name */462 char szMmioName[MAX_NAME]; /**< MMIO mapping name */ 463 char szPortIoName[MAX_NAME]; /**< PORT mapping name */ 464 464 } VIRTIOCORER3; 465 465
Note:
See TracChangeset
for help on using the changeset viewer.