Changeset 71590 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
- Timestamp:
- Mar 31, 2018 6:34:28 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
r71588 r71590 2398 2398 * @note cbCmdDr is at least sizeof(VBOXVDMACBUF_DR). 2399 2399 */ 2400 static int vboxVDMACmdCheckCrCmd(struct VBOXVDMAHOST *pVdma, PVBOXVDMACBUF_DRpCmdDr, uint32_t cbCmdDr)2400 static int vboxVDMACmdCheckCrCmd(struct VBOXVDMAHOST *pVdma, VBOXVDMACBUF_DR RT_UNTRUSTED_VOLATILE_GUEST *pCmdDr, uint32_t cbCmdDr) 2401 2401 { 2402 2402 uint32_t cbDmaCmd = 0; … … 2948 2948 * @thread VDMA 2949 2949 */ 2950 static void vboxVDMACommandProcess(PVBOXVDMAHOST pVdma, PVBOXVDMACBUF_DRpCmd, uint32_t cbCmd)2950 static void vboxVDMACommandProcess(PVBOXVDMAHOST pVdma, VBOXVDMACBUF_DR RT_UNTRUSTED_VOLATILE_GUEST *pCmd, uint32_t cbCmd) 2951 2951 { 2952 2952 PHGSMIINSTANCE pHgsmi = pVdma->pHgsmi; … … 2958 2958 * Get the command buffer (volatile). 2959 2959 */ 2960 uint16_t const cbCmdBuf = pCmd->cbBuf; 2961 const uint8_t *pbCmdBuf; 2960 uint16_t const cbCmdBuf = pCmd->cbBuf; 2961 uint32_t const fCmdFlags = pCmd->fFlags; 2962 const uint8_t *pbCmdBuf; /** @todo fixme later */ 2962 2963 PGMPAGEMAPLOCK Lock; 2963 2964 bool bReleaseLocked = false; 2964 if ( pCmd->fFlags & VBOXVDMACBUF_FLAG_BUF_FOLLOWS_DR)2965 if (fCmdFlags & VBOXVDMACBUF_FLAG_BUF_FOLLOWS_DR) 2965 2966 { 2966 2967 pbCmdBuf = VBOXVDMACBUF_DR_TAIL(pCmd, const uint8_t); … … 2969 2970 rc = VERR_INVALID_PARAMETER); 2970 2971 } 2971 else if ( pCmd->fFlags & VBOXVDMACBUF_FLAG_BUF_VRAM_OFFSET)2972 else if (fCmdFlags & VBOXVDMACBUF_FLAG_BUF_VRAM_OFFSET) 2972 2973 { 2973 2974 uint64_t offVRam = pCmd->Location.offVramBuf; … … 3165 3166 * @param cbCmd The size of the command. At least sizeof(VBOXVDMA_CTL). 3166 3167 */ 3167 void vboxVDMAControl(struct VBOXVDMAHOST *pVdma, PVBOXVDMA_CTLpCmd, uint32_t cbCmd)3168 void vboxVDMAControl(struct VBOXVDMAHOST *pVdma, VBOXVDMA_CTL RT_UNTRUSTED_VOLATILE_GUEST *pCmd, uint32_t cbCmd) 3168 3169 { 3169 3170 RT_NOREF(cbCmd); … … 3171 3172 3172 3173 VBOXVDMA_CTL_TYPE enmCtl = pCmd->enmCtl; 3174 ASMCompilerBarrier(); 3173 3175 switch (enmCtl) 3174 3176 { … … 3204 3206 * @param cbCmd The size of the command. At least sizeof(VBOXVDMACBUF_DR). 3205 3207 */ 3206 void vboxVDMACommand(struct VBOXVDMAHOST *pVdma, PVBOXVDMACBUF_DRpCmd, uint32_t cbCmd)3208 void vboxVDMACommand(struct VBOXVDMAHOST *pVdma, VBOXVDMACBUF_DR RT_UNTRUSTED_VOLATILE_GUEST *pCmd, uint32_t cbCmd) 3207 3209 { 3208 3210 #ifdef VBOX_WITH_CRHGSMI … … 3282 3284 * Handler for vboxCmdVBVACmdCtl()/VBOXCMDVBVACTL_TYPE_3DCTL. 3283 3285 */ 3284 static int vdmaVBVACtlGenericGuestSubmit(PVBOXVDMAHOST pVdma, VBVAEXHOSTCTL_TYPE enmType, VBOXCMDVBVA_CTL *pCtl, uint32_t cbCtl) 3286 static int vdmaVBVACtlGenericGuestSubmit(PVBOXVDMAHOST pVdma, VBVAEXHOSTCTL_TYPE enmType, 3287 VBOXCMDVBVA_CTL RT_UNTRUSTED_VOLATILE_GUEST *pCtl, uint32_t cbCtl) 3285 3288 { 3286 3289 Assert(cbCtl >= sizeof(VBOXCMDVBVA_CTL)); /* Checked by callers caller, vbvaChannelHandler(). */ … … 3791 3794 * sizeof(VBOXCMDVBVA_CTL). 3792 3795 */ 3793 int vboxCmdVBVACmdCtl(PVGASTATE pVGAState, VBOXCMDVBVA_CTL *pCtl, uint32_t cbCtl)3796 int vboxCmdVBVACmdCtl(PVGASTATE pVGAState, VBOXCMDVBVA_CTL RT_UNTRUSTED_VOLATILE_GUEST *pCtl, uint32_t cbCtl) 3794 3797 { 3795 3798 struct VBOXVDMAHOST *pVdma = pVGAState->pVdma;
Note:
See TracChangeset
for help on using the changeset viewer.