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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
---
 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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]