All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] drivers: Simplify handling of pci_sbdf_t in passthrough/amd
@ 2025-04-14 19:19 Andrii Sultanov
  2025-04-14 19:19 ` [PATCH v4 1/3] drivers: Change amd_iommu struct to contain pci_sbdf_t, simplify code Andrii Sultanov
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Andrii Sultanov @ 2025-04-14 19:19 UTC (permalink / raw)
  To: xen-devel
  Cc: Andrii Sultanov, Jan Beulich, Andrew Cooper, Roger Pau Monné

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    | 58 ++++++++--------
 xen/drivers/passthrough/amd/iommu_cmd.c     | 10 +--
 xen/drivers/passthrough/amd/iommu_detect.c  | 18 ++---
 xen/drivers/passthrough/amd/iommu_init.c    | 39 +++++------
 xen/drivers/passthrough/amd/iommu_intr.c    | 76 ++++++++++-----------
 xen/drivers/passthrough/amd/iommu_map.c     |  6 +-
 xen/drivers/passthrough/amd/pci_amd_iommu.c | 50 +++++++-------
 8 files changed, 130 insertions(+), 138 deletions(-)

-- 
2.49.0



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

end of thread, other threads:[~2025-04-15 11:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14 19:19 [PATCH v4 0/3] drivers: Simplify handling of pci_sbdf_t in passthrough/amd Andrii Sultanov
2025-04-14 19:19 ` [PATCH v4 1/3] drivers: Change amd_iommu struct to contain pci_sbdf_t, simplify code Andrii Sultanov
2025-04-15  7:34   ` dmkhn
2025-04-15  7:38     ` Jan Beulich
2025-04-15  7:56     ` Andriy Sultanov
2025-04-15 10:36   ` Jan Beulich
2025-04-14 19:19 ` [PATCH v4 2/3] drivers: Change find_iommu_for_device function to take " Andrii Sultanov
2025-04-15  7:50   ` dmkhn
2025-04-14 19:19 ` [PATCH v4 3/3] drivers: Make ioapic_sbdf and hpet_sbdf contain pci_sbdf_t Andrii Sultanov
2025-04-15  7:05   ` dmkhn
2025-04-15  7:15     ` Andriy Sultanov
2025-04-15  7:35       ` Jan Beulich
2025-04-15 11:12   ` Jan Beulich

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.