VirtualBox

Changeset 59179 in vbox for trunk


Ignore:
Timestamp:
Dec 18, 2015 8:51:00 AM (9 years ago)
Author:
vboxsync
Message:

Additions: ASMCompilerBarrier for HGSMI IO port writes

Location:
trunk/src/VBox/Additions
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp

    r55759 r59179  
    18071807                {
    18081808                    VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offCmd);
     1809                    /* Make the compiler aware that the host has changed memory. */
     1810                    ASMCompilerBarrier();
    18091811                    rc = VBoxSHGSMICommandDoneSynch(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx, pHdr);
    18101812                    AssertRC(rc);
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp

    r57468 r59179  
    118118{
    119119    VBoxVideoCmnPortWriteUlong(pHGSMICtx->port, offDr);
     120    /* Make the compiler aware that the host has changed memory. */
     121    ASMCompilerBarrier();
    120122    return VINF_SUCCESS;
    121123}
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp

    r58037 r59179  
    15151515{
    15161516    VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offDr);
     1517    /* Make the compiler aware that the host has changed memory. */
     1518    ASMCompilerBarrier();
    15171519    return VINF_SUCCESS;
    15181520}
  • trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp

    r56378 r59179  
    170170        /* Submit the buffer to the host. */
    171171        VBoxVideoCmnPortWriteUlong(pCtx->port, offBuffer);
     172        /* Make the compiler aware that the host has changed memory. */
     173        ASMCompilerBarrier();
    172174        return VINF_SUCCESS;
    173175    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette