VirtualBox

Changeset 84882 in vbox


Ignore:
Timestamp:
Jun 19, 2020 1:07:08 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138714
Message:

fix scm burn

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

Legend:

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

    r84876 r84882  
    30863086    RTStrPrintf(pThis->szInst, sizeof(pThis->szInst), "VNET%d", iInstance);
    30873087
    3088     /** todo Remove next line (temporary hack used for less logging clutter for single-instance debugging) */
     3088    /** @todo Remove next line (temporary hack used for less logging clutter for single-instance debugging) */
    30893089    *pThis->szInst = '\0';
    30903090
  • TabularUnified trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp

    r84876 r84882  
    15971597#ifdef IN_RING3
    15981598        /*
    1599          * Pass this MMIO write access back to the client to handle
     1599         * Foreward this MMIO write access for client to deal with.
    16001600         */
    16011601        return pVirtioCC->pfnDevCapWrite(pDevIns, uOffset, pv, cb);
     
    20882088    PDMPciDevSetStatus(pPciDev, VBOX_PCI_STATUS_CAP_LIST);
    20892089
    2090     /* Linux drivers/virtio/virtio_pci_modern.c tries to map at least a page for the
     2090    size_t cbSize = RTStrPrintf(pVirtioCC->pcszMmioName, sizeof(pVirtioCC->pcszMmioName), "%s MMIO", pcszInstance);
     2091    if (cbSize <= 0)
     2092        return PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: out of memory allocating string")); /* can we put params in this error? */
     2093
     2094    /* Note: The Linux driver at drivers/virtio/virtio_pci_modern.c tries to map at least a page for the
    20912095     * 'unknown' device-specific capability without querying the capability to figure
    20922096     *  out size, so pad with an extra page
    20932097     */
    2094     size_t cbSize = RTStrPrintf(pVirtioCC->pcszMmioName, sizeof(pVirtioCC->pcszMmioName), "%s MMIO", pcszInstance);
    2095     if (cbSize <= 0)
    2096         return PDMDEV_SET_ERROR(pDevIns, rc, N_("virtio: out of memory allocating string")); /* can we put params in this error? */
    2097 
    20982098    rc = PDMDevHlpPCIIORegionCreateMmio(pDevIns, VIRTIO_REGION_PCI_CAP, RT_ALIGN_32(cbRegion + PAGE_SIZE, PAGE_SIZE),
    20992099                                        PCI_ADDRESS_SPACE_MEM, virtioMmioWrite, virtioMmioRead, pVirtio,
  • TabularUnified trunk/src/VBox/Devices/VirtIO/VirtioCore.h

    r84877 r84882  
    126126
    127127#define VIRTIO_F_VERSION_1                  RT_BIT_64(32)        /**< Required feature bit for 1.0 devices      */
    128 #define VIRTIO_F_INDIRECT_DESC              RT_BIT_64(28)          /**< Allow descs to point to list of descs   */
     128#define VIRTIO_F_INDIRECT_DESC              RT_BIT_64(28)        /**< Allow descs to point to list of descs     */
    129129#define VIRTIO_F_EVENT_IDX                  RT_BIT_64(29)        /**< Allow notification disable for n elems    */
    130130#define VIRTIO_F_RING_INDIRECT_DESC         RT_BIT_64(28)        /**< Doc bug: Goes under two names in spec     */
     
    288288    uint8_t                     uISR;                              /**< Interrupt Status Register.                */
    289289    uint8_t                     fMsiSupport;                       /**< Flag set if using MSI instead of ISR      */
    290 
    291290    /** The MMIO handle for the PCI capability region (\#2). */
    292291    IOMMMIOHANDLE               hMmioPciCap;
     
    356355    /** @} */
    357356
    358     R3PTRTYPE(PVIRTIO_PCI_CFG_CAP_T)    pPciCfgCap;                 /**< Pointer to struct in the PCI configuration area. */
    359     R3PTRTYPE(PVIRTIO_PCI_NOTIFY_CAP_T) pNotifyCap;                 /**< Pointer to struct in the PCI configuration area. */
    360     R3PTRTYPE(PVIRTIO_PCI_CAP_T)        pCommonCfgCap;              /**< Pointer to struct in the PCI configuration area. */
    361     R3PTRTYPE(PVIRTIO_PCI_CAP_T)        pIsrCap;                    /**< Pointer to struct in the PCI configuration area. */
    362     R3PTRTYPE(PVIRTIO_PCI_CAP_T)        pDeviceCap;                 /**< Pointer to struct in the PCI configuration area. */
    363 
    364     uint32_t                    cbDevSpecificCfg;                   /**< Size of client's dev-specific config data */
    365     R3PTRTYPE(uint8_t *)        pbDevSpecificCfg;                   /**< Pointer to client's struct                */
    366     R3PTRTYPE(uint8_t *)        pbPrevDevSpecificCfg;               /**< Previous read dev-specific cfg of client  */
    367     bool                        fGenUpdatePending;                  /**< If set, update cfg gen after driver reads */
    368     char                        pcszMmioName[MAX_NAME];             /**< MMIO mapping name                         */
     357    R3PTRTYPE(PVIRTIO_PCI_CFG_CAP_T)    pPciCfgCap;                /**< Pointer to struct in PCI config area.    */
     358    R3PTRTYPE(PVIRTIO_PCI_NOTIFY_CAP_T) pNotifyCap;                /**< Pointer  to struct in PCI config area.    */
     359    R3PTRTYPE(PVIRTIO_PCI_CAP_T)        pCommonCfgCap;             /**< Pointer to struct in PCI config area.    */
     360    R3PTRTYPE(PVIRTIO_PCI_CAP_T)        pIsrCap;                   /**< Pointer to struct in PCI config area.    */
     361    R3PTRTYPE(PVIRTIO_PCI_CAP_T)        pDeviceCap;                /**< Pointer to struct in PCI config area.    */
     362
     363    uint32_t                    cbDevSpecificCfg;                  /**< Size of client's dev-specific config data */
     364    R3PTRTYPE(uint8_t *)        pbDevSpecificCfg;                  /**< Pointer to client's struct                */
     365    R3PTRTYPE(uint8_t *)        pbPrevDevSpecificCfg;              /**< Previous read dev-specific cfg of client  */
     366    bool                        fGenUpdatePending;                 /**< If set, update cfg gen after driver reads */
     367    char                        pcszMmioName[MAX_NAME];            /**< MMIO mapping name                         */
    369368} VIRTIOCORER3;
    370369
Note: See TracChangeset for help on using the changeset viewer.

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