|
|
3e5111 |
From eb52df58d1dc63812430728f173699665e936cdf Mon Sep 17 00:00:00 2001
|
|
|
3e5111 |
Message-Id: <eb52df58d1dc63812430728f173699665e936cdf@dist-git>
|
|
|
3e5111 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
3e5111 |
Date: Tue, 23 May 2017 16:33:26 +0200
|
|
|
3e5111 |
Subject: [PATCH] qemu: process: Clear priv->namespaces on VM shutdown
|
|
|
3e5111 |
|
|
|
3e5111 |
Otherwise the private data entry would be kept across instances of the
|
|
|
3e5111 |
same VM even if it's not configured to do so.
|
|
|
3e5111 |
|
|
|
3e5111 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1453142
|
|
|
3e5111 |
(cherry picked from commit 5203975f37e24f7b7156f0251f19f5001a6bd6eb)
|
|
|
3e5111 |
|
|
|
3e5111 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
3e5111 |
---
|
|
|
3e5111 |
src/qemu/qemu_process.c | 4 ++++
|
|
|
3e5111 |
1 file changed, 4 insertions(+)
|
|
|
3e5111 |
|
|
|
3e5111 |
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
|
|
|
3e5111 |
index df5ba575a..6f0d07242 100644
|
|
|
3e5111 |
--- a/src/qemu/qemu_process.c
|
|
|
3e5111 |
+++ b/src/qemu/qemu_process.c
|
|
|
3e5111 |
@@ -6447,6 +6447,10 @@ void qemuProcessStop(virQEMUDriverPtr driver,
|
|
|
3e5111 |
/* clean up migration data */
|
|
|
3e5111 |
VIR_FREE(priv->migTLSAlias);
|
|
|
3e5111 |
|
|
|
3e5111 |
+ /* clear previously used namespaces */
|
|
|
3e5111 |
+ virBitmapFree(priv->namespaces);
|
|
|
3e5111 |
+ priv->namespaces = NULL;
|
|
|
3e5111 |
+
|
|
|
3e5111 |
/* The "release" hook cleans up additional resources */
|
|
|
3e5111 |
if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) {
|
|
|
3e5111 |
char *xml = qemuDomainDefFormatXML(driver, vm->def, 0);
|
|
|
3e5111 |
--
|
|
|
3e5111 |
2.13.0
|
|
|
3e5111 |
|