From: Ján Tomko Date: Thu, 14 Dec 2017 09:45:31 +0000 (+0100) Subject: qemu: remove input device after receiving the event X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8d51042ef873d2a868d505f0eff32346ba041a95;p=libvirt.git qemu: remove input device after receiving the event Also call qemuDomainRemoveInputDevice if we receive the event after the Detach API ends. Commit 67486bb failed to include this. https://bugzilla.redhat.com/show_bug.cgi?id=1524837 Signed-off-by: Ján Tomko Reviewed-by: Erik Skultety --- diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index c4f8c0fa4a..2033c7dd0a 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -4412,10 +4412,13 @@ qemuDomainRemoveDevice(virQEMUDriverPtr driver, ret = qemuDomainRemoveShmemDevice(driver, vm, dev->data.shmem); break; + case VIR_DOMAIN_DEVICE_INPUT: + ret = qemuDomainRemoveInputDevice(vm, dev->data.input); + break; + case VIR_DOMAIN_DEVICE_NONE: case VIR_DOMAIN_DEVICE_LEASE: case VIR_DOMAIN_DEVICE_FS: - case VIR_DOMAIN_DEVICE_INPUT: case VIR_DOMAIN_DEVICE_SOUND: case VIR_DOMAIN_DEVICE_VIDEO: case VIR_DOMAIN_DEVICE_WATCHDOG: