[Spice-devel] [PATCH spice-protocol] qxl_dev: Align QXLRam to 4 bytes
Christophe Fergeau
cfergeau at redhat.com
Tue Jul 3 15:32:44 UTC 2018
On Thu, Jun 28, 2018 at 09:43:47PM +0100, Frediano Ziglio wrote:
> This avoids compilers detect misaligned access.
Maybe "This helps some compilers to realize QXLRam is correctly aligned"?
> The structure is allocated at the beginning of a page so surely
> will be 4 bytes aligned.
Not immediatly obvious in qemu, need to go through some indirections,
but the struct indeed seems 4kB aligned.
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180703/be20b257/attachment.sig>
More information about the Spice-devel
mailing list