From: Stefano Stabellini <sstabellini@kernel.org> To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini <stefanos@xilinx.com>, julien.grall@arm.com, sstabellini@kernel.org, 206497@studenti.unimore.it Subject: [PATCH] xen/arm: skip first page when RAM starts at 0x0 Date: Thu, 25 Apr 2019 10:51:55 -0700 [thread overview] Message-ID: <1556214715-22030-1-git-send-email-sstabellini@kernel.org> (raw) Xen assumes that RAM starts at addresses greater than 0x0 in a few places. The PDX code is one of them but there are more. For now, skip the first page in memory when the start addess is 0x0. Signed-off-by: Stefano Stabellini <stefanos@xilinx.com> --- xen/arch/arm/bootfdt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c index 891b4b6..2ae4238 100644 --- a/xen/arch/arm/bootfdt.c +++ b/xen/arch/arm/bootfdt.c @@ -157,6 +157,13 @@ static void __init process_memory_node(const void *fdt, int node, device_tree_get_reg(&cell, address_cells, size_cells, &start, &size); if ( !size ) continue; + + /* + * Xen cannot deal with memory starting at 0x0. Burn the first + * page. + */ + if ( start == 0 ) + start += PAGE_SIZE; bootinfo.mem.bank[bootinfo.mem.nr_banks].start = start; bootinfo.mem.bank[bootinfo.mem.nr_banks].size = size; bootinfo.mem.nr_banks++; -- 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
WARNING: multiple messages have this Message-ID (diff)
From: Stefano Stabellini <sstabellini@kernel.org> To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini <stefanos@xilinx.com>, julien.grall@arm.com, sstabellini@kernel.org, 206497@studenti.unimore.it Subject: [Xen-devel] [PATCH] xen/arm: skip first page when RAM starts at 0x0 Date: Thu, 25 Apr 2019 10:51:55 -0700 [thread overview] Message-ID: <1556214715-22030-1-git-send-email-sstabellini@kernel.org> (raw) Message-ID: <20190425175155.1LHNNM6u-LYANroTHOunPRLIeGn6q2aMTLyAUCWNH-A@z> (raw) Xen assumes that RAM starts at addresses greater than 0x0 in a few places. The PDX code is one of them but there are more. For now, skip the first page in memory when the start addess is 0x0. Signed-off-by: Stefano Stabellini <stefanos@xilinx.com> --- xen/arch/arm/bootfdt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c index 891b4b6..2ae4238 100644 --- a/xen/arch/arm/bootfdt.c +++ b/xen/arch/arm/bootfdt.c @@ -157,6 +157,13 @@ static void __init process_memory_node(const void *fdt, int node, device_tree_get_reg(&cell, address_cells, size_cells, &start, &size); if ( !size ) continue; + + /* + * Xen cannot deal with memory starting at 0x0. Burn the first + * page. + */ + if ( start == 0 ) + start += PAGE_SIZE; bootinfo.mem.bank[bootinfo.mem.nr_banks].start = start; bootinfo.mem.bank[bootinfo.mem.nr_banks].size = size; bootinfo.mem.nr_banks++; -- 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
next reply other threads:[~2019-04-25 17:51 UTC|newest] Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-04-25 17:51 Stefano Stabellini [this message] 2019-04-25 17:51 ` [Xen-devel] [PATCH] xen/arm: skip first page when RAM starts at 0x0 Stefano Stabellini 2019-04-25 21:27 ` Julien Grall 2019-04-25 21:27 ` [Xen-devel] " Julien Grall 2019-04-26 9:12 ` Jan Beulich 2019-04-26 9:12 ` [Xen-devel] " Jan Beulich 2019-04-26 9:19 ` Julien Grall 2019-04-26 9:19 ` [Xen-devel] " Julien Grall 2019-04-26 9:42 ` Jan Beulich 2019-04-26 9:42 ` [Xen-devel] " Jan Beulich 2019-04-26 15:38 ` Julien Grall 2019-04-26 15:38 ` [Xen-devel] " Julien Grall 2019-04-26 15:48 ` Jan Beulich 2019-04-26 15:48 ` [Xen-devel] " Jan Beulich 2019-04-26 21:31 ` Julien Grall 2019-04-26 21:31 ` [Xen-devel] " Julien Grall 2019-04-26 23:47 ` Stefano Stabellini 2019-04-26 23:47 ` [Xen-devel] " Stefano Stabellini 2019-04-27 19:43 ` Julien Grall 2019-04-27 19:43 ` [Xen-devel] " Julien Grall 2019-04-29 7:15 ` Jan Beulich 2019-04-29 7:15 ` [Xen-devel] " Jan Beulich 2019-04-29 15:54 ` Julien Grall 2019-04-29 15:54 ` [Xen-devel] " Julien Grall 2019-04-29 16:07 ` Jan Beulich 2019-04-29 16:07 ` [Xen-devel] " Jan Beulich 2019-04-29 17:51 ` Stefano Stabellini 2019-04-29 17:51 ` [Xen-devel] " Stefano Stabellini 2019-05-01 22:44 ` Stefano Stabellini 2019-05-01 22:44 ` [Xen-devel] " Stefano Stabellini 2019-05-02 7:30 ` Jan Beulich 2019-05-02 7:30 ` [Xen-devel] " Jan Beulich 2019-05-02 9:02 ` Julien Grall 2019-05-02 9:02 ` [Xen-devel] " Julien Grall 2019-05-02 9:20 ` Jan Beulich 2019-05-02 9:20 ` [Xen-devel] " Jan Beulich 2019-05-02 22:25 ` Stefano Stabellini 2019-05-02 22:25 ` [Xen-devel] " Stefano Stabellini 2019-05-03 7:26 ` Jan Beulich 2019-05-03 7:26 ` [Xen-devel] " Jan Beulich 2019-05-03 20:16 ` Stefano Stabellini 2019-05-03 20:16 ` [Xen-devel] " Stefano Stabellini 2019-04-29 7:07 ` Jan Beulich 2019-04-29 7:07 ` [Xen-devel] " 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=1556214715-22030-1-git-send-email-sstabellini@kernel.org \ --to=sstabellini@kernel.org \ --cc=206497@studenti.unimore.it \ --cc=julien.grall@arm.com \ --cc=stefanos@xilinx.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: linkBe 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.