diff options
author | Niklas Schnelle <schnelle@linux.ibm.com> | 2025-03-20 19:26:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-20 11:23:19 +0300 |
commit | d982f8316873708c2815274384486021029c311e (patch) | |
tree | 102e769e502eff2a697c0700d5a02791cc214f75 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 91afe2524d0a26bb75663edecd53f1adf12dc794 (diff) | |
download | linux-d982f8316873708c2815274384486021029c311e.tar.xz |
s390/pci: Fix zpci_bus_is_isolated_vf() for non-VFs
commit 8691abd3afaadd816a298503ec1a759df1305d2e upstream.
For non-VFs, zpci_bus_is_isolated_vf() should return false because they
aren't VFs. While zpci_iov_find_parent_pf() specifically checks if
a function is a VF, it then simply returns that there is no parent. The
simplistic check for a parent then leads to these functions being
confused with isolated VFs and isolating them on their own domain even
if sibling PFs should share the domain.
Fix this by explicitly checking if a function is not a VF. Note also
that at this point the case where RIDs are ignored is already handled
and in this case all PCI functions get isolated by being detected in
zpci_bus_is_multifunction_root().
Cc: stable@vger.kernel.org
Fixes: 2844ddbd540f ("s390/pci: Fix handling of isolated VFs")
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions