Changeset 93653 in vbox for trunk/src/VBox
- Timestamp:
- Feb 8, 2022 11:45:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp
r93652 r93653 1767 1767 { 1768 1768 AssertLogRelMsgFailed(("ring-0 drivers are not supported in this VBox version!\n")); 1769 RT_NOREF(pvInterface, cbInterface, pszSymList); 1769 1770 rc = VERR_NOT_SUPPORTED; 1770 1771 } … … 1812 1813 { 1813 1814 AssertLogRelMsgFailed(("ring-0 drivers are not supported in this VBox version!\n")); 1815 RT_NOREF(pvInterface, cbInterface, pszSymList); 1814 1816 rc = VERR_NOT_SUPPORTED; 1815 1817 } … … 1958 1960 { 1959 1961 PDMDRV_ASSERT_DRVINS(pDrvIns); 1962 #ifdef PDM_WITH_RING0_DRIVERS 1960 1963 PVM pVM = pDrvIns->Internal.s.pVMR3; 1964 #endif 1961 1965 LogFlow(("pdmR3DrvHlp_CallR0: caller='%s'/%d: uOperation=%#x u64Arg=%#RX64\n", 1962 1966 pDrvIns->pReg->szName, pDrvIns->iInstance, uOperation, u64Arg)); … … 1971 1975 if (pDrvIns->pReg->fFlags & PDM_DRVREG_FLAGS_R0) 1972 1976 { 1977 #ifdef PDM_WITH_RING0_DRIVERS 1973 1978 char szSymbol[ sizeof("drvR0") + sizeof(pDrvIns->pReg->szName) + sizeof("ReqHandler")]; 1974 1979 strcat(strcat(strcpy(szSymbol, "drvR0"), pDrvIns->pReg->szName), "ReqHandler"); … … 1981 1986 else 1982 1987 pfnReqHandlerR0 = NIL_RTR0PTR; 1988 #else 1989 RT_NOREF(uOperation, u64Arg); 1990 rc = VERR_NOT_SUPPORTED; 1991 #endif 1983 1992 } 1984 1993 else 1985 1994 rc = VERR_ACCESS_DENIED; 1986 1995 } 1987 if (RT_LIKELY(pfnReqHandlerR0 != NIL_RTR0PTR)) 1988 { 1996 if (RT_LIKELY(pfnReqHandlerR0 != NIL_RTR0PTR && RT_SUCCESS(rc))) 1997 { 1998 #ifdef PDM_WITH_RING0_DRIVERS 1989 1999 /* 1990 2000 * Make the ring-0 call. … … 1998 2008 Req.u64Arg = u64Arg; 1999 2009 rc = SUPR3CallVMMR0Ex(VMCC_GET_VMR0_FOR_CALL(pVM), NIL_VMCPUID, VMMR0_DO_PDM_DRIVER_CALL_REQ_HANDLER, 0, &Req.Hdr); 2000 } 2001 2002 LogFlow(("pdmR3DrvHlp_CallR0: caller='%s'/%d: returns %Rrc\n", pDrvIns->pReg->szName, 2003 pDrvIns->iInstance, rc)); 2010 #else 2011 rc = VERR_NOT_SUPPORTED; 2012 #endif 2013 } 2014 2015 LogFlow(("pdmR3DrvHlp_CallR0: caller='%s'/%d: returns %Rrc\n", pDrvIns->pReg->szName, pDrvIns->iInstance, rc)); 2004 2016 return rc; 2005 2017 }
Note:
See TracChangeset
for help on using the changeset viewer.