From: Juergen Gross <jgross@suse.com>
To: xen-devel@lists.xenproject.org
Cc: Juergen Gross <jgross@suse.com>,
andrew.cooper3@citrix.com, daniel.kiper@oracle.com,
alex.thorlton@hpe.com, jbeulich@suse.com
Subject: [PATCH v2 3/3] xen/x86: support larger memory map from EFI
Date: Thu, 23 Mar 2017 07:25:34 +0100 [thread overview]
Message-ID: <20170323062534.29498-4-jgross@suse.com> (raw)
In-Reply-To: <20170323062534.29498-1-jgross@suse.com>
Use a larger e820 map buffer for non-BIOS memory map sources. This
requires to have different defines for the maximum number of E820 map
entries for the raw BIOS buffer and the later used struct e820map.
Signed-off-by: Juergen Gross <jgross@suse.com>
---
V2: - define E820_BIOS_MAX in assembly code only (Jan Beulich)
---
xen/arch/x86/boot/mem.S | 6 +++---
xen/include/asm-x86/e820.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/xen/arch/x86/boot/mem.S b/xen/arch/x86/boot/mem.S
index ed2a190..518fbcd 100644
--- a/xen/arch/x86/boot/mem.S
+++ b/xen/arch/x86/boot/mem.S
@@ -1,7 +1,7 @@
.code16
#define SMAP 0x534d4150
-#define E820MAX 128
+#define E820_BIOS_MAX 128
get_memory_map:
@@ -23,7 +23,7 @@ get_memory_map:
jne .Lmem88
movb bootsym(e820nr),%al # up to 128 entries
- cmpb $E820MAX,%al
+ cmpb $E820_BIOS_MAX,%al
jae .Lmem88
incb bootsym(e820nr)
@@ -91,7 +91,7 @@ ENTRY(e820map_copy)
.align 4
e820map:
- .fill E820MAX*20,1,0
+ .fill E820_BIOS_MAX*20,1,0
e820nr:
.long 0
GLOBAL(lowmem_kb)
diff --git a/xen/include/asm-x86/e820.h b/xen/include/asm-x86/e820.h
index a2d468f..28defa8 100644
--- a/xen/include/asm-x86/e820.h
+++ b/xen/include/asm-x86/e820.h
@@ -16,7 +16,7 @@ struct __packed e820entry {
uint32_t type;
};
-#define E820MAX 128
+#define E820MAX 1024
struct e820map {
unsigned int nr_map;
--
2.10.2
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-03-23 6:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-23 6:25 [PATCH v2 0/3] xen: support of large memory maps Juergen Gross
2017-03-23 6:25 ` [PATCH v2 1/3] xen/x86: split boot trampoline into permanent and temporary part Juergen Gross
2017-03-23 15:04 ` Jan Beulich
[not found] ` <58D3F2070200007800146CE0@suse.com>
2017-03-23 16:44 ` Juergen Gross
2017-03-23 16:54 ` Jan Beulich
[not found] ` <58D40BCB0200007800146E2A@suse.com>
2017-03-23 17:01 ` Juergen Gross
2017-03-23 6:25 ` [PATCH v2 2/3] xen/x86: use trampoline e820 buffer for BIOS interface only Juergen Gross
2017-03-23 15:35 ` Jan Beulich
2017-03-23 15:40 ` Andrew Cooper
2017-03-23 16:22 ` Jan Beulich
[not found] ` <58D3F93C0200007800146D13@suse.com>
2017-03-23 16:54 ` Juergen Gross
2017-03-23 6:25 ` Juergen Gross [this message]
2017-03-23 15:35 ` [PATCH v2 3/3] xen/x86: support larger memory map from EFI Jan Beulich
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=20170323062534.29498-4-jgross@suse.com \
--to=jgross@suse.com \
--cc=alex.thorlton@hpe.com \
--cc=andrew.cooper3@citrix.com \
--cc=daniel.kiper@oracle.com \
--cc=jbeulich@suse.com \
--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).