mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
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:
parent
5cac2fe108
commit
e6ed55e4e9
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user