- Timestamp:
- Oct 29, 2016 10:15:44 AM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r64387 r64482 54 54 /* should go BEFORE any other DevVGA include to make all DevVGA.h config defines be visible */ 55 55 #include "DevVGA.h" 56 57 #ifdef DEBUG58 /* Enable to log FIFO register accesses. */59 //# define DEBUG_FIFO_ACCESS60 /* Enable to log GMR page accesses. */61 //# define DEBUG_GMR_ACCESS62 #endif63 56 64 57 #include "DevVGA-SVGA.h" … … 1589 1582 static int vmsvgaFIFOAccess(PVM pVM, PVGASTATE pThis, RTGCPHYS GCPhys, bool fWriteAccess) 1590 1583 { 1584 RT_NOREF(pVM); 1591 1585 RTGCPHYS GCPhysOffset = GCPhys - pThis->svga.GCPhysFIFO; 1592 1586 uint32_t *pFIFO = pThis->svga.pFIFOR3; … … 1933 1927 */ 1934 1928 static DECLCALLBACK(VBOXSTRICTRC) 1935 vmsvgaR3FIFOAccessHandler(PVM pVM, PVMCPU pVCpu RTGCPHYS GCPhys, void *pvPhys, void *pvBuf, size_t cbBuf,1929 vmsvgaR3FIFOAccessHandler(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys, void *pvPhys, void *pvBuf, size_t cbBuf, 1936 1930 PGMACCESSTYPE enmAccessType, PGMACCESSORIGIN enmOrigin, void *pvUser) 1937 1931 { … … 1939 1933 int rc; 1940 1934 Assert(pThis); 1941 Assert(GCPhys >= pThis-> GCPhysVRAM);1935 Assert(GCPhys >= pThis->svga.GCPhysFIFO); 1942 1936 NOREF(pVCpu); NOREF(pvPhys); NOREF(pvBuf); NOREF(cbBuf); NOREF(enmOrigin); 1943 1937 … … 1953 1947 1954 1948 #ifdef DEBUG_GMR_ACCESS 1949 # ifdef IN_RING3 1950 1955 1951 /** 1956 1952 * HC access handler for the FIFO. … … 1975 1971 Assert(pThis); 1976 1972 PVMSVGAR3STATE pSVGAState = pThis->svga.pSvgaR3State; 1977 NOREF(pVCpu); NOREF(pvPhys); NOREF(pvBuf); NOREF(cbBuf); NOREF(enm Origin);1973 NOREF(pVCpu); NOREF(pvPhys); NOREF(pvBuf); NOREF(cbBuf); NOREF(enmAccessType); NOREF(enmOrigin); 1978 1974 1979 1975 Log(("vmsvgaR3GMRAccessHandler: GMR access to page %RGp\n", GCPhys)); … … 1995 1991 */ 1996 1992 int rc = PGMHandlerPhysicalPageTempOff(pVM, pGMR->paDesc[j].GCPhys, GCPhys); 1993 AssertRC(rc); 1997 1994 goto end; 1998 1995 } … … 2004 2001 } 2005 2002 2006 # ifdef IN_RING3 2007 2008 /* Callback handler for VMR3ReqCallWait */ 2003 /* Callback handler for VMR3ReqCallWaitU */ 2009 2004 static DECLCALLBACK(int) vmsvgaRegisterGMR(PPDMDEVINS pDevIns, uint32_t gmrId) 2010 2005 { … … 2024 2019 } 2025 2020 2026 /* Callback handler for VMR3ReqCallWait */2021 /* Callback handler for VMR3ReqCallWaitU */ 2027 2022 static DECLCALLBACK(int) vmsvgaDeregisterGMR(PPDMDEVINS pDevIns, uint32_t gmrId) 2028 2023 { … … 2039 2034 } 2040 2035 2041 /* Callback handler for VMR3ReqCallWait */2036 /* Callback handler for VMR3ReqCallWaitU */ 2042 2037 static DECLCALLBACK(int) vmsvgaResetGMRHandlers(PVGASTATE pThis) 2043 2038 { … … 2971 2966 2972 2967 # ifdef DEBUG_GMR_ACCESS 2973 VMR3ReqCallWait (PDMDevHlpGetVM(pThis->pDevInsR3), VMCPUID_ANY, (PFNRT)vmsvgaRegisterGMR, 2, pThis->pDevInsR3, pCmd->gmrId);2968 VMR3ReqCallWaitU(PDMDevHlpGetUVM(pThis->pDevInsR3), VMCPUID_ANY, (PFNRT)vmsvgaRegisterGMR, 2, pThis->pDevInsR3, pCmd->gmrId); 2974 2969 # endif 2975 2970 break; … … 3134 3129 SVGA3D_TEX_FILTER_NONE, cMipLevels, (SVGA3dSize *)(pCmd + 1)); 3135 3130 # ifdef DEBUG_GMR_ACCESS 3136 VMR3ReqCallWait (PDMDevHlpGetVM(pThis->pDevInsR3), VMCPUID_ANY, (PFNRT)vmsvgaResetGMRHandlers, 1, pThis);3131 VMR3ReqCallWaitU(PDMDevHlpGetUVM(pThis->pDevInsR3), VMCPUID_ANY, (PFNRT)vmsvgaResetGMRHandlers, 1, pThis); 3137 3132 # endif 3138 3133 break; … … 3486 3481 || (pThis->svga.u32IrqMask & SVGA_IRQFLAG_FIFO_PROGRESS)) 3487 3482 { 3488 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 3483 int rc2 = PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 3484 AssertRC(rc2); 3489 3485 3490 3486 /* FIFO progress might trigger an interrupt. */ … … 3538 3534 PGMR pGMR = &pSVGAState->aGMR[idGMR]; 3539 3535 # ifdef DEBUG_GMR_ACCESS 3540 VMR3ReqCallWait (PDMDevHlpGetVM(pThis->pDevInsR3), VMCPUID_ANY, (PFNRT)vmsvgaDeregisterGMR, 2, pThis->pDevInsR3, idGMR);3536 VMR3ReqCallWaitU(PDMDevHlpGetUVM(pThis->pDevInsR3), VMCPUID_ANY, (PFNRT)vmsvgaDeregisterGMR, 2, pThis->pDevInsR3, idGMR); 3541 3537 # endif 3542 3538 -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r64387 r64482 213 213 214 214 #ifdef VBOX_WITH_VMSVGA 215 216 #ifdef DEBUG 217 /* Enable to log FIFO register accesses. */ 218 //# define DEBUG_FIFO_ACCESS 219 /* Enable to log GMR page accesses. */ 220 //# define DEBUG_GMR_ACCESS 221 #endif 215 222 216 223 #define VMSVGA_FIFO_EXTCMD_NONE 0
Note:
See TracChangeset
for help on using the changeset viewer.