On Wed, 29 Apr 2026 14:48:38 +0100 Joshua Lant <[email protected]> wrote:
> PCI_EXP_SLTCAP_PCP (Power Controller Present) must be set in the DSP's > slot capabilities for PCIe managed hot-remove to complete. Without this > notification from the guest of removal cannot be sent back to the > device, so device listeners for unrealizing will not fire. > > Signed-off-by: Joshua Lant <[email protected]> Another fix by the sound of it? Please send separately (Well with the other one perhaps) with a suitable Fixes tag. > --- > hw/pci-bridge/cxl_downstream.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/pci-bridge/cxl_downstream.c b/hw/pci-bridge/cxl_downstream.c > index 91c5e6a605..5322c46900 100644 > --- a/hw/pci-bridge/cxl_downstream.c > +++ b/hw/pci-bridge/cxl_downstream.c > @@ -228,6 +228,8 @@ static const Property cxl_dsp_props[] = { > DEFINE_PROP_PCIE_LINK_WIDTH("x-width", PCIESlot, > width, PCIE_LINK_WIDTH_16), > DEFINE_PROP_BOOL("x-256b-flit", PCIESlot, flitmode, true), > + DEFINE_PROP_BIT(COMPAT_PROP_PCP, PCIDevice, cap_present, > + QEMU_PCIE_SLTCAP_PCP_BITNR, true), > }; > > static void cxl_dsp_class_init(ObjectClass *oc, const void *data)
