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 v3 3/3] xen/x86: support larger memory map from EFI
Date: Fri, 24 Mar 2017 08:48:28 +0100 [thread overview]
Message-ID: <20170324074828.7346-4-jgross@suse.com> (raw)
In-Reply-To: <20170324074828.7346-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>
Reviewed-by: Jan Beulich <jbeulich@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 14dff95..4b1fa4d 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)
@@ -86,7 +86,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
prev parent reply other threads:[~2017-03-24 7:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-24 7:48 [PATCH v3 0/3] xen: support of large memory maps Juergen Gross
2017-03-24 7:48 ` [PATCH v3 1/3] xen/x86: split boot trampoline into permanent and temporary part Juergen Gross
2017-03-24 11:19 ` Jan Beulich
2017-03-24 7:48 ` [PATCH v3 2/3] xen/x86: use trampoline e820 buffer for BIOS interface only Juergen Gross
2017-03-24 11:24 ` Jan Beulich
[not found] ` <58D50FF202000078001473BC@suse.com>
2017-03-24 12:18 ` Juergen Gross
2017-03-24 7:48 ` Juergen Gross [this message]
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=20170324074828.7346-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 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.