mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
test: Update vcpu runtime info in SetVcpus
This commit is contained in:
parent
667ce28946
commit
08dce95a74
@ -1993,6 +1993,10 @@ static int testSetVcpus(virDomainPtr domain,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Update VCPU state for the running domain */
|
||||||
|
if (testDomainUpdateVCPUs(domain->conn, privdom, nrCpus, 0) < 0)
|
||||||
|
goto cleanup;
|
||||||
|
|
||||||
privdom->def->vcpus = nrCpus;
|
privdom->def->vcpus = nrCpus;
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user