virt: Fix crash when introspecting the device
Use the new object_initialize_child() and sysbus_init_child_obj() to fix the issue. Signed-off-by: NAlistair Francis <alistair.francis@wdc.com> Suggested-by: NThomas Huth <thuth@redhat.com> Reviewed-by: NMichael Clark <mjc@sifive.com> Reviewed-by: NThomas Huth <thuth@redhat.com> Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
Showing
想要评论请 注册 或 登录