|
|
c480ed |
From cdb5af98d3801255903c4237269ca5723abc36c1 Mon Sep 17 00:00:00 2001
|
|
|
c480ed |
Message-Id: <cdb5af98d3801255903c4237269ca5723abc36c1@dist-git>
|
|
|
c480ed |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
c480ed |
Date: Thu, 27 Jun 2019 14:44:44 +0200
|
|
|
c480ed |
Subject: [PATCH] qemu: Use @tmpChr in qemuDomainDetachChrDevice to build
|
|
|
c480ed |
device string
|
|
|
c480ed |
|
|
|
c480ed |
So far we are passing @chr to qemuBuildChrDeviceStr. This is
|
|
|
c480ed |
suboptimal (in fact wrong) because @chr is just parsed XML
|
|
|
c480ed |
definition provided by user which by definition may lack some
|
|
|
c480ed |
information. On the other hand, @tmpChr is the one that was found
|
|
|
c480ed |
using @chr in domain definition so it contains the same amount of
|
|
|
c480ed |
information or more.
|
|
|
c480ed |
|
|
|
c480ed |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
c480ed |
Reviewed-by: John Ferlan <jferlan@redhat.com>
|
|
|
c480ed |
(cherry picked from commit f538f5ed3a876c3cb67ae5b7a01f133f192aca13)
|
|
|
c480ed |
|
|
|
c480ed |
https://bugzilla.redhat.com/show_bug.cgi?id=1624204
|
|
|
c480ed |
|
|
|
c480ed |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
c480ed |
Message-Id: <75600f93c5e22f43762635ac97f5a0acef1cf465.1561639408.git.mprivozn@redhat.com>
|
|
|
c480ed |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c480ed |
---
|
|
|
c480ed |
src/qemu/qemu_hotplug.c | 2 +-
|
|
|
c480ed |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
c480ed |
|
|
|
c480ed |
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
|
|
|
c480ed |
index 5b9a5683bb..da9d56ffb1 100644
|
|
|
c480ed |
--- a/src/qemu/qemu_hotplug.c
|
|
|
c480ed |
+++ b/src/qemu/qemu_hotplug.c
|
|
|
c480ed |
@@ -5753,7 +5753,7 @@ int qemuDomainDetachChrDevice(virQEMUDriverPtr driver,
|
|
|
c480ed |
|
|
|
c480ed |
sa_assert(tmpChr->info.alias);
|
|
|
c480ed |
|
|
|
c480ed |
- if (qemuBuildChrDeviceStr(&devstr, vmdef, chr, priv->qemuCaps) < 0)
|
|
|
c480ed |
+ if (qemuBuildChrDeviceStr(&devstr, vmdef, tmpChr, priv->qemuCaps) < 0)
|
|
|
c480ed |
goto cleanup;
|
|
|
c480ed |
|
|
|
c480ed |
if (!async)
|
|
|
c480ed |
--
|
|
|
c480ed |
2.22.0
|
|
|
c480ed |
|