From: Andrea Arcangeli <andrea@qumranet.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Muli Ben-Yehuda <muli@il.ibm.com>,
Ben-Ami Yassour1 <BENAMI@il.ibm.com>,
Han Weidong <weidong.han@intel.com>,
"Kay, Allen M" <allen.m.kay@intel.com>,
Amit Shah <amit.shah@qumranet.com>,
kvm@vger.kernel.org, avi@qumranet.com,
Dave Hansen <haveblue@us.ibm.com>
Subject: Re: [PATCH] Handle vma regions with no backing page
Date: Wed, 4 Jun 2008 21:51:35 +0200 [thread overview]
Message-ID: <20080604195135.GP21613@duo.random> (raw)
In-Reply-To: <4846EFE0.5090304@codemonkey.ws>
On Wed, Jun 04, 2008 at 02:41:20PM -0500, Anthony Liguori wrote:
> The pfn does have a backing page. When using CONFIG_FLATMEM, pfn_valid()
> is simply:
>
> #ifdef CONFIG_FLATMEM
> #define pfn_valid(pfn) ((pfn) < end_pfn)
> #endif
>
> And this is true, pfn_valid() just indicates whether there is a space in
> mem_map[], and there certainly is. Note this only happens when there is a
> valid PFN that's greater than the PCI memory (using 4GB+ of memory).
So everything is fine with pfn_valid. The check against end_pfn with
flatmem is what I also the one I've looked while doing the
reserved-ram patch.
pfn_valid must only signal if pfn_to_page(pfn) returns garbage or a
struct page (you can't call pfn_to_page if pfn_valid is 0). That's all.
> Dave mentioned that SetPageReserved() doesn't necessarily get called for
> zones with bad alignment.
What does 'bad alignment' mean? Buddy was used to require each zone to
start at 1<<MAX_ORDER naturally aligned physical address (any ram
before the alignment was wasted). In any case all 'struct page' where
pfn_valid would return true, should start with PG_reserved set, if
it's not the case it should be fixed I guess.
next prev parent reply other threads:[~2008-06-04 19:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-03 11:17 [PATCH] Handle vma regions with no backing page Ben-Ami Yassour
2008-06-03 11:39 ` Andrea Arcangeli
2008-06-04 15:09 ` Ben-Ami Yassour
2008-06-04 16:17 ` Muli Ben-Yehuda
2008-06-04 19:34 ` Andrea Arcangeli
2008-06-04 19:41 ` Anthony Liguori
2008-06-04 19:51 ` Andrea Arcangeli [this message]
2008-06-04 19:59 ` Dave Hansen
2008-06-04 9:48 ` Avi Kivity
2008-06-04 16:48 ` Anthony Liguori
-- strict thread matches above, loose matches on Subject: below --
2008-04-29 14:32 Anthony Liguori
2008-04-29 14:54 ` Andrea Arcangeli
2008-04-29 15:14 ` Anthony Liguori
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=20080604195135.GP21613@duo.random \
--to=andrea@qumranet.com \
--cc=BENAMI@il.ibm.com \
--cc=allen.m.kay@intel.com \
--cc=amit.shah@qumranet.com \
--cc=anthony@codemonkey.ws \
--cc=avi@qumranet.com \
--cc=haveblue@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=muli@il.ibm.com \
--cc=weidong.han@intel.com \
/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