Changeset 71602 in vbox
- Timestamp:
- Apr 1, 2018 4:44:41 PM (6 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
-
VBox/Graphics/VBoxVideo.h (modified) (1 diff)
-
iprt/cdefs.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/Graphics/VBoxVideo.h
r71596 r71602 1391 1391 VBOXVDMA_CTL_TYPE_DISABLE, 1392 1392 VBOXVDMA_CTL_TYPE_FLUSH, 1393 VBOXVDMA_CTL_TYPE_WATCHDOG 1393 VBOXVDMA_CTL_TYPE_WATCHDOG, 1394 VBOXVDMA_CTL_TYPE_END 1394 1395 } VBOXVDMA_CTL_TYPE; 1395 1396 -
trunk/include/iprt/cdefs.h
r71589 r71602 1583 1583 * This is more than just documentation as it specifies the 'volatile' keyword, 1584 1584 * because the guest could modify the data at any time. */ 1585 #define RT_UNTRUSTED_VOLATILE_USER volatile1585 #define RT_UNTRUSTED_VOLATILE_USER volatile 1586 1586 1587 1587 /** @def RT_UNTRUSTED_GUEST … … 1593 1593 * This is more than just documentation as it specifies the 'volatile' keyword, 1594 1594 * because the guest could modify the data at any time. */ 1595 #define RT_UNTRUSTED_VOLATILE_GUEST volatile1595 #define RT_UNTRUSTED_VOLATILE_GUEST volatile 1596 1596 1597 1597 /** @def RT_UNTRUSTED_HOST … … 1603 1603 * This is more than just documentation as it specifies the 'volatile' keyword, 1604 1604 * because the host could modify the data at any time. */ 1605 #define RT_UNTRUSTED_VOLATILE_HOST volatile1605 #define RT_UNTRUSTED_VOLATILE_HOST volatile 1606 1606 1607 1607 /** @def RT_UNTRUSTED_HSTGST … … 1613 1613 * This is more than just documentation as it specifies the 'volatile' keyword, 1614 1614 * because the host could modify the data at any time. */ 1615 #define RT_UNTRUSTED_VOLATILE_HSTGST volatile 1615 #define RT_UNTRUSTED_VOLATILE_HSTGST volatile 1616 /** @} */ 1617 1618 /** @name Fences for use when handling untrusted data. 1619 * @{ */ 1620 /** For use after copying untruated volatile data to a non-volatile location. 1621 * This translates to a compiler memory barrier and will help ensure that the 1622 * compiler uses the non-volatile copy of the data. */ 1623 #define RT_UNTRUSTED_NONVOLATILE_COPY_FENCE() ASMCompilerBarrier() 1624 /** For use after finished validating guest input. 1625 * What this translates to is architecture dependent. On intel it will 1626 * translate to a CPU load+store fence as well as a compiler memory barrier. */ 1627 #if defined(RT_ARCH_AMD64) 1628 # define RT_UNTRUSTED_VALIDATED_FENCE() do { ASMCompilerBarrier(); ASMMemoryFenceSSE2(); } while (0) 1629 #elif defined(RT_ARCH_X86) 1630 # define RT_UNTRUSTED_VALIDATED_FENCE() do { ASMCompilerBarrier(); ASMMemoryFence(); } while (0) 1631 #else 1632 # define RT_UNTRUSTED_VALIDATED_FENCE() do { ASMCompilerBarrier(); } while (0) 1633 #endif 1616 1634 /** @} */ 1617 1635
Note:
See TracChangeset
for help on using the changeset viewer.

