- Timestamp:
- Oct 21, 2021 3:01:54 PM (3 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r91897 r91960 769 769 uint32_t u32; 770 770 unsigned i; 771 PUVM pUVM = PDMDevHlpGetUVM(pDevIns); AssertRelease(pUVM);772 771 PPDMIMEDIA apHDs[4] = {0}; 773 772 LogFlow(("pcbiosInitComplete:\n")); … … 862 861 { 863 862 PPDMIBASE pBase; 864 int rc = PDM R3QueryLun(pUVM, pThis->pszFDDevice, 0, i, &pBase);863 int rc = PDMDevHlpQueryLun(pDevIns, pThis->pszFDDevice, 0, i, &pBase); 865 864 if (RT_SUCCESS(rc)) 866 865 { … … 904 903 { 905 904 PPDMIBASE pBase; 906 int rc = PDM R3QueryLun(pUVM, pThis->pszHDDevice, 0, i, &pBase);905 int rc = PDMDevHlpQueryLun(pDevIns, pThis->pszHDDevice, 0, i, &pBase); 907 906 if (RT_SUCCESS(rc)) 908 907 apHDs[i] = PDMIBASE_QUERY_INTERFACE(pBase, PDMIMEDIA); … … 965 964 { 966 965 PPDMIBASE pBase; 967 int rc = PDM R3QueryLun(pUVM, pThis->pszSataDevice, 0, pThis->iSataHDLUN[i], &pBase);966 int rc = PDMDevHlpQueryLun(pDevIns, pThis->pszSataDevice, 0, pThis->iSataHDLUN[i], &pBase); 968 967 if (RT_SUCCESS(rc)) 969 968 apHDs[i] = PDMIBASE_QUERY_INTERFACE(pBase, PDMIMEDIA); … … 1019 1018 { 1020 1019 PPDMIBASE pBase; 1021 int rc = PDM R3QueryLun(pUVM, pThis->pszScsiDevice, 0, pThis->iScsiHDLUN[i], &pBase);1020 int rc = PDMDevHlpQueryLun(pDevIns, pThis->pszScsiDevice, 0, pThis->iScsiHDLUN[i], &pBase); 1022 1021 if (RT_SUCCESS(rc)) 1023 1022 apHDs[i] = PDMIBASE_QUERY_INTERFACE(pBase, PDMIMEDIA); … … 1501 1500 * Get the CPU arch so we can load the appropriate ROMs. 1502 1501 */ 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; 1505 1503 1506 1504 if (pThis->pszPcBiosFile) -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r91944 r91960 4665 4665 4666 4666 LogFlow(("pdmR3DevHlp_SharedModuleCheckAll: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); 4667 return rc; 4668 } 4669 4670 4671 /** @interface_method_impl{PDMDEVHLPR3,pfnQueryLun} */ 4672 static DECLCALLBACK(int) pdmR3DevHlp_pfnQueryLun(PPDMDEVINS pDevIns, const char *pszDevice, 4673 unsigned iInstance, unsigned iLun, PPDMIBASE *ppBase) 4674 { 4675 PDMDEV_ASSERT_DEVINS(pDevIns); 4676 4677 LogFlow(("pdmR3DevHlp_pfnQueryLun: caller='%s'/%d: pszDevice=%p:{%s} iInstance=%u iLun=%u ppBase=%p\n", 4678 pDevIns->pReg->szName, pDevIns->iInstance, pszDevice, pszDevice, iInstance, iLun, ppBase)); 4679 4680 int rc = PDMR3QueryLun(pDevIns->Internal.s.pVMR3->pUVM, pszDevice, iInstance, iLun, ppBase); 4681 4682 LogFlow(("pdmR3DevHlp_pfnQueryLun: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); 4667 4683 return rc; 4668 4684 } … … 5051 5067 pdmR3DevHlp_SharedModuleGetPageState, 5052 5068 pdmR3DevHlp_SharedModuleCheckAll, 5069 pdmR3DevHlp_pfnQueryLun, 5053 5070 PDM_DEVHLPR3_VERSION /* the end */ 5054 5071 }; … … 5438 5455 pdmR3DevHlp_SharedModuleGetPageState, 5439 5456 pdmR3DevHlp_SharedModuleCheckAll, 5457 pdmR3DevHlp_pfnQueryLun, 5440 5458 PDM_DEVHLPR3_VERSION /* the end */ 5441 5459 }; … … 5708 5726 { 5709 5727 PDMDEV_ASSERT_DEVINS(pDevIns); 5728 AssertReleaseMsgFailed(("Untrusted device called trusted helper! '%s'/%d\n", 5729 pDevIns->pReg->szName, pDevIns->iInstance)); 5730 return VERR_ACCESS_DENIED; 5731 } 5732 5733 5734 /** @interface_method_impl{PDMDEVHLPR3,pfnQUeryLun} */ 5735 static DECLCALLBACK(int) pdmR3DevHlp_Untrusted_QueryLun(PPDMDEVINS pDevIns, const char *pszDevice, unsigned iInstance, unsigned iLun, PPDMIBASE *ppBase) 5736 { 5737 PDMDEV_ASSERT_DEVINS(pDevIns); 5738 RT_NOREF(pszDevice, iInstance, iLun, ppBase); 5710 5739 AssertReleaseMsgFailed(("Untrusted device called trusted helper! '%s'/%d\n", 5711 5740 pDevIns->pReg->szName, pDevIns->iInstance)); … … 6096 6125 pdmR3DevHlp_Untrusted_SharedModuleGetPageState, 6097 6126 pdmR3DevHlp_Untrusted_SharedModuleCheckAll, 6127 pdmR3DevHlp_Untrusted_QueryLun, 6098 6128 PDM_DEVHLPR3_VERSION /* the end */ 6099 6129 };
Note:
See TracChangeset
for help on using the changeset viewer.