]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/intel_iommu: Fix index calculation in vtd_interrupt_remap_msi()
authorThomas Huth <thuth@redhat.com>
Wed, 2 Aug 2023 13:57:21 +0000 (15:57 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Aug 2023 16:14:46 +0000 (19:14 +0300)
commite0711f74b209b4521f3c0b39ece96772b28db10b
treec3634b1cd3eb1135cd5b2a05c2e09368341135f0
parent4f558fd1854d7b0343ca8ac48a4a380ddc73f8b2
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>
(cherry picked from commit fcd8027423300b201b37842b88393dc5c6c8ee9e)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/intel_iommu.c