From: nitesh konkar <niteshkonkar.libv...@gmail.com>

Signed-off-by: Nitesh Konkar <nitko...@linux.vnet.ibm.com>
---
 src/conf/domain_conf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index a233c0c..227b695 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -55,6 +55,7 @@
 #include "virtpm.h"
 #include "virstring.h"
 #include "virnetdev.h"
+#include "virhostcpu.h"
 
 #define VIR_FROM_THIS VIR_FROM_DOMAIN
 
@@ -1562,6 +1563,8 @@ virDomainDefGetVcpuPinInfoHelper(virDomainDefPtr def,
         else if (def->placement_mode == VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO &&
                  autoCpuset)
             bitmap = autoCpuset;
+        else if (def->placement_mode == VIR_DOMAIN_CPU_PLACEMENT_MODE_STATIC)
+            bitmap = virHostCPUGetOnlineBitmap();
         else if (def->cpumask)
             bitmap = def->cpumask;
         else
-- 
2.1.0

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

Reply via email to