qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Emulated AMD IOMMU cleanup and fixes
@ 2025-02-07  4:53 Sairaj Kodilkar
  2025-02-07  4:53 ` [PATCH 1/2] amd_iommu: Use correct DTE field for interrupt passthrough Sairaj Kodilkar
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Sairaj Kodilkar @ 2025-02-07  4:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: mst, vasant.hegde, suravee.suthikulpanit, Sairaj Kodilkar

This series provides few bug fixes for emulated AMD IOMMU. The series is based
on top of qemu upstream master commit d922088eb4ba.

Patch 1: The code was using wrong DTE field to determine interrupt passthrough.
         Hence replaced it with correct field according to [1].

Patch 2: Current code sets the PCI capability BAR low and high to the
         lower and upper 16 bits of AMDVI_BASE_ADDR respectively, which is
         wrong. Instead use 32 bit mask to set the PCI capability BAR low and
         high.
         The guest IOMMU driver works with current qemu code because it uses
         base address from the IVRS table and not the one provided by
         PCI capability.

Sairaj Kodilkar (2):
  amd_iommu: Use correct DTE field for interrupt passthrough
  amd_iommu: Use correct bitmask to set capability BAR

 hw/i386/amd_iommu.c | 10 +++++-----
 hw/i386/amd_iommu.h |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-02-28 10:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07  4:53 [PATCH v2 0/2] Emulated AMD IOMMU cleanup and fixes Sairaj Kodilkar
2025-02-07  4:53 ` [PATCH 1/2] amd_iommu: Use correct DTE field for interrupt passthrough Sairaj Kodilkar
2025-02-07  4:53 ` [PATCH 2/2] amd_iommu: Use correct bitmask to set capability BAR Sairaj Kodilkar
2025-02-07  4:59 ` [PATCH v2 0/2] Emulated AMD IOMMU cleanup and fixes Arun Kodilkar, Sairaj
2025-02-25  8:47 ` Michael Tokarev
2025-02-26 12:53   ` Vasant Hegde
2025-02-26 15:22     ` Michael Tokarev
2025-02-28 10:04       ` Vasant Hegde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).