[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 05/15] device-hotplug: Replace current_machine by qdev_get_ma
From: |
Alistair Francis |
Subject: |
Re: [PATCH 05/15] device-hotplug: Replace current_machine by qdev_get_machine() |
Date: |
Sun, 12 Jan 2020 17:42:45 +0800 |
On Thu, Jan 9, 2020 at 11:27 PM Philippe Mathieu-Daudé
<address@hidden> wrote:
>
> As we want to remove the global current_machine,
> replace MACHINE_GET_CLASS(current_machine) by
> MACHINE_GET_CLASS(qdev_get_machine()).
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Alistair
> ---
> device-hotplug.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/device-hotplug.c b/device-hotplug.c
> index f01d53774b..44d687f254 100644
> --- a/device-hotplug.c
> +++ b/device-hotplug.c
> @@ -45,7 +45,7 @@ static DriveInfo *add_init_drive(const char *optstr)
> if (!opts)
> return NULL;
>
> - mc = MACHINE_GET_CLASS(current_machine);
> + mc = MACHINE_GET_CLASS(qdev_get_machine());
> dinfo = drive_new(opts, mc->block_default_type, &err);
> if (err) {
> error_report_err(err);
> --
> 2.21.1
>
>
- [PATCH 03/15] hw/ppc/spapr_rtas: Access MachineState via SpaprMachineState argument, (continued)
[PATCH 05/15] device-hotplug: Replace current_machine by qdev_get_machine(), Philippe Mathieu-Daudé, 2020/01/09
- Re: [PATCH 05/15] device-hotplug: Replace current_machine by qdev_get_machine(),
Alistair Francis <=
[PATCH 06/15] migration/savevm: Replace current_machine by qdev_get_machine(), Philippe Mathieu-Daudé, 2020/01/09
[PATCH 07/15] hw/core/machine-qmp-cmds: Replace current_machine by qdev_get_machine(), Philippe Mathieu-Daudé, 2020/01/09
[PATCH 08/15] target/arm/monitor: Replace current_machine by qdev_get_machine(), Philippe Mathieu-Daudé, 2020/01/09
[PATCH 09/15] device_tree: Replace current_machine by qdev_get_machine(), Philippe Mathieu-Daudé, 2020/01/09