VirtualBox

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


Ignore:
Timestamp:
Oct 21, 2021 3:01:54 PM (3 years ago)
Author:
vboxsync
Message:

VMM,DevPciBios: Add helper callback for PDMR3QueryLun and make use of it, also replace CPUMGetGuestMicroarch with PDMDevHlpCpuGetGuestMicroarch, bugref:10074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r91897 r91960  
    769769    uint32_t        u32;
    770770    unsigned        i;
    771     PUVM            pUVM = PDMDevHlpGetUVM(pDevIns); AssertRelease(pUVM);
    772771    PPDMIMEDIA      apHDs[4] = {0};
    773772    LogFlow(("pcbiosInitComplete:\n"));
     
    862861    {
    863862        PPDMIBASE pBase;
    864         int rc = PDMR3QueryLun(pUVM, pThis->pszFDDevice, 0, i, &pBase);
     863        int rc = PDMDevHlpQueryLun(pDevIns, pThis->pszFDDevice, 0, i, &pBase);
    865864        if (RT_SUCCESS(rc))
    866865        {
     
    904903    {
    905904        PPDMIBASE pBase;
    906         int rc = PDMR3QueryLun(pUVM, pThis->pszHDDevice, 0, i, &pBase);
     905        int rc = PDMDevHlpQueryLun(pDevIns, pThis->pszHDDevice, 0, i, &pBase);
    907906        if (RT_SUCCESS(rc))
    908907            apHDs[i] = PDMIBASE_QUERY_INTERFACE(pBase, PDMIMEDIA);
     
    965964        {
    966965            PPDMIBASE pBase;
    967             int rc = PDMR3QueryLun(pUVM, pThis->pszSataDevice, 0, pThis->iSataHDLUN[i], &pBase);
     966            int rc = PDMDevHlpQueryLun(pDevIns, pThis->pszSataDevice, 0, pThis->iSataHDLUN[i], &pBase);
    968967            if (RT_SUCCESS(rc))
    969968                apHDs[i] = PDMIBASE_QUERY_INTERFACE(pBase, PDMIMEDIA);
     
    10191018        {
    10201019            PPDMIBASE pBase;
    1021             int rc = PDMR3QueryLun(pUVM, pThis->pszScsiDevice, 0, pThis->iScsiHDLUN[i], &pBase);
     1020            int rc = PDMDevHlpQueryLun(pDevIns, pThis->pszScsiDevice, 0, pThis->iScsiHDLUN[i], &pBase);
    10221021            if (RT_SUCCESS(rc))
    10231022                apHDs[i] = PDMIBASE_QUERY_INTERFACE(pBase, PDMIMEDIA);
     
    15011500     * Get the CPU arch so we can load the appropriate ROMs.
    15021501     */
    1503     PVM pVM = PDMDevHlpGetVM(pDevIns);
    1504     CPUMMICROARCH const enmMicroarch = pVM ? CPUMGetGuestMicroarch(pVM) : kCpumMicroarch_Intel_P6;
     1502    CPUMMICROARCH const enmMicroarch = pVM ? PDMDevHlpCpuGetGuestMicroarch(pDevIns) : kCpumMicroarch_Intel_P6;
    15051503
    15061504    if (pThis->pszPcBiosFile)
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