test: Update vcpu runtime info in SetVcpus

This commit is contained in:
Cole Robinson 2009-10-27 18:02:14 -04:00
parent 667ce28946
commit 08dce95a74

View File

@ -1993,6 +1993,10 @@ static int testSetVcpus(virDomainPtr domain,
goto cleanup;
}
/* Update VCPU state for the running domain */
if (testDomainUpdateVCPUs(domain->conn, privdom, nrCpus, 0) < 0)
goto cleanup;
privdom->def->vcpus = nrCpus;
ret = 0;