|
|
a3bc25 |
From dfc345ac7bd7bc87c297fc9887453e8f3035191c Mon Sep 17 00:00:00 2001
|
|
|
a3bc25 |
Message-Id: <dfc345ac7bd7bc87c297fc9887453e8f3035191c@dist-git>
|
|
|
a3bc25 |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
|
a3bc25 |
Date: Tue, 11 Jul 2017 13:30:09 +0200
|
|
|
a3bc25 |
Subject: [PATCH] qemu: Rename qemuProcessUpdateLiveGuestCPU
|
|
|
a3bc25 |
|
|
|
a3bc25 |
In addition to updating a guest CPU definition the function verifies
|
|
|
a3bc25 |
that all required features are provided to the guest. Let's make it
|
|
|
a3bc25 |
obvious by calling it qemuProcessUpdateAndVerifyCPU.
|
|
|
a3bc25 |
|
|
|
a3bc25 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
a3bc25 |
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
a3bc25 |
(cherry picked from commit e6ed55e4e9c9ec21ca87573b69225d2fafc54272)
|
|
|
a3bc25 |
|
|
|
a3bc25 |
https://bugzilla.redhat.com/show_bug.cgi?id=1470582
|
|
|
a3bc25 |
|
|
|
a3bc25 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
a3bc25 |
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
a3bc25 |
---
|
|
|
a3bc25 |
src/qemu/qemu_process.c | 4 ++--
|
|
|
a3bc25 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
a3bc25 |
|
|
|
a3bc25 |
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
|
|
|
a3bc25 |
index 3f7a9f4c02..1e7724e784 100644
|
|
|
a3bc25 |
--- a/src/qemu/qemu_process.c
|
|
|
a3bc25 |
+++ b/src/qemu/qemu_process.c
|
|
|
a3bc25 |
@@ -3971,7 +3971,7 @@ qemuProcessVerifyCPU(virDomainObjPtr vm,
|
|
|
a3bc25 |
|
|
|
a3bc25 |
|
|
|
a3bc25 |
static int
|
|
|
a3bc25 |
-qemuProcessUpdateLiveGuestCPU(virQEMUDriverPtr driver,
|
|
|
a3bc25 |
+qemuProcessUpdateAndVerifyCPU(virQEMUDriverPtr driver,
|
|
|
a3bc25 |
virDomainObjPtr vm,
|
|
|
a3bc25 |
qemuDomainAsyncJob asyncJob)
|
|
|
a3bc25 |
{
|
|
|
a3bc25 |
@@ -5875,7 +5875,7 @@ qemuProcessLaunch(virConnectPtr conn,
|
|
|
a3bc25 |
goto cleanup;
|
|
|
a3bc25 |
|
|
|
a3bc25 |
VIR_DEBUG("Verifying and updating provided guest CPU");
|
|
|
a3bc25 |
- if (qemuProcessUpdateLiveGuestCPU(driver, vm, asyncJob) < 0)
|
|
|
a3bc25 |
+ if (qemuProcessUpdateAndVerifyCPU(driver, vm, asyncJob) < 0)
|
|
|
a3bc25 |
goto cleanup;
|
|
|
a3bc25 |
|
|
|
a3bc25 |
VIR_DEBUG("Setting up post-init cgroup restrictions");
|
|
|
a3bc25 |
--
|
|
|
a3bc25 |
2.13.2
|
|
|
a3bc25 |
|