]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/intel_iommu: Fix struct VTDInvDescIEC on big endian hosts
authorThomas Huth <thuth@redhat.com>
Wed, 2 Aug 2023 13:57:20 +0000 (15:57 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Aug 2023 05:27:03 +0000 (08:27 +0300)
commit31e7ef997e849602f742a60d69c1b3b234eb1547
tree9152bceb7ea82d5a03ddf5277c5532710c209312
parentbbe3627f44e079a3eadb7713fa3aca291edf6ec9
hw/i386/intel_iommu: Fix struct VTDInvDescIEC on big endian hosts

On big endian hosts, we need to reverse the bitfield order in the
struct VTDInvDescIEC, just like it is already done for the other
bitfields in the various structs of the intel-iommu device.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230802135723.178083-4-thuth@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
(cherry picked from commit 4572b22cf9ba432fa3955686853c706a1821bbc7)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/intel_iommu_internal.h