[PATCH 0/3] hw/pci: Consider reserved slots mask when checking PCI bus is full

Philippe Mathieu-Daudé posted 3 patches 2 weeks, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260707084050.32137-1-philmd@oss.qualcomm.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>
include/hw/core/qdev.h              |  5 +++++
include/hw/pci/pci.h                | 10 ++++-----
include/hw/pci/pci_bus.h            | 10 ++++-----
hw/pci-bridge/pci_expander_bridge.c |  4 ++--
hw/pci/pci.c                        | 35 +++++++++++++++++++++--------
system/qdev-monitor.c               |  3 +++
6 files changed, 46 insertions(+), 21 deletions(-)
[PATCH 0/3] hw/pci: Consider reserved slots mask when checking PCI bus is full
Posted by Philippe Mathieu-Daudé 2 weeks, 5 days ago
Generic fix for the SPARC/Sabre issue reported by Thomas:
https://lore.kernel.org/qemu-devel/20260309181452.83702-1-thuth@redhat.com/
"hw/sparc64/sun4u: Mark unusable PCI busses as full to ease device plugging"

Philippe Mathieu-Daudé (3):
  hw/pci: Have various pci_bus*() methods take a const PCIBus argument
  hw/qdev: Introduce BusClass::is_full() handler
  hw/pci: Consider reserved slots mask when checking PCI bus is full

 include/hw/core/qdev.h              |  5 +++++
 include/hw/pci/pci.h                | 10 ++++-----
 include/hw/pci/pci_bus.h            | 10 ++++-----
 hw/pci-bridge/pci_expander_bridge.c |  4 ++--
 hw/pci/pci.c                        | 35 +++++++++++++++++++++--------
 system/qdev-monitor.c               |  3 +++
 6 files changed, 46 insertions(+), 21 deletions(-)

-- 
2.53.0


Re: [PATCH 0/3] hw/pci: Consider reserved slots mask when checking PCI bus is full
Posted by Mark Cave-Ayland 2 weeks, 4 days ago
On 07/07/2026 09:40, Philippe Mathieu-Daudé wrote:

> Generic fix for the SPARC/Sabre issue reported by Thomas:
> https://lore.kernel.org/qemu-devel/20260309181452.83702-1-thuth@redhat.com/
> "hw/sparc64/sun4u: Mark unusable PCI busses as full to ease device plugging"
> 
> Philippe Mathieu-Daudé (3):
>    hw/pci: Have various pci_bus*() methods take a const PCIBus argument
>    hw/qdev: Introduce BusClass::is_full() handler
>    hw/pci: Consider reserved slots mask when checking PCI bus is full
> 
>   include/hw/core/qdev.h              |  5 +++++
>   include/hw/pci/pci.h                | 10 ++++-----
>   include/hw/pci/pci_bus.h            | 10 ++++-----
>   hw/pci-bridge/pci_expander_bridge.c |  4 ++--
>   hw/pci/pci.c                        | 35 +++++++++++++++++++++--------
>   system/qdev-monitor.c               |  3 +++
>   6 files changed, 46 insertions(+), 21 deletions(-)

Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


ATB,

Mark.