<arei.gong...@huawei.com> writes: > From: Gonglei <arei.gong...@huawei.com> > > DeviceClass->init is the old interface, let's convert usb > devices to the new realize API. In this way, all the > implementations now use error_setg instead of > qerror_report/error_report for reporting error. [...]
Thanks for doing this work. If you can do a bit more of the same, here are a few more device model init() methods I'd love to have converted, because they use qerror_report_err(): hw/char/serial-pci.c serial_pci_init() multi_serial_pci_init() hw/i386/kvm/pci-assign.c assigned_initfn()