From: Julien Grall <julien.grall@linaro.org>
To: Jaeyong Yoo <jaeyong.yoo@samsung.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>,
Andre Przywara <andre.przywara@linaro.org>,
xen-devel@lists.xen.org
Subject: Re: [PATCH v2] xen/arm: add lower-bound check in mfn_valid
Date: Mon, 26 Aug 2013 15:45:04 +0100 [thread overview]
Message-ID: <521B69F0.505@linaro.org> (raw)
In-Reply-To: <1377248921-18252-1-git-send-email-jaeyong.yoo@samsung.com>
On 08/23/2013 10:08 AM, Jaeyong Yoo wrote:
> mfn_valid only checks the upper-bound of mfn (max_page).
> Add the lower-bound check of mfn (frametable_base_mfn).
Thanks! This patch fixes Xen boot on different boards (Arndale and I
guess Midway) after the patch "xen: arm: reduce the size of the xen heap
to max 1/8 RAM size".
> Signed-off-by: Jaeyong Yoo <jaeyong.yoo@samsung.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
> ---
> xen/include/asm-arm/mm.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/include/asm-arm/mm.h b/xen/include/asm-arm/mm.h
> index 27284d0..97c2ee0 100644
> --- a/xen/include/asm-arm/mm.h
> +++ b/xen/include/asm-arm/mm.h
> @@ -190,7 +190,7 @@ static inline void __iomem *ioremap_wc(paddr_t start, size_t len)
>
> #define mfn_valid(mfn) ({ \
> unsigned long __m_f_n = (mfn); \
> - likely(__m_f_n < max_page); \
> + likely(__m_f_n >= frametable_base_mfn && __m_f_n < max_page); \
> })
>
> #define max_pdx max_page
>
--
Julien Grall
next prev parent reply other threads:[~2013-08-26 14:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-23 9:08 [PATCH v2] xen/arm: add lower-bound check in mfn_valid Jaeyong Yoo
2013-08-23 9:17 ` Ian Campbell
2013-08-26 14:45 ` Julien Grall [this message]
2013-08-27 13:46 ` Ian Campbell
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=521B69F0.505@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=andre.przywara@linaro.org \
--cc=jaeyong.yoo@samsung.com \
--cc=xen-devel@lists.xen.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.