All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sairaj Kodilkar <sarunkod@amd.com>
To: "Michael S. Tsirkin" <mst@redhat.com>,
	Alejandro Jimenez <alejandro.j.jimenez@oracle.com>,
	Ani Sinha <anisinha@redhat.com>,
	"Igor Mammedov" <imammedo@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	Sairaj Kodilkar <sarunkod@amd.com>, <qemu-devel@nongnu.org>
Cc: <vasant.hegde@amd.com>, <suravee.suthikulpanit@amd.com>
Subject: [PATCH v2 0/7] acpi_build: Refactor and cleanup AMD IVRS build
Date: Fri, 7 Aug 2026 11:42:43 +0530	[thread overview]
Message-ID: <20260807061250.27739-1-sarunkod@amd.com> (raw)

QEMU reports several IVRS fields that either do not match what the
emulated AMD IOMMU actually implements, or are hardcoded and drift out
of sync with the extended feature register (EFR). This series fixes
them.

The goal is to land a maintainable baseline before adding AMD
hardware-accelerated vIOMMU support in QEMU, where we will require multiple
vIOMMUs attached to different pcie-pxb buses in order to serve set of
passthrough devices.

Please refer to AMD IOMMU spec [1] for more details about IVRS.
[1] https://docs.amd.com/api/khub/documents/GD6kOXjzWsek8QUbn_qMvg/content

Changes since v1:
https://lore.kernel.org/all/20260511123937.32743-1-sarunkod@amd.com/
 - Dropped "acpi_build: Cleanup AMD IOMMU IVRS building" and
   "acpi_build: Introduce necessary macros and structs for AMD IOMMU
   IVRS".
 - Added "amd_iommu: acpi-build: Remove unsupported PPR and HE
   feature"
 - Use pci_get_bdf() instead of pci_bus_num
 - Move AMD IVRS specific macros from acpi-build.h to amd_iommu.h
 - Remove GLX_SUP from feature reporting field

Sairaj Kodilkar (7):
  amd_iommu: Return empty efr for stub call
  tests/acpi: x86: Allow IVRS acpi table changes
  amd_iommu: acpi-build: update PA, GVA and VA size macros
  acpi_build: Use IOMMU pci device to build IOMMU DeviceID
  acpi_build: Build IVRS feature report using extended feature register
  amd_iommu: acpi-build: Remove unsupported PPR and HE feature
  tests/acpi: x86: update golden masters for IVRS

 hw/i386/acpi-build.c     | 65 +++++++++++++++++++++++++++-------------
 hw/i386/amd_iommu-stub.c |  2 +-
 hw/i386/amd_iommu.c      |  2 +-
 hw/i386/amd_iommu.h      | 27 +++++++++++++----
 4 files changed, 67 insertions(+), 29 deletions(-)


base-commit: 3e3ccab106f879b1512f8e0d51a827dd4de30e22
-- 
2.34.1



             reply	other threads:[~2026-08-07  6:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07  6:12 Sairaj Kodilkar [this message]
2026-08-07  6:12 ` [PATCH v2 1/7] amd_iommu: Return empty efr for stub call Sairaj Kodilkar
2026-08-07  6:12 ` [PATCH v2 2/7] tests/acpi: x86: Allow IVRS acpi table changes Sairaj Kodilkar
2026-08-07  6:12 ` [PATCH v2 3/7] amd_iommu: acpi-build: update PA, GVA and VA size macros Sairaj Kodilkar
2026-08-07  6:12 ` [PATCH v2 4/7] acpi_build: Use IOMMU pci device to build IOMMU DeviceID Sairaj Kodilkar
2026-08-07  6:12 ` [PATCH v2 5/7] acpi_build: Build IVRS feature report using extended feature register Sairaj Kodilkar
2026-08-07  6:12 ` [PATCH v2 6/7] amd_iommu: acpi-build: Remove unsupported PPR and HE feature Sairaj Kodilkar
2026-08-07  6:12 ` [PATCH v2 7/7] tests/acpi: x86: update golden masters for IVRS Sairaj Kodilkar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260807061250.27739-1-sarunkod@amd.com \
    --to=sarunkod@amd.com \
    --cc=alejandro.j.jimenez@oracle.com \
    --cc=anisinha@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=vasant.hegde@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.