qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v6 08/12] vhost-user: add vhost_user_input_get_c


From: Marc-André Lureau
Subject: Re: [Qemu-devel] [PATCH v6 08/12] vhost-user: add vhost_user_input_get_config()
Date: Wed, 13 Mar 2019 12:45:15 +0100

Hi

On Wed, Mar 13, 2019 at 7:26 AM Gerd Hoffmann <address@hidden> wrote:
>
> > > And why host endianness? Everything else is little endian ...
> >
> > Hmm, I am not sure we correctly handle endianness in
> > virtio_input_get_config(). virtio_input_add_config() do not use LE.
> > Gerd, have you checked cross-endian scenarios?
>
> Sure.  BE ppc tcg guest on LE x86 host works fine.
>
> All 16 and 32 bit fields in config space and protocol
> messages are defined to be little endian.  It's a pure
> virtio-1.0 device after all ...
>
> Note that all the fields virtio_input_get_config() and
> virtio_input_add_config() are looking at are 8 bit.
>

Right, thanks for clarifying. So we can simply drop "in host
endianness" from VHOST_USER_INPUT_GET_CONFIG documentation.


-- 
Marc-André Lureau



reply via email to

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