vhost-user: fix misaligned access to payload
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 8 Jan 2018 17:47:11 +0000 (19:47 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 18 Jan 2018 19:52:39 +0000 (21:52 +0200)
commit69aff030643c1616474458cf7e19fc15a5f8f462
treea4bfd1d96c0cc87889b35f75f14dd73d2a45f673
parent24e34754eb78064abafd3f9a59bb35a0e2bcf406
vhost-user: fix misaligned access to payload

We currently take a pointer to a misaligned field of a packed structure.
clang reports this as a build warning.
A fix is to keep payload in a separate structure, and access is it
from there using a vectored write.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-user.c