Changeset 82079 in vbox
- Timestamp:
- Nov 21, 2019 12:46:06 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r82076 r82079 1436 1436 1437 1437 #endif /* IN_RING3 */ 1438 1439 1438 #if defined(IN_RING0) || defined(IN_RING3) 1439 1440 1440 /** 1441 1441 * Safely updates the SVGA_FIFO_BUSY register (in shared memory). … … 1499 1499 pThis->svga.u32PitchLock = pThis->svga.cbScanline; 1500 1500 } 1501 #endif 1501 1502 #endif /* IN_RING0 || IN_RING3 */ 1502 1503 1503 1504 -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.h
r82076 r82079 168 168 /** The R3 FIFO pointer. */ 169 169 R3PTRTYPE(uint32_t *) pFIFOR3; 170 /** The R0 FIFO pointer. */ 170 /** The R0 FIFO pointer. 171 * @note This only points to the _first_ _page_ of the FIFO! */ 171 172 R0PTRTYPE(uint32_t *) pFIFOR0; 172 173 /** R3 Opaque pointer to svga state. */ -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r82078 r82079 6650 6650 AssertRCReturn(rc, PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, 6651 6651 N_("Failed to create VMSVGA FIFO (%u bytes)"), pThis->svga.cbFIFO)); 6652 pThis->svga.pFIFOR0 = (RTR0PTR)pThis->svga.pFIFOR3;6653 6652 6654 6653 pPciDev->pfnRegionLoadChangeHookR3 = vgaR3PciRegionLoadChangeHook; … … 7397 7396 7398 7397 /* 7399 * Map the VMSVGA FIFO into this context (only ring-0). 7398 * Map the first page of the VMSVGA FIFO into this context (not raw-mode). 7399 * We currently only access SVGA_FIFO_MIN, SVGA_FIFO_PITCHLOCK, and SVGA_FIFO_BUSY. 7400 7400 */ 7401 AssertCompile((RT_MAX(SVGA_FIFO_MIN, RT_MAX(SVGA_FIFO_PITCHLOCK, SVGA_FIFO_BUSY)) + 1) * sizeof(uint32_t) < PAGE_SIZE); 7401 7402 # if defined(VBOX_WITH_VMSVGA) && !defined(IN_RC) 7402 # if defined(VBOX_WITH_2X_4GB_ADDR_SPACE)7403 7403 if (pThis->fVMSVGAEnabled) 7404 7404 { 7405 rc = PDMDevHlpMmio2SetUpContext(pDevIns, pThis->hMmio2VmSvgaFifo, 0 /* off */, pThis->svga.cbFIFO,7405 rc = PDMDevHlpMmio2SetUpContext(pDevIns, pThis->hMmio2VmSvgaFifo, 0 /* off */, PAGE_SIZE, 7406 7406 (void **)&pThis->svga.CTX_SUFF(pFIFO)); 7407 7407 AssertLogRelMsgRCReturn(rc, ("PDMDevHlpMapMMIO2IntoR0(%#x,) -> %Rrc\n", pThis->svga.cbFIFO, rc), rc); 7408 7408 } 7409 # endif 7409 else 7410 AssertReturn(pThis->hMmio2VmSvgaFifo == NIL_PGMMMIO2HANDLE, VERR_INVALID_STATE); 7410 7411 #endif 7411 7412
Note:
See TracChangeset
for help on using the changeset viewer.