hw/i386/intel_iommu: Fix struct VTDInvDescIEC on big endian hosts
commit4572b22cf9ba432fa3955686853c706a1821bbc7
authorThomas Huth <thuth@redhat.com>
Wed, 2 Aug 2023 13:57:20 +0000 (2 15:57 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 3 Aug 2023 20:06:49 +0000 (3 16:06 -0400)
tree2298562c240452e3985949114631ea699b0efeae
parent642ba89672279fbdd14016a90da239c85e845d18
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>
hw/i386/intel_iommu_internal.h