|
|
3e5111 |
From 8df453dfaafbd0001dcdc828eb8b2479b61dc74b Mon Sep 17 00:00:00 2001
|
|
|
3e5111 |
Message-Id: <8df453dfaafbd0001dcdc828eb8b2479b61dc74b@dist-git>
|
|
|
3e5111 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
3e5111 |
Date: Tue, 6 Jun 2017 12:28:01 +0200
|
|
|
3e5111 |
Subject: [PATCH] qemu: process: Save vcpu ordering information on reconnect
|
|
|
3e5111 |
|
|
|
3e5111 |
vCPU ordering information would not be updated if a vCPU emerged or
|
|
|
3e5111 |
disappeared during the time libvirtd is not running. This allowed to
|
|
|
3e5111 |
create invalid configuration like:
|
|
|
3e5111 |
|
|
|
3e5111 |
[...]
|
|
|
3e5111 |
<vcpu id='56' enabled='yes' hotpluggable='yes' order='57'/>
|
|
|
3e5111 |
<vcpu id='57' enabled='yes' hotpluggable='yes' order='58'/>
|
|
|
3e5111 |
<vcpu id='58' enabled='yes' hotpluggable='yes'/>
|
|
|
3e5111 |
|
|
|
3e5111 |
Call the function that records the information on reconnect.
|
|
|
3e5111 |
|
|
|
3e5111 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1451251
|
|
|
3e5111 |
(cherry picked from commit ad3c6b229bcc91177db29d307e8ccc22c6c43565)
|
|
|
3e5111 |
|
|
|
3e5111 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
3e5111 |
---
|
|
|
3e5111 |
src/qemu/qemu_process.c | 2 ++
|
|
|
3e5111 |
1 file changed, 2 insertions(+)
|
|
|
3e5111 |
|
|
|
3e5111 |
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
|
|
|
3e5111 |
index 998dbeb6b5..7e51ca819a 100644
|
|
|
3e5111 |
--- a/src/qemu/qemu_process.c
|
|
|
3e5111 |
+++ b/src/qemu/qemu_process.c
|
|
|
3e5111 |
@@ -3492,6 +3492,8 @@ qemuProcessReconnect(void *opaque)
|
|
|
3e5111 |
if (qemuDomainRefreshVcpuInfo(driver, obj, QEMU_ASYNC_JOB_NONE, true) < 0)
|
|
|
3e5111 |
goto error;
|
|
|
3e5111 |
|
|
|
3e5111 |
+ qemuDomainVcpuPersistOrder(obj->def);
|
|
|
3e5111 |
+
|
|
|
3e5111 |
if (qemuSecurityReserveLabel(driver->securityManager, obj->def, obj->pid) < 0)
|
|
|
3e5111 |
goto error;
|
|
|
3e5111 |
|
|
|
3e5111 |
--
|
|
|
3e5111 |
2.13.1
|
|
|
3e5111 |
|