From mboxrd@z Thu Jan 1 00:00:00 1970 From: Elena Ufimtseva Subject: [PATCH RESEND v2 2/2] xen: enable vnuma for PV guest Date: Mon, 18 Nov 2013 16:58:42 -0500 Message-ID: <1384811922-14642-3-git-send-email-ufimtseva__38305.6149505593$1384812378$gmane$org@gmail.com> References: <1384811922-14642-1-git-send-email-ufimtseva@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ViWvS-0001gS-OW for xen-devel@lists.xenproject.org; Mon, 18 Nov 2013 22:04:10 +0000 Received: by mail-qe0-f42.google.com with SMTP id t9so1827254qeq.1 for ; Mon, 18 Nov 2013 14:04:07 -0800 (PST) In-Reply-To: <1384811922-14642-1-git-send-email-ufimtseva@gmail.com> 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@lists.xenproject.org Cc: akpm@linux-foundation.org, wency@cn.fujitsu.com, x86@kernel.org, linux-kernel@vger.kernel.org, tangchen@cn.fujitsu.com, mingo@redhat.com, david.vrabel@citrix.com, Elena Ufimtseva , hpa@zytor.com, boris.ostrovsky@oracle.com, tglx@linutronix.de, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Enables numa if vnuma topology hypercall is supported and it is domU. Signed-off-by: Elena Ufimtseva --- arch/x86/xen/setup.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 68c054f..0aab799 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -598,6 +599,9 @@ void __init xen_arch_setup(void) WARN_ON(xen_set_default_idle()); fiddle_vdso(); #ifdef CONFIG_NUMA - numa_off = 1; + if (!xen_initial_domain() && xen_vnuma_supported()) + numa_off = 0; + else + numa_off = 1; #endif } -- 1.7.10.4