mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
qemu: process: Move cpu flag querying after code probing cpus
Upcoming changes will require that we have a proper QOM path for cpus when querying the flags as qemu is going to change it. By moving the flag probing code later we'll already probe the QOM paths so no re-query will be needed. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f0a4951616
commit
2f498b5980
@ -7573,10 +7573,6 @@ qemuProcessLaunch(virConnectPtr conn,
|
||||
if (qemuConnectAgent(driver, vm) < 0)
|
||||
goto cleanup;
|
||||
|
||||
VIR_DEBUG("Verifying and updating provided guest CPU");
|
||||
if (qemuProcessUpdateAndVerifyCPU(driver, vm, asyncJob) < 0)
|
||||
goto cleanup;
|
||||
|
||||
VIR_DEBUG("setting up hotpluggable cpus");
|
||||
if (qemuDomainHasHotpluggableStartupVcpus(vm->def)) {
|
||||
if (qemuDomainRefreshVcpuInfo(driver, vm, asyncJob, false) < 0)
|
||||
@ -7598,6 +7594,10 @@ qemuProcessLaunch(virConnectPtr conn,
|
||||
|
||||
qemuDomainVcpuPersistOrder(vm->def);
|
||||
|
||||
VIR_DEBUG("Verifying and updating provided guest CPU");
|
||||
if (qemuProcessUpdateAndVerifyCPU(driver, vm, asyncJob) < 0)
|
||||
goto cleanup;
|
||||
|
||||
VIR_DEBUG("Detecting IOThread PIDs");
|
||||
if (qemuProcessDetectIOThreadPIDs(driver, vm, asyncJob) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user