]> git.ipfire.org Git - thirdparty/qemu.git/commit
amd_iommu: Use correct bitmask to set capability BAR
authorSairaj Kodilkar <sarunkod@amd.com>
Fri, 7 Feb 2025 04:53:54 +0000 (10:23 +0530)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 22 Mar 2025 07:52:25 +0000 (10:52 +0300)
commitd34cd1f2dcb751bac6f1085d0b4c97e2d1a42355
treebdaf03fd630eb8405f5256e5c40c4d853cea9319
parente5cb461073122c965f06860fb2a3e5f57f66dc20
amd_iommu: Use correct bitmask to set capability BAR

AMD IOMMU provides the base address of control registers through
IVRS table and PCI capability. Since this base address is of 64 bit,
use 32 bits mask (instead of 16 bits) to set BAR low and high.

Fixes: d29a09ca68 ("hw/i386: Introduce AMD IOMMU")
Signed-off-by: Sairaj Kodilkar <sarunkod@amd.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Message-Id: <20250207045354.27329-3-sarunkod@amd.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 3684717b7407cc395dc9bf522e193dbc85293dee)
(Mjt: adjust for 7.2.x)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/amd_iommu.c
hw/i386/amd_iommu.h