diff options
author | Niklas Schnelle <schnelle@linux.ibm.com> | 2022-10-25 14:56:53 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-11-03 17:40:53 +0300 |
commit | 1a3a7d64bbce3179401f4e691522ff992aa1b8a1 (patch) | |
tree | 7eb3984cd30197b5e8baf56e278b8d4f02b4dc60 /arch/s390/include/asm/pci.h | |
parent | bf8d2dd2ed0825a58f31cc510245a1eb46f8a87e (diff) | |
download | linux-1a3a7d64bbce3179401f4e691522ff992aa1b8a1.tar.xz |
iommu/s390: Get rid of s390_domain_device
The struct s390_domain_device serves the sole purpose as list entry for
the devices list of a struct s390_domain. As it contains no additional
information besides a list_head and a pointer to the struct zpci_dev we
can simplify things and just thread the device list through struct
zpci_dev directly. This removes the need to allocate during domain
attach and gets rid of one level of indirection during mapping
operations.
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20221025115657.1666860-3-schnelle@linux.ibm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'arch/s390/include/asm/pci.h')
-rw-r--r-- | arch/s390/include/asm/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h index 108e732d7b14..15f8714ca9b7 100644 --- a/arch/s390/include/asm/pci.h +++ b/arch/s390/include/asm/pci.h @@ -117,6 +117,7 @@ struct zpci_bus { struct zpci_dev { struct zpci_bus *zbus; struct list_head entry; /* list of all zpci_devices, needed for hotplug, etc. */ + struct list_head iommu_list; struct kref kref; struct hotplug_slot hotplug_slot; |