Skip to contentSkip to conversation

xl/libxl: disable PV vNUMA

PATCH In review Wei Liu 3 participants 4 messages Jul 30, 2015 – Jul 31, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH v2 1/1 xl/libxl: disable PV vNUMA

Update xl manual and disable PV vNUMA in libxl.

---
Cc: Ian Campbell <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Dario Faggioli <[email protected]>

v2: improve doc and code comment.

---
 docs/man/xl.cfg.pod.5      | 3 +++
 tools/libxl/libxl_create.c | 9 +++++++++
 2 files changed, 12 insertions(+)
docs/man/xl.cfg.pod.5 +3 -0
index c78c3ba..80e51bb 100644
@@ -261,6 +261,9 @@ Specify virtual NUMA configuration with positional arguments. The
 nth B<VNODE_SPEC> in the list specifies the configuration of nth
 virtual node.
 
+Note that virtual NUMA for PV guest is not yet supported, because
+there is an issue with cpuid handling that affects PV virtual NUMA.
+
 Each B<VNODE_SPEC> is a list, which has a form of
 "[VNODE_CONFIG_OPTION,VNODE_CONFIG_OPTION, ... ]"  (without quotes).
 
tools/libxl/libxl_create.c +9 -0
index 4f2f50b..4b63559 100644
@@ -860,6 +860,15 @@ static void initiate_domain_create(libxl__egc *egc,
         goto error_out;
     }
 
+    /* PV vNUMA is not yet supported because there is an issue with
+     * cpuid handling.
+     */
+    if (d_config->c_info.type == LIBXL_DOMAIN_TYPE_PV &&
+        d_config->b_info.num_vnuma_nodes) {
+        LOG(ERROR, "PV vNUMA is not yet supported");
+        goto error_out;
+    }
+
     ret = libxl__domain_create_info_setdefault(gc, &d_config->c_info);
     if (ret) {
         LOG(ERROR, "Unable to set domain create info defaults");
Signature · 1 line
2.1.4
Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Wei Liu

Update xl manual and disable PV vNUMA in libxl.

---
Cc: Ian Campbell <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Dario Faggioli <[email protected]>

v2: improve doc and code comment.
---

[With] Regard_s_, :-D :-D
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v2 1/1
#2 lore raw
In reply to Wei Liu
Quoted 4 lines · Wei Liu

Update xl manual and disable PV vNUMA in libxl.

---

and applied.

tools/libxl/libxl_create.c static void initiate_domain_create(libxl__egc *egc, · line 865

Quoted 4 lines
tools/libxl/libxl_create.c +3 -0
+    /* PV vNUMA is not yet supported because there is an issue with
+     * cpuid handling.
+     */

Personally I think this is wrong and should be
/*
* PV vNUMA...

but a) there are a bunch of similarly formatted comments in this function and b) tools/libxl/CODING_STYLE doesn't actually cover comment style.

So I left it.

Ian.

#3 lore raw
Quoted 11 lines · Ian Campbell

tools/libxl/libxl_create.c static void initiate_domain_create(libxl__egc *egc, · line 865

Quoted 4 lines · Wei Liu
tools/libxl/libxl_create.c +3 -0
+    /* PV vNUMA is not yet supported because there is an issue with
+     * cpuid handling.
+     */

Personally I think this is wrong and should be
/*
* PV vNUMA...

Me too...

Quoted 2 lines

but a) there are a bunch of similarly formatted comments in this function

Exactly.

Quoted 2 lines

and b) tools/libxl/CODING_STYLE doesn't actually cover comment style.

Should we make it do so? FWIW, I'd say we should (and can send a patch to the effect...)

Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel