spice-protocol/spice
Frediano Ziglio beda5ec7a6 qxl_dev: Align QXLRam to 4 bytes
This avoids compilers detect misaligned access which can lead to
warnings.
In QEMU the structure is allocated at the beginning of a 4Kb page,
in Xspice is allocated with a calloc, so the structure will end up 4
bytes aligned as well with these users. We are not aware of other users
of QXLRam, but if there was, it's likely the struct would be at least
naturally aligned, so this change should not impact anyone.
Aligning to 4 bytes maintains the size of the structure unchanged
avoiding possible ABI changes.
clang currently generates an invalid function call if a misaligned
4 byte atomic operation is detected.

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1565766

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2018-07-11 10:19:45 +01:00
..
barrier.h Use gcc builtin rather than asm for memory barriers 2016-01-08 15:31:38 +01:00
controller_prot.h Fix typo in comment 2018-06-21 11:27:09 +01:00
end-packed.h qxl_dev: Align QXLRam to 4 bytes 2018-07-11 10:19:45 +01:00
enums.h Add support for h265 video codec 2018-06-19 15:31:32 +01:00
error_codes.h Clean up and standardize header guards 2010-02-04 16:47:14 +01:00
foreign_menu_prot.h Fix typo in comment 2018-06-21 11:27:09 +01:00
ipc_ring.h Fix up SPICE_SPICE typo 2010-02-04 18:10:50 +01:00
macros.h macros: Use Visual C++ built-ins for byte swapping if available 2018-03-09 15:41:09 +00:00
Makefile.am Add support for building with meson 2018-05-08 10:38:22 +01:00
meson.build Add support for building with meson 2018-05-08 10:38:22 +01:00
protocol.h Add support for h265 video codec 2018-06-19 15:31:32 +01:00
qxl_dev.h qxl_dev: Align QXLRam to 4 bytes 2018-07-11 10:19:45 +01:00
qxl_windows.h Add QXL_ESCAPE_MONITOR_CONFIG enum 2015-06-30 16:23:42 +02:00
start-packed.h qxl_dev: Align QXLRam to 4 bytes 2018-07-11 10:19:45 +01:00
stats.h Define and use new SPICE_MAGIC_CONST macro 2015-08-12 14:15:27 +02:00
stream-device.h stream-device: Define an enumeration to store capabilities constants 2018-04-11 12:31:08 +01:00
types.h Add byteswapping macros 2010-05-19 16:02:40 +02:00
vd_agent.h vd_agent: Do not define structures without fields 2018-05-31 17:20:54 +01:00
vdi_dev.h Define and use new SPICE_MAGIC_CONST macro 2015-08-12 14:15:27 +02:00