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