qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

sysbus: sysbus_init_child_obj() is now unused, drop

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200610053247.1583243-52-armbru@redhat.com>

-25
-8
hw/core/sysbus.c
··· 355 355 return main_system_bus; 356 356 } 357 357 358 - void sysbus_init_child_obj(Object *parent, const char *childname, void *child, 359 - size_t childsize, const char *childtype) 360 - { 361 - object_initialize_child_with_props(parent, childname, child, childsize, 362 - childtype, &error_abort, NULL); 363 - qdev_set_parent_bus(DEVICE(child), sysbus_get_default()); 364 - } 365 - 366 358 static void sysbus_register_types(void) 367 359 { 368 360 type_register_static(&system_bus_info);
-17
include/hw/sysbus.h
··· 93 93 bool sysbus_realize(SysBusDevice *dev, Error **errp); 94 94 bool sysbus_realize_and_unref(SysBusDevice *dev, Error **errp); 95 95 96 - /** 97 - * sysbus_init_child_obj: 98 - * @parent: The parent object 99 - * @childname: Used as name of the "child<>" property in the parent 100 - * @child: A pointer to the memory to be used for the object. 101 - * @childsize: The maximum size available at @child for the object. 102 - * @childtype: The name of the type of the object to instantiate. 103 - * 104 - * This function will initialize an object and attach it to the main system 105 - * bus. The memory for the object should have already been allocated. The 106 - * object will then be added as child to the given parent. The returned object 107 - * has a reference count of 1 (for the "child<...>" property from the parent), 108 - * so the object will be finalized automatically when the parent gets removed. 109 - */ 110 - void sysbus_init_child_obj(Object *parent, const char *childname, void *child, 111 - size_t childsize, const char *childtype); 112 - 113 96 /* Call func for every dynamically created sysbus device in the system */ 114 97 void foreach_dynamic_sysbus_device(FindSysbusDeviceFunc *func, void *opaque); 115 98