]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/intel_iommu: Fix trivial endianness problems
authorThomas Huth <thuth@redhat.com>
Wed, 2 Aug 2023 13:57:18 +0000 (15:57 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Aug 2023 05:27:03 +0000 (08:27 +0300)
commitcf2be5881f8da04f03e9a58591358e6057433f26
tree639085be038ce78bff3a82d1f11c54366e5db7e1
parent1451a86f6dfe4d1648411bd460d3a4613485d2b1
hw/i386/intel_iommu: Fix trivial endianness problems

After reading the guest memory with dma_memory_read(), we have
to make sure that we byteswap the little endian data to the host's
byte order.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230802135723.178083-2-thuth@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
(cherry picked from commit cc2a08480e19007c05be8fe5b6893e20448954dc)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/intel_iommu.c