From: Wei Liu Subject: [PATCH for-4.6 v2] xl/libxl: disable PV vNUMA Date: Thu, 30 Jul 2015 17:11:29 +0100 Message-ID: <1438272689-29944-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZKqR1-0007xQ-VX for xen-devel@lists.xenproject.org; Thu, 30 Jul 2015 16:11:56 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Ian Jackson , Dario Faggioli , Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org Update xl manual and disable PV vNUMA in libxl. Signed-off-by: Wei Liu --- Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli v2: improve doc and code comment. --- docs/man/xl.cfg.pod.5 | 3 +++ tools/libxl/libxl_create.c | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 index c78c3ba..80e51bb 100644 --- a/docs/man/xl.cfg.pod.5 +++ b/docs/man/xl.cfg.pod.5 @@ -261,6 +261,9 @@ Specify virtual NUMA configuration with positional arguments. The nth B 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 is a list, which has a form of "[VNODE_CONFIG_OPTION,VNODE_CONFIG_OPTION, ... ]" (without quotes). diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index 4f2f50b..4b63559 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -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"); -- 2.1.4