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: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH v6 08/12] vhost-user: add vhost_user_input_get_config()
Date: Wed, 13 Mar 2019 07:26:14 +0100
User-agent: NeoMutt/20180716

> > 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.

cheers,
  Gerd




reply via email to

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