Searched hist:"496 a8525622d4ac5d276f76840dd30eddb73672d" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/include/hw/ |
H A D | sysbus.h | diff 496a8525622d4ac5d276f76840dd30eddb73672d Wed Jun 10 00:32:33 CDT 2020 Markus Armbruster <armbru@redhat.com> sysbus: New sysbus_realize(), sysbus_realize_and_unref()
Sysbus devices almost always plug into the main system bus. qdev_create() even has a convenience feature to make that easy: a null bus argument gets replaced by the main system bus. qdev_realize() and qdev_realize_and_unref() do the same.
We can do better. Provide convenience wrappers around qdev_realize() and qdev_realize_and_unref() that don't take a @bus argument. They always pass the main system bus.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-45-armbru@redhat.com>
|
/openbmc/qemu/hw/core/ |
H A D | sysbus.c | diff 496a8525622d4ac5d276f76840dd30eddb73672d Wed Jun 10 00:32:33 CDT 2020 Markus Armbruster <armbru@redhat.com> sysbus: New sysbus_realize(), sysbus_realize_and_unref()
Sysbus devices almost always plug into the main system bus. qdev_create() even has a convenience feature to make that easy: a null bus argument gets replaced by the main system bus. qdev_realize() and qdev_realize_and_unref() do the same.
We can do better. Provide convenience wrappers around qdev_realize() and qdev_realize_and_unref() that don't take a @bus argument. They always pass the main system bus.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-45-armbru@redhat.com>
|