[libvirt] [PATCH 4/6] test: Update vcpu runtime info in SetVcpus

Cole Robinson crobinso at redhat.com
Mon Nov 2 20:02:45 UTC 2009


Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 src/test/test_driver.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index a8bec58..078658f 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -1992,6 +1992,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;
 
-- 
1.6.5.1




More information about the libvir-list mailing list