From: Elena Ufimtseva <ufimtseva@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: konrad.wilk@oracle.com, boris.ostrovsky@oracle.com,
david.vrabel@citrix.com, tglx@linutronix.de, mingo@redhat.com,
hpa@zytor.com, x86@kernel.org, akpm@linux-foundation.org,
tangchen@cn.fujitsu.com, wency@cn.fujitsu.com,
ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com,
mukesh.rathor@oracle.com, linux-kernel@vger.kernel.org,
Elena Ufimtseva <ufimtseva@gmail.com>
Subject: [PATCH v2 2/2] xen: enable vnuma for PV guest
Date: Mon, 18 Nov 2013 15:25:50 -0500 [thread overview]
Message-ID: <1384806350-12651-3-git-send-email-ufimtseva@gmail.com> (raw)
In-Reply-To: <1384806350-12651-1-git-send-email-ufimtseva@gmail.com>
Enables numa if vnuma topology hypercall is supported and it is domU.
Signed-off-by: Elena Ufimtseva <ufimtseva@gmail.com>
---
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 <asm/numa.h>
#include <asm/xen/hypervisor.h>
#include <asm/xen/hypercall.h>
+#include <asm/xen/vnuma.h>
#include <xen/xen.h>
#include <xen/page.h>
@@ -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
next prev parent reply other threads:[~2013-11-18 20:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-18 20:25 [PATCH v2 0/2] xen: vnuma introduction for pv guest Elena Ufimtseva
2013-11-18 20:25 ` [PATCH v2 1/2] xen: vnuma support for PV guests running as domU Elena Ufimtseva
2013-11-18 21:14 ` H. Peter Anvin
2013-11-18 21:28 ` Elena Ufimtseva
2013-11-18 22:13 ` Joe Perches
2013-11-19 7:15 ` [Xen-devel] " Dario Faggioli
2013-11-18 20:25 ` Elena Ufimtseva [this message]
2013-11-19 15:38 ` [PATCH v2 0/2] xen: vnuma introduction for pv guest Konrad Rzeszutek Wilk
2013-11-19 18:29 ` [Xen-devel] " Dario Faggioli
2013-12-04 0:35 ` Elena Ufimtseva
2013-12-04 6:20 ` Elena Ufimtseva
2013-12-05 1:13 ` Dario Faggioli
2013-12-20 7:39 ` Elena Ufimtseva
2013-12-20 7:48 ` Elena Ufimtseva
2013-12-20 15:38 ` Dario Faggioli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1384806350-12651-3-git-send-email-ufimtseva@gmail.com \
--to=ufimtseva@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=hpa@zytor.com \
--cc=ian.campbell@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=mukesh.rathor@oracle.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tangchen@cn.fujitsu.com \
--cc=tglx@linutronix.de \
--cc=wency@cn.fujitsu.com \
--cc=x86@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).