Re: [Qemu-devel] [PATCH v1 2/2] include/qemu/atomic: add compile time asserts

2016-04-04 Thread Paolo Bonzini
On 01/04/2016 17:03, Alex Bennée wrote: > >> > To be safely portable no atomic access should be trying to do more than >> > the natural word width of the host. The most common abuse is trying to >> > atomically access 64 bit values on a 32 bit host. >> > >> > This patch adds some QEMU_BUILD_BUG_

Re: [Qemu-devel] [PATCH v1 2/2] include/qemu/atomic: add compile time asserts

2016-04-01 Thread Alex Bennée
Alex Bennée writes: > To be safely portable no atomic access should be trying to do more than > the natural word width of the host. The most common abuse is trying to > atomically access 64 bit values on a 32 bit host. > > This patch adds some QEMU_BUILD_BUG_ON to the __atomic instrinsic paths >

[Qemu-devel] [PATCH v1 2/2] include/qemu/atomic: add compile time asserts

2016-03-21 Thread Alex Bennée
To be safely portable no atomic access should be trying to do more than the natural word width of the host. The most common abuse is trying to atomically access 64 bit values on a 32 bit host. This patch adds some QEMU_BUILD_BUG_ON to the __atomic instrinsic paths to create a build failure if (siz