From: Ingo Molnar <mingo@kernel.org>
To: Alex Thorlton <athorlton@sgi.com>
Cc: Russ Anderson <rja@sgi.com>, Juergen Gross <jgross@suse.com>,
Denys Vlasenko <dvlasenk@redhat.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
Ingo Molnar <mingo@redhat.com>,
David Vrabel <david.vrabel@citrix.com>,
"H. Peter Anvin" <hpa@zytor.com>,
xen-devel@lists.xenproject.org,
Thomas Gleixner <tglx@linutronix.de>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>
Subject: Re: [PATCH 1/2] x86: Make E820_X_MAX unconditionally larger than E820MAX
Date: Wed, 30 Nov 2016 07:21:48 +0100 [thread overview]
Message-ID: <20161130062148.GA11684__593.791230540042$1480486979$gmane$org@gmail.com> (raw)
In-Reply-To: <1480476287-232878-2-git-send-email-athorlton@sgi.com>
* Alex Thorlton <athorlton@sgi.com> wrote:
> It's really not necessary to limit E820_X_MAX to 128 in the non-EFI
> case. This commit drops E820_X_MAX's dependency on CONFIG_EFI, so that
> E820_X_MAX is always at least slightly larger than E820MAX.
>
> The real motivation behind this is actually to prevent some issues in
> the Xen kernel, where the XENMEM_machine_memory_map hypercall can
> produce an e820 map larger than 128 entries, even on systems where the
> original e820 table was quite a bit smaller than that, depending on how
> many IOAPICs are installed on the system.
>
> Signed-off-by: Alex Thorlton <athorlton@sgi.com>
> Suggested-by: Ingo Molnar <mingo@redhat.com>
> Cc: Russ Anderson <rja@sgi.com>
> Cc: David Vrabel <david.vrabel@citrix.com>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: Juergen Gross <jgross@suse.com>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: "H. Peter Anvin" <hpa@zytor.com>
> Cc: Denys Vlasenko <dvlasenk@redhat.com>
> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
> Cc: x86@kernel.org
> Cc: xen-devel@lists.xenproject.org
> ---
> arch/x86/include/asm/e820.h | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/arch/x86/include/asm/e820.h b/arch/x86/include/asm/e820.h
> index 476b574..aa00d33 100644
> --- a/arch/x86/include/asm/e820.h
> +++ b/arch/x86/include/asm/e820.h
> @@ -1,13 +1,15 @@
> #ifndef _ASM_X86_E820_H
> #define _ASM_X86_E820_H
>
> -#ifdef CONFIG_EFI
> +/*
> + * We need to make sure that E820_X_MAX is defined
> + * before we include uapi/asm/e820.h
> + */
> #include <linux/numa.h>
> #define E820_X_MAX (E820MAX + 3 * MAX_NUMNODES)
What we need an explanation for in the comment is what does this stand for (what
does the 'X' mean?), and what is the magic 3*MAX_NUMNODES about?
Thanks,
Ingo
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-11-30 6:21 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1479168677-23633-1-git-send-email-athorlton@sgi.com>
2016-11-15 0:11 ` [PATCH] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries Alex Thorlton
2016-11-15 6:30 ` Ingo Molnar
2016-11-16 17:16 ` Alex Thorlton
2016-11-16 6:09 ` Juergen Gross
2016-11-16 17:16 ` Alex Thorlton
2016-11-15 6:33 ` [RFC PATCH] " Juergen Gross
[not found] ` <a03b2e71-cc6a-7f62-6c09-877c576fab80@suse.com>
2016-11-15 7:15 ` Jan Beulich
[not found] ` <582AC427020000780011EA7E@suse.com>
2016-11-15 7:36 ` Juergen Gross
[not found] ` <a02052dd-83f8-2e6f-2dd3-e7165708225d@suse.com>
2016-11-15 8:01 ` Jan Beulich
[not found] ` <582ACEDE020000780011EAC9@suse.com>
2016-11-15 8:42 ` Juergen Gross
[not found] ` <478e5d05-ccf6-093e-8301-0eece00ca243@suse.com>
2016-11-15 9:45 ` Jan Beulich
[not found] ` <582AE72D020000780011EBB2@suse.com>
2016-11-15 9:55 ` Juergen Gross
[not found] ` <4bac3691-f157-4acc-7b29-7c49be6d35d6@suse.com>
2016-11-15 10:44 ` Jan Beulich
[not found] ` <582AF51F020000780011ECB4@suse.com>
2016-11-15 11:07 ` Juergen Gross
[not found] ` <dcaf32d2-9d26-b966-bf94-1ea3e888403c@suse.com>
2016-11-15 11:12 ` Jan Beulich
2016-11-15 15:22 ` Alex Thorlton
[not found] ` <20161115152209.GA67776@stormcage.americas.sgi.com>
2016-11-16 6:06 ` Juergen Gross
2016-11-16 16:42 ` Juergen Gross
2016-11-16 16:53 ` Alex Thorlton
2016-11-18 0:04 ` Alex Thorlton
2016-11-30 3:24 ` [RFC PATCH v2] " Alex Thorlton
[not found] ` <1480476287-232878-1-git-send-email-athorlton@sgi.com>
2016-11-30 3:24 ` [PATCH 1/2] x86: Make E820_X_MAX unconditionally larger than E820MAX Alex Thorlton
2016-11-30 6:21 ` Ingo Molnar [this message]
[not found] ` <20161130062148.GA11684@gmail.com>
2016-12-01 18:37 ` Alex Thorlton
2016-11-30 3:24 ` [PATCH 2/2] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries Alex Thorlton
[not found] ` <1480476287-232878-3-git-send-email-athorlton@sgi.com>
2016-11-30 5:18 ` Juergen Gross
2016-12-05 17:49 ` [RFC PATCH v3] " Alex Thorlton
[not found] ` <1480960154-211541-1-git-send-email-athorlton@sgi.com>
2016-12-05 17:49 ` [PATCH 1/2] x86: Make E820_X_MAX unconditionally larger than E820MAX Alex Thorlton
2016-12-05 17:49 ` [PATCH 2/2] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries Alex Thorlton
2016-12-08 5:50 ` [RFC PATCH v3] " Juergen Gross
[not found] ` <ed498aea-127a-246c-79e8-67ade61ba0ce@suse.com>
2016-12-09 3:46 ` Ingo Molnar
[not found] ` <1480960154-211541-2-git-send-email-athorlton@sgi.com>
2016-12-09 10:12 ` [PATCH 1/2] x86: Make E820_X_MAX unconditionally larger than E820MAX Juergen Gross
[not found] ` <1480960154-211541-3-git-send-email-athorlton@sgi.com>
2016-12-09 10:12 ` [PATCH 2/2] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries Juergen Gross
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='20161130062148.GA11684__593.791230540042$1480486979$gmane$org@gmail.com' \
--to=mingo@kernel.org \
--cc=athorlton@sgi.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=dvlasenk@redhat.com \
--cc=hpa@zytor.com \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rja@sgi.com \
--cc=tglx@linutronix.de \
--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).