[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 03/19] qdev: unplug blocker for devices
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v6 03/19] qdev: unplug blocker for devices |
Date: |
Mon, 21 Feb 2022 15:30:34 +0000 |
On Thu, Feb 17, 2022 at 02:48:50AM -0500, Jagannathan Raman wrote:
> diff --git a/softmmu/qdev-monitor.c b/softmmu/qdev-monitor.c
> index 01f3834db5..69d9cf3f25 100644
> --- a/softmmu/qdev-monitor.c
> +++ b/softmmu/qdev-monitor.c
> @@ -945,10 +945,36 @@ void qmp_device_del(const char *id, Error **errp)
> return;
> }
>
> + if (qdev_unplug_blocked(dev, errp)) {
> + return;
> + }
> +
> qdev_unplug(dev, errp);
Can qdev_unplug() check this internally?
signature.asc
Description: PGP signature
- [PATCH v6 00/19] vfio-user server in QEMU, Jagannathan Raman, 2022/02/17
- [PATCH v6 05/19] remote/machine: add vfio-user property, Jagannathan Raman, 2022/02/17
- [PATCH v6 03/19] qdev: unplug blocker for devices, Jagannathan Raman, 2022/02/17
- [PATCH v6 07/19] vfio-user: define vfio-user-server object, Jagannathan Raman, 2022/02/17
- [PATCH v6 02/19] tests/avocado: Specify target VM argument to helper routines, Jagannathan Raman, 2022/02/17
- [PATCH v6 04/19] remote/machine: add HotplugHandler for remote machine, Jagannathan Raman, 2022/02/17
- [PATCH v6 06/19] vfio-user: build library, Jagannathan Raman, 2022/02/17
- [PATCH v6 10/19] vfio-user: run vfio-user context, Jagannathan Raman, 2022/02/17