From: Dario Faggioli <dario.faggioli@citrix.com>
To: Elena Ufimtseva <ufimtseva@gmail.com>
Cc: <xen-devel@lists.xenproject.org>, <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>, <hpa@zytor.com>,
<boris.ostrovsky@oracle.com>, <tglx@linutronix.de>,
<stefano.stabellini@eu.citrix.com>, <ian.campbell@citrix.com>
Subject: Re: [Xen-devel] [PATCH v2 1/2] xen: vnuma support for PV guests running as domU
Date: Tue, 19 Nov 2013 08:15:30 +0100 [thread overview]
Message-ID: <1384845330.19880.11.camel@Abyss> (raw)
In-Reply-To: <1384806350-12651-2-git-send-email-ufimtseva@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1944 bytes --]
On lun, 2013-11-18 at 15:25 -0500, Elena Ufimtseva wrote:
> Signed-off-by: Elena Ufimtseva <ufimtseva@gmail.com>
> diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile
> index 96ab2c0..de9deab 100644
> --- a/arch/x86/xen/Makefile
> +++ b/arch/x86/xen/Makefile
> @@ -13,7 +13,7 @@ CFLAGS_mmu.o := $(nostackp)
> obj-y := enlighten.o setup.o multicalls.o mmu.o irq.o \
> time.o xen-asm.o xen-asm_$(BITS).o \
> grant-table.o suspend.o platform-pci-unplug.o \
> - p2m.o
> + p2m.o vnuma.o
>
> obj-$(CONFIG_EVENT_TRACING) += trace.o
I think David said something about this during last round (going
fetchin'-cuttin'-pastin' it):
"
obj-$(CONFIG_NUMA) += vnuma.o
Then you can remove the #ifdef CONFIG_NUMA from xen/vnuma.c
"
> diff --git a/arch/x86/xen/vnuma.c b/arch/x86/xen/vnuma.c
> +/*
> + * Called from numa_init if numa_off = 0;
^ if numa_off = 1 ?
> + * we set numa_off = 0 if xen_vnuma_supported()
> + * returns true and its a domU;
> + */
> +int __init xen_numa_init(void)
> +{
> + if (nr_nodes > num_possible_cpus()) {
> + pr_debug("vNUMA: Node without cpu is not supported in this version.\n");
> + goto out;
> + }
> +
This is a super-minor thing, but I wouldn't say "in this version". It
makes people think that there will be a later version where that will be
supported, which we don't know. :-)
> + /*
> + * Set a dummy node and return success. This prevents calling any
> + * hardware-specific initializers which do not work in a PV guest.
> + * Taken from dummy_numa_init code.
> + */
>
This is a lot better... Thanks! :-)
Regards,
Dario
--
<<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)
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2013-11-19 7:15 UTC|newest]
Thread overview: 29+ 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 21:28 ` Elena Ufimtseva
2013-11-18 22:13 ` Joe Perches
2013-11-18 22:13 ` Joe Perches
2013-11-18 21:14 ` H. Peter Anvin
2013-11-19 7:15 ` Dario Faggioli [this message]
2013-11-19 7:15 ` Dario Faggioli
2013-11-18 20:25 ` Elena Ufimtseva
2013-11-18 20:25 ` [PATCH v2 2/2] xen: enable vnuma for PV guest Elena Ufimtseva
2013-11-18 20:25 ` Elena Ufimtseva
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-04 6:20 ` [Xen-devel] " Elena Ufimtseva
2013-12-05 1:13 ` Dario Faggioli
2013-12-05 1:13 ` [Xen-devel] " Dario Faggioli
2013-12-20 7:39 ` Elena Ufimtseva
2013-12-20 7:48 ` Elena Ufimtseva
2013-12-20 15:38 ` Dario Faggioli
2013-12-20 15:38 ` Dario Faggioli
2013-12-20 7:48 ` Elena Ufimtseva
2013-12-20 7:39 ` Elena Ufimtseva
2013-12-04 0:35 ` Elena Ufimtseva
2013-11-19 18:29 ` Dario Faggioli
2013-11-19 15:38 ` Konrad Rzeszutek Wilk
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=1384845330.19880.11.camel@Abyss \
--to=dario.faggioli@citrix.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=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tangchen@cn.fujitsu.com \
--cc=tglx@linutronix.de \
--cc=ufimtseva@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.