hw/i386/intel_iommu: Fix index calculation in vtd_interrupt_remap_msi()
commitfcd8027423300b201b37842b88393dc5c6c8ee9e
authorThomas Huth <thuth@redhat.com>
Wed, 2 Aug 2023 13:57:21 +0000 (2 15:57 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 3 Aug 2023 20:06:49 +0000 (3 16:06 -0400)
tree4b47a3d226d5532e36a9c0c6572b883b7a5cb7f2
parent4572b22cf9ba432fa3955686853c706a1821bbc7
hw/i386/intel_iommu: Fix index calculation in vtd_interrupt_remap_msi()

The values in "addr" are populated locally in this function in host
endian byte order, so we must not swap the index_l field here.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230802135723.178083-5-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>
hw/i386/intel_iommu.c