]> git.proxmox.com Git - mirror_qemu.git/commit
qdev-monitor: Forbid repeated device_del
authorJulia Suvorova <jusual@redhat.com>
Thu, 20 Feb 2020 16:55:56 +0000 (17:55 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 25 Feb 2020 08:18:01 +0000 (09:18 +0100)
commitcce8944cc9efab47d4bf29cfffb3470371c3541b
treeed52680cf5a3703955a0c34ab8bcd23d725928e4
parent037fb5eb3941c80a2b7c36a843e47207ddb004d4
qdev-monitor: Forbid repeated device_del

Device unplug can be done asynchronously. Thus, sending the second
device_del before the previous unplug is complete may lead to
unexpected results. On PCIe devices, this cancels the hot-unplug
process.

Signed-off-by: Julia Suvorova <jusual@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200220165556.39388-1-jusual@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qdev-monitor.c