From: Zhenzhong Duan <zhenzhong.duan@oracle.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: jgross@suse.com, david.vrabel@citrix.com, konrad.wilk@oracle.com,
boris.ostrovsky@oracle.com
Subject: [PATCH] xen: fix the check of e_pfn in xen_find_pfn_range
Date: Wed, 2 Sep 2015 18:51:36 +0800 [thread overview]
Message-ID: <55E6D4B8.6020402@oracle.com> (raw)
On some numa system, after dom0 up, we see below warning even if there are
enough pfn ranges could be used for remapping.
"Unable to find available pfn range, not remapping identity pages"
Fix it to avoid getting a memory region of zero size in xen_find_pfn_range.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
---
arch/x86/xen/setup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index a3a7546..c11f6b2 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -178,7 +178,7 @@ static unsigned long __init xen_find_pfn_range(
e_pfn = PFN_DOWN(entry->addr + entry->size);
/* We only care about E820 after this */
- if (e_pfn < *min_pfn)
+ if (e_pfn <= *min_pfn)
continue;
s_pfn = PFN_UP(entry->addr);
--
1.7.3
next reply other threads:[~2015-09-02 10:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 10:51 Zhenzhong Duan [this message]
2015-09-02 11:04 ` [PATCH] xen: fix the check of e_pfn in xen_find_pfn_range Juergen Gross
2015-09-15 2:02 ` Zhenzhong Duan
-- strict thread matches above, loose matches on Subject: below --
2015-10-27 19:19 Konrad Rzeszutek Wilk
2015-11-02 17:50 ` David Vrabel
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=55E6D4B8.6020402@oracle.com \
--to=zhenzhong.duan@oracle.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=jgross@suse.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.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.