Re: [Qemu-devel] [PATCH] virtio: fix vring_align() on 64-bit win32 platforms

2017-03-22 Thread Stefan Weil
Am 22.03.2017 um 00:06 schrieb Andrew Baumann: From: Eric Blake [mailto:ebl...@redhat.com] Sent: Tuesday, 21 March 2017 15:52 On 03/21/2017 05:31 PM, Andrew Baumann wrote: "long" is 32-bits on win32, but we need to promote it to a 64-bit hwaddr before negating, or else the top half of the

Re: [Qemu-devel] [PATCH] virtio: fix vring_align() on 64-bit win32 platforms

2017-03-21 Thread Andrew Baumann
> From: Eric Blake [mailto:ebl...@redhat.com] > Sent: Tuesday, 21 March 2017 15:52 > > On 03/21/2017 05:31 PM, Andrew Baumann wrote: > > "long" is 32-bits on win32, but we need to promote it to a 64-bit hwaddr > > before negating, or else the top half of the address is truncated > > > >

Re: [Qemu-devel] [PATCH] virtio: fix vring_align() on 64-bit win32 platforms

2017-03-21 Thread Eric Blake
On 03/21/2017 05:31 PM, Andrew Baumann wrote: > "long" is 32-bits on win32, but we need to promote it to a 64-bit hwaddr > before negating, or else the top half of the address is truncated > > Signed-off-by: Andrew Baumann > --- > include/hw/virtio/virtio.h | 2 +-

[Qemu-devel] [PATCH] virtio: fix vring_align() on 64-bit win32 platforms

2017-03-21 Thread Andrew Baumann
"long" is 32-bits on win32, but we need to promote it to a 64-bit hwaddr before negating, or else the top half of the address is truncated Signed-off-by: Andrew Baumann --- include/hw/virtio/virtio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git