Re: [PATCH v6 2/4] virtio-iommu: Fix endianness in get_config

2021-11-29 Thread Jean-Philippe Brucker
On Sat, Nov 27, 2021 at 08:29:08AM +0100, Eric Auger wrote: > Endianess is not properly handled when populating > the returned config. Use the cpu_to_le* primitives > for each separate field. Also, while at it, trace > the domain range start. > > Signed-off-by: Eric Auger > Reported-by: Thomas Hu

[PATCH v6 2/4] virtio-iommu: Fix endianness in get_config

2021-11-26 Thread Eric Auger
Endianess is not properly handled when populating the returned config. Use the cpu_to_le* primitives for each separate field. Also, while at it, trace the domain range start. Signed-off-by: Eric Auger Reported-by: Thomas Huth --- hw/virtio/trace-events | 2 +- hw/virtio/virtio-iommu.c | 22 +