aboutsummaryrefslogtreecommitdiff
path: root/scripts/vmstate-static-checker.py
diff options
context:
space:
mode:
authorSebastian Ott <sebott@redhat.com>2024-12-03 13:19:28 +0100
committerMichael S. Tsirkin <mst@redhat.com>2025-01-15 13:05:33 -0500
commit694632fd44987cc4618612a38ad151047524a590 (patch)
tree5110eb4a1cffbb758012392d637708b8fc5669e2 /scripts/vmstate-static-checker.py
parent1e77a4a32f8b7b6699a2f8b1f98e8fada902ba1f (diff)
downloadqemu-694632fd44987cc4618612a38ad151047524a590.zip
qemu-694632fd44987cc4618612a38ad151047524a590.tar.gz
qemu-694632fd44987cc4618612a38ad151047524a590.tar.bz2
pci: ensure valid link status bits for downstream ports
PCI hotplug for downstream endpoints on arm fails because Linux' PCIe hotplug driver doesn't like the QEMU provided LNKSTA: pcieport 0000:08:01.0: pciehp: Slot(2): Card present pcieport 0000:08:01.0: pciehp: Slot(2): Link Up pcieport 0000:08:01.0: pciehp: Slot(2): Cannot train link: status 0x2000 There's 2 cases where LNKSTA isn't setup properly: * the downstream device has no express capability * max link width of the bridge is 0 Move the sanity checks added via 88c869198aa63 ("pci: Sanity test minimum downstream LNKSTA") outside of the branch to make sure downstream ports always have a valid LNKSTA. Signed-off-by: Sebastian Ott <sebott@redhat.com> Tested-by: Zhenyu Zhang <zhenyzha@redhat.com> Message-Id: <20241203121928.14861-1-sebott@redhat.com> Reviewed-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/vmstate-static-checker.py')
0 files changed, 0 insertions, 0 deletions