]> xenbits.xensource.com Git - libvirt.git/commitdiff
test: Update vcpu runtime info in SetVcpus
authorCole Robinson <crobinso@redhat.com>
Tue, 27 Oct 2009 22:02:14 +0000 (18:02 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 3 Nov 2009 22:31:17 +0000 (17:31 -0500)
src/test/test_driver.c

index c3cd74c36452c1b0cdd01f39565385d8571fb659..d8d4c4a4e55745e332358a9134218be7dc17253a 100644 (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;