VirtualBox

Changeset 92950 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 15, 2021 8:54:37 PM (3 years ago)
Author:
vboxsync
Message:

VirtioCore: pcszMmioName -> szMmioName and pcszPortIoName -> szPortIoName in VIRTIOCORER3. bugref:8651

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp

    r92939 r92950  
    896896        pHlp->pfnPrintf(pHlp, "    cVirtqs .,................. %d\n",   pThis->cVirtqs);
    897897        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);
    899899        pHlp->pfnPrintf(pHlp, "\n");
    900900    }
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp

    r92949 r92950  
    25372537    PDMPciDevSetStatus(pPciDev, VBOX_PCI_STATUS_CAP_LIST);
    25382538
    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);
    25402540    if (cbSize <= 0)
    25412541        return PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: out of memory allocating string")); /* can we put params in this error? */
    25422542
    2543     cbSize = RTStrPrintf(pVirtioCC->pcszPortIoName, sizeof(pVirtioCC->pcszPortIoName), "%s (legacy)", pcszInstance);
     2543    cbSize = RTStrPrintf(pVirtioCC->szPortIoName, sizeof(pVirtioCC->szPortIoName), "%s (legacy)", pcszInstance);
    25442544    if (cbSize <= 0)
    25452545        return PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: out of memory allocating string")); /* can we put params in this error? */
     
    25542554         */
    25552555        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,
    25572557                                          NULL /*paExtDescs*/, &pVirtio->hLegacyIoPorts);
    25582558        AssertLogRelRCReturn(rc, PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: cannot register legacy config in I/O space at BAR0 */")));
     
    25652565                                        PCI_ADDRESS_SPACE_MEM, virtioMmioWrite, virtioMmioRead, pVirtio,
    25662566                                        IOMMMIO_FLAGS_READ_PASSTHRU | IOMMMIO_FLAGS_WRITE_PASSTHRU,
    2567                                         pVirtioCC->pcszMmioName,
     2567                                        pVirtioCC->szMmioName,
    25682568                                        &pVirtio->hMmioPciCap);
    25692569    AssertLogRelRCReturn(rc, PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: cannot register PCI Capabilities address space")));
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.h

    r92949 r92950  
    460460    R3PTRTYPE(uint8_t *)                pbPrevDevSpecificCfg;      /**< Previous read dev-specific cfg of client  */
    461461    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                         */
    464464} VIRTIOCORER3;
    465465
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette