]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/x86-iommu: Fix endianness issue in x86_iommu_irq_to_msi_message()
authorThomas Huth <thuth@redhat.com>
Wed, 2 Aug 2023 13:57:22 +0000 (15:57 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Aug 2023 16:14:46 +0000 (19:14 +0300)
commitdab9a65dfa531bdcf0b7bcaef58358b31922ffb6
tree9e5e65f297ccc4e6c89a84f9593821ca2331d716
parente0711f74b209b4521f3c0b39ece96772b28db10b
hw/i386/x86-iommu: Fix endianness issue in x86_iommu_irq_to_msi_message()

The values in "msg" are assembled in host endian byte order (the other
field are also not swapped), so we must not swap the __addr_head here.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230802135723.178083-6-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 37cf5cecb039a063c0abe3b51ae30f969e73aa84)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/x86-iommu.c