You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/pci-bridge
Jonathan Cameron d4d5212c54 hw/pci-bridge: Make pxb_dev_realize_common() return if it succeeded
For the CXL PXB there is additional code after pxb_dev_realize_common()
is called.  If that realize failed (e.g. due to an out of range numa_node)
we will get a segfault.  Return a bool so the caller can check if the
pxb_dev_realize_common() succeeded or not without having to poke around
in the errp.

Fixes: 4f8db8711c ("hw/pxb: Allow creation of a CXL PXB (host bridge)")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20241014121902.2146424-8-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
4 weeks ago
..
Kconfig hw/pci-bridge: Add a Kconfig switch for the normal PCI bridge 1 month ago
cxl_downstream.c hw/pci-bridge/cxl_upstream: Provide x-speed and x-width properties. 4 weeks ago
cxl_root_port.c hw/pci-bridge/cxl_root_port: Provide x-speed and x-width properties. 4 weeks ago
cxl_upstream.c hw/pci-bridge/cxl-upstream: Add properties to control link speed and width 4 weeks ago
gen_pcie_root_port.c hw/pci-bridge: Constify VMState 11 months ago
i82801b11.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
ioh3420.c hw/pci-bridge: Constify VMState 11 months ago
meson.build hw/pci-bridge: Add a Kconfig switch for the normal PCI bridge 1 month ago
pci_bridge_dev.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
pci_expander_bridge.c hw/pci-bridge: Make pxb_dev_realize_common() return if it succeeded 4 weeks ago
pci_expander_bridge_stubs.c pci/pci_expander_bridge: For CXL HB delay the HB register memory region setup. 3 years ago
pcie_pci_bridge.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
pcie_root_port.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago
simba.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
xio3130_downstream.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
xio3130_upstream.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago