Re: [libvirt-test-api][PATCH] Add config flag when calling setVcpusFlags with maximum flag

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

 



ACK and Pushed

On 10/29/2015 04:22 PM, Hongming Zhang wrote:
Flag 'VIR_DOMAIN_AFFECT_CONFIG' is required by flag 'VIR_DOMAIN_VCPU_MAXIMUM'
modified:   set_vcpus_config.py
---
  repos/setVcpus/set_vcpus_config.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/repos/setVcpus/set_vcpus_config.py b/repos/setVcpus/set_vcpus_config.py
index 3bb3984..3ef0992 100644
--- a/repos/setVcpus/set_vcpus_config.py
+++ b/repos/setVcpus/set_vcpus_config.py
@@ -80,7 +80,7 @@ def set_vcpus_config(params):
                  return 1

          if maxvcpu:
-            flags = libvirt.VIR_DOMAIN_VCPU_MAXIMUM
+            flags = libvirt.VIR_DOMAIN_VCPU_MAXIMUM|libvirt.VIR_DOMAIN_AFFECT_CONFIG
	    logger.info("the given max vcpu number is %s" % maxvcpu)
              logger.info("set domain maximum vcpu as %s with flag: %s" %
                          (maxvcpu, flags))

--
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]