[PATCH v5 0/3] drivers: Simplify handling of pci_sbdf_t in passthrough/amd

Andrii Sultanov posted 3 patches 3 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.1752736989.git.andriy.sultanov@vates.tech
xen/drivers/passthrough/amd/iommu.h         | 11 +--
xen/drivers/passthrough/amd/iommu_acpi.c    | 68 +++++++++----------
xen/drivers/passthrough/amd/iommu_cmd.c     | 10 +--
xen/drivers/passthrough/amd/iommu_detect.c  | 27 ++++----
xen/drivers/passthrough/amd/iommu_init.c    | 39 +++++------
xen/drivers/passthrough/amd/iommu_intr.c    | 75 ++++++++++-----------
xen/drivers/passthrough/amd/iommu_map.c     |  6 +-
xen/drivers/passthrough/amd/pci_amd_iommu.c | 50 +++++++-------
8 files changed, 138 insertions(+), 148 deletions(-)
[PATCH v5 0/3] drivers: Simplify handling of pci_sbdf_t in passthrough/amd
Posted by Andrii Sultanov 3 months, 2 weeks ago
From: Andrii Sultanov <andriy.sultanov@vates.tech>

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         | 11 +--
 xen/drivers/passthrough/amd/iommu_acpi.c    | 68 +++++++++----------
 xen/drivers/passthrough/amd/iommu_cmd.c     | 10 +--
 xen/drivers/passthrough/amd/iommu_detect.c  | 27 ++++----
 xen/drivers/passthrough/amd/iommu_init.c    | 39 +++++------
 xen/drivers/passthrough/amd/iommu_intr.c    | 75 ++++++++++-----------
 xen/drivers/passthrough/amd/iommu_map.c     |  6 +-
 xen/drivers/passthrough/amd/pci_amd_iommu.c | 50 +++++++-------
 8 files changed, 138 insertions(+), 148 deletions(-)

-- 
2.49.0