[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160113111806.GC23370@leverpostej>
Date: Wed, 13 Jan 2016 11:18:07 +0000
From: Mark Rutland <mark.rutland@....com>
To: Xishi Qiu <qiuxishi@...wei.com>
Cc: zhong jiang <zhongjiang@...wei.com>,
Laura Abbott <labbott@...oraproject.org>,
Hanjun Guo <guohanjun@...wei.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: Have any influence on set_memory_** about below patch ??
On Wed, Jan 13, 2016 at 06:30:06PM +0800, Xishi Qiu wrote:
> Hi Mark,
>
> If I create swapper page tables by 4kb, not large page, then I use
> set_memory_ro() to change the pate table flag, does it have the problem
> too?
The splitting/merging problem would not apply.
However, you're going to waste a reasonable amount of memory by not
using section mappings in the swapper, and we gain additional complexity
in the page table setup code (which is shared with others things that
want section mappings).
What are you exactly actually trying to achieve?
What memory do you want to mark RO, and why?
>From a previous discussion [1], we figured out alternative approaches
for common cases. Do none of those work for your case?
Thanks,
Mark.
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2016-January/397320.html
Powered by blists - more mailing lists