Hi,
> > + if (pci_bus_is_express(pci_get_bus(dev))) {
> > + dev->cap_present |= QEMU_PCI_CAP_EXPRESS;
> > + ret = pcie_endpoint_cap_init(dev, 0x80);
> > + assert(ret > 0);
>
> Maybe error_setg(errp, ...) && return?No. It really should not trigger, and if it does it is a bug in qemu and not the user doing something wrong. cheers, Gerd
