virtio: fix vring_align() on 64-bit windows
commit33fb5dfa52320e49f461eff49d7064e128671010
authorAndrew Baumann <Andrew.Baumann@microsoft.com>
Fri, 24 Mar 2017 23:19:43 +0000 (24 16:19 -0700)
committerStefan Weil <sw@weilnetz.de>
Tue, 28 Mar 2017 20:04:41 +0000 (28 22:04 +0200)
tree87cd1d8e578f7d6d59743a8efa835e766fd4b215
parent6427bc145c7aecde6aef22d5a06dd0471654283b
virtio: fix vring_align() on 64-bit windows

long is 32-bits on 64-bit windows, which caused the top half of the
address to be truncated; this patch changes it to use the
QEMU_ALIGN_UP macro which does not suffer the same problem

Signed-off-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
include/hw/virtio/virtio.h