2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/arch/s390/pci
Niklas Schnelle 2844ddbd54 s390/pci: Fix handling of isolated VFs
In contrast to the commit message of the fixed commit VFs whose parent
PF is not configured are not always isolated, that is put on their own
PCI domain. This is because for VFs to be added to an existing PCI
domain it is enough for that PCI domain to share the same topology ID or
PCHID. Such a matching PCI domain without a parent PF may exist when
a PF from the same PCI card created the domain with the VF being a child
of a different, non accessible, PF. While not causing technical issues
it makes the rules which VFs are isolated inconsistent.

Fix this by explicitly checking that the parent PF exists on the PCI
domain determined by the topology ID or PCHID before registering the VF.
This works because a parent PF which is under control of this Linux
instance must be enabled and configured at the point where its child VFs
appear because otherwise SR-IOV could not have been enabled on the
parent.

Fixes: 25f39d3dcb ("s390/pci: Ignore RID for isolated VFs")
Cc: stable@vger.kernel.org
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2025-02-11 19:35:08 +01:00
..
Makefile s390/pci: Report PCI error recovery results via SCLP 2024-12-16 16:14:26 +01:00
pci_bus.c s390/pci: Fix handling of isolated VFs 2025-02-11 19:35:08 +01:00
pci_bus.h s390/pci: Add header guards and includes to internal headers 2024-11-07 10:37:00 +01:00
pci_clp.c s390/pci: Convert to use flag output macros 2024-11-13 14:31:33 +01:00
pci_debug.c iommu/s390: Implement blocking domain 2024-10-15 10:19:07 +02:00
pci_event.c s390/pci: Report PCI error recovery results via SCLP 2024-12-16 16:14:26 +01:00
pci_insn.c s390/pci: Convert to use flag output macros 2024-11-13 14:31:33 +01:00
pci_iov.c s390/pci: Fix handling of isolated VFs 2025-02-11 19:35:08 +01:00
pci_iov.h s390/pci: Fix handling of isolated VFs 2025-02-11 19:35:08 +01:00
pci_irq.c s390/pci: Allow allocation of more than 1 MSI interrupt 2024-07-23 15:54:58 +02:00
pci_kvm_hook.c KVM: s390: pci: Hook to access KVM lowlevel from VFIO 2022-08-29 13:29:28 +02:00
pci_mmio.c s390/pci: Convert to use flag output macros 2024-11-13 14:31:33 +01:00
pci_report.c s390/pci: Add pci_msg debug view to PCI report 2024-12-16 16:14:27 +01:00
pci_report.h s390/pci: Report PCI error recovery results via SCLP 2024-12-16 16:14:26 +01:00
pci_sysfs.c s390/pci: Constify 'struct bin_attribute' 2025-01-07 10:05:35 +01:00
pci.c more s390 updates for 6.13 merge window 2024-11-29 10:40:52 -08:00