]> git.ipfire.org Git - thirdparty/qemu.git/commit
amd_iommu: Use correct DTE field for interrupt passthrough
authorSairaj Kodilkar <sarunkod@amd.com>
Fri, 7 Feb 2025 04:53:53 +0000 (10:23 +0530)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 22 Mar 2025 07:52:51 +0000 (10:52 +0300)
commit3bed1a6a46f143e2b83d61be631f4e355ee38f5a
tree1ada84ad65e863a5711989d599f659f3c70a936f
parent0bc0ccb4d6f33867f1ace47f84b4855c4ffe5e0b
amd_iommu: Use correct DTE field for interrupt passthrough

Interrupt passthrough is determine by the bits 191,190,187-184.
These bits are part of the 3rd quad word (i.e. index 2) in DTE. Hence
replace dte[3] by dte[2].

Fixes: b44159fe0 ("x86_iommu/amd: Add interrupt remap support when VAPIC is not enabled")
Signed-off-by: Sairaj Kodilkar <sarunkod@amd.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Message-Id: <20250207045354.27329-2-sarunkod@amd.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 63dc0b8647391b372f3bb38ff1066f6b4a5e6ea1)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/amd_iommu.c