> On Feb 21, 2022, at 10:30 AM, Stefan Hajnoczi <stefa...@redhat.com> wrote: > > 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? Yes, I think qdev_unplug() could check this internally. Will move it there. Thank you! -- Jag
- [PATCH v6 09/19] vfio-user: find and init PCI device Jagannathan Raman
- Re: [PATCH v6 09/19] vfio-user: find and init PCI d... Stefan Hajnoczi
- [PATCH v6 05/19] remote/machine: add vfio-user property Jagannathan Raman
- Re: [PATCH v6 05/19] remote/machine: add vfio-user ... Stefan Hajnoczi
- [PATCH v6 15/19] vfio-user: handle device interrupts Jagannathan Raman
- [PATCH v6 03/19] qdev: unplug blocker for devices Jagannathan Raman
- Re: [PATCH v6 03/19] qdev: unplug blocker for devic... Stefan Hajnoczi
- Re: [PATCH v6 03/19] qdev: unplug blocker for devic... Stefan Hajnoczi
- Re: [PATCH v6 03/19] qdev: unplug blocker for d... Jag Raman
- [PATCH v6 02/19] tests/avocado: Specify target VM argume... Jagannathan Raman
- [PATCH v6 10/19] vfio-user: run vfio-user context Jagannathan Raman
- [PATCH v6 08/19] vfio-user: instantiate vfio-user contex... Jagannathan Raman
- Re: [PATCH v6 08/19] vfio-user: instantiate vfio-us... Stefan Hajnoczi
- [PATCH v6 12/19] vfio-user: IOMMU support for remote dev... Jagannathan Raman
- Re: [PATCH v6 12/19] vfio-user: IOMMU support for r... Stefan Hajnoczi