]> 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 16:14:46 +0000 (19:14 +0300)
commit4f558fd1854d7b0343ca8ac48a4a380ddc73f8b2
treea68d61534497bb585b2644a58d97bacc46654ce9
parentb3c94ecf3c36fde253759cd0a3dc85da1afce007
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