mbox series

[v2,0/3] drivers: Simplify handling of pci_sbdf_t in passthrough/amd

Message ID cover.1742063500.git.sultanovandriy@gmail.com (mailing list archive)
Headers show
Series drivers: Simplify handling of pci_sbdf_t in passthrough/amd | expand

Message

Andrii Sultanov March 16, 2025, 10:08 a.m. UTC
Step-by-step, use pci_sbdf_t directly where appropriate instead of
handling seg and bdf separately. This removes conversions, reduces code
size and simplifies code in general.

Andrii Sultanov (3):
  drivers: Change amd_iommu struct to contain pci_sbdf_t, simplify code
  drivers: Change find_iommu_for_device function to take pci_sbdf_t,
    simplify code
  drivers: Make ioapic_sbdf and hpet_sbdf contain pci_sbdf_t

 xen/drivers/passthrough/amd/iommu.h         | 29 ++++++++++---
 xen/drivers/passthrough/amd/iommu_acpi.c    | 14 +++---
 xen/drivers/passthrough/amd/iommu_cmd.c     |  6 +--
 xen/drivers/passthrough/amd/iommu_detect.c  |  2 +-
 xen/drivers/passthrough/amd/iommu_init.c    | 27 ++++++------
 xen/drivers/passthrough/amd/iommu_intr.c    | 48 ++++++++++-----------
 xen/drivers/passthrough/amd/iommu_map.c     |  4 +-
 xen/drivers/passthrough/amd/pci_amd_iommu.c | 32 +++++++-------
 8 files changed, 88 insertions(+), 74 deletions(-)