|
|
404507 |
From 4f65cfb51fcef877737edeb75f4a06a9988e592e Mon Sep 17 00:00:00 2001
|
|
|
404507 |
Message-Id: <4f65cfb51fcef877737edeb75f4a06a9988e592e@dist-git>
|
|
|
404507 |
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
404507 |
Date: Thu, 14 Dec 2017 17:01:33 +0100
|
|
|
404507 |
Subject: [PATCH] qemu: remove input device after receiving the event
|
|
|
404507 |
MIME-Version: 1.0
|
|
|
404507 |
Content-Type: text/plain; charset=UTF-8
|
|
|
404507 |
Content-Transfer-Encoding: 8bit
|
|
|
404507 |
|
|
|
404507 |
Also call qemuDomainRemoveInputDevice if we receive the
|
|
|
404507 |
event after the Detach API ends.
|
|
|
404507 |
|
|
|
404507 |
Commit 67486bb failed to include this.
|
|
|
404507 |
|
|
|
404507 |
https://bugzilla.redhat.com/show_bug.cgi?id=1524837
|
|
|
404507 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
404507 |
Reviewed-by: Erik Skultety <eskultet@redhat.com>
|
|
|
404507 |
(cherry picked from commit 8d51042ef873d2a868d505f0eff32346ba041a95)
|
|
|
404507 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
404507 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
404507 |
---
|
|
|
404507 |
src/qemu/qemu_hotplug.c | 5 ++++-
|
|
|
404507 |
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
404507 |
|
|
|
404507 |
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
|
|
|
404507 |
index eab9ad794a..f1056627f2 100644
|
|
|
404507 |
--- a/src/qemu/qemu_hotplug.c
|
|
|
404507 |
+++ b/src/qemu/qemu_hotplug.c
|
|
|
404507 |
@@ -4368,10 +4368,13 @@ qemuDomainRemoveDevice(virQEMUDriverPtr driver,
|
|
|
404507 |
ret = qemuDomainRemoveShmemDevice(driver, vm, dev->data.shmem);
|
|
|
404507 |
break;
|
|
|
404507 |
|
|
|
404507 |
+ case VIR_DOMAIN_DEVICE_INPUT:
|
|
|
404507 |
+ ret = qemuDomainRemoveInputDevice(vm, dev->data.input);
|
|
|
404507 |
+ break;
|
|
|
404507 |
+
|
|
|
404507 |
case VIR_DOMAIN_DEVICE_NONE:
|
|
|
404507 |
case VIR_DOMAIN_DEVICE_LEASE:
|
|
|
404507 |
case VIR_DOMAIN_DEVICE_FS:
|
|
|
404507 |
- case VIR_DOMAIN_DEVICE_INPUT:
|
|
|
404507 |
case VIR_DOMAIN_DEVICE_SOUND:
|
|
|
404507 |
case VIR_DOMAIN_DEVICE_VIDEO:
|
|
|
404507 |
case VIR_DOMAIN_DEVICE_WATCHDOG:
|
|
|
404507 |
--
|
|
|
404507 |
2.15.1
|
|
|
404507 |
|