qemu: Rename qemuProcessUpdateLiveGuestCPU

In addition to updating a guest CPU definition the function verifies
that all required features are provided to the guest. Let's make it
obvious by calling it qemuProcessUpdateAndVerifyCPU.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Jiri Denemark 2017-07-11 13:30:09 +02:00
parent 5cac2fe108
commit e6ed55e4e9

View File

@ -4000,7 +4000,7 @@ qemuProcessVerifyCPU(virDomainObjPtr vm,
static int
qemuProcessUpdateLiveGuestCPU(virQEMUDriverPtr driver,
qemuProcessUpdateAndVerifyCPU(virQEMUDriverPtr driver,
virDomainObjPtr vm,
qemuDomainAsyncJob asyncJob)
{
@ -5917,7 +5917,7 @@ qemuProcessLaunch(virConnectPtr conn,
goto cleanup;
VIR_DEBUG("Verifying and updating provided guest CPU");
if (qemuProcessUpdateLiveGuestCPU(driver, vm, asyncJob) < 0)
if (qemuProcessUpdateAndVerifyCPU(driver, vm, asyncJob) < 0)
goto cleanup;
VIR_DEBUG("Setting up post-init cgroup restrictions");