[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 44/58] sysbus: New sysbus_realize(), sysbus_realize_and_un
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v2 44/58] sysbus: New sysbus_realize(), sysbus_realize_and_unref() |
Date: |
Tue, 9 Jun 2020 10:35:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 5/29/20 3:45 PM, Markus Armbruster wrote:
> 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>
> ---
> include/hw/sysbus.h | 4 +++-
> hw/core/sysbus.c | 14 ++++++++++++--
> 2 files changed, 15 insertions(+), 3 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v2 44/58] sysbus: New sysbus_realize(), sysbus_realize_and_unref(),
Philippe Mathieu-Daudé <=