qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/2] vhost-user: fix misaligned access to payloa


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 2/2] vhost-user: fix misaligned access to payload
Date: Tue, 9 Jan 2018 15:15:20 +0000
User-agent: Mutt/1.9.1 (2017-09-22)

On Mon, Jan 08, 2018 at 07:50:44PM +0200, Michael S. Tsirkin wrote:
> 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 <address@hidden>
> ---
>  hw/virtio/vhost-user.c | 39 ++++++++++++++++++++++++---------------
>  1 file changed, 24 insertions(+), 15 deletions(-)

Reviewed-by: Stefan Hajnoczi <address@hidden>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]