lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070824170744.GB16227@bingen.suse.de>
Date:	Fri, 24 Aug 2007 19:07:44 +0200
From:	Andi Kleen <ak@...e.de>
To:	Andy Whitcroft <apw@...dowen.org>
Cc:	Andi Kleen <ak@...e.de>, Mel Gorman <mel@...net.ie>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware with DISCONTIG memory model

On Fri, Aug 24, 2007 at 05:52:31PM +0100, Andy Whitcroft wrote:
> Andi Kleen wrote:
> >> This reserved portion of the KVA must be PMD aligned. 
> > 
> > Why do they need to be PMD aligned?  
> 
> That comes from the fact that the KVA in x86 has traditionally been

Where does this KVA acronym come from?  In Linux this is traditionally
called direct or linear mapping. KVA sounds foreign.

> mapped with huge pages where at all possible, for performance reasons.

It was partly a rhetorical question.

My point is that we don't make any effort to PMD align end_pfn,
so there is also no reason to PMD align any of the other boundaries.

The only reason in theory is to avoid virtual aliases with
uncached areas, but there are no uncached areas in highmem
so this shouldn't be a concern.

There might be overlap into the PCI hole though which is uncached
and needs care rgarding virtual aliases, but that could be handled
by teaching change_page_attr() to handle the overlap too.

I think that would be a better fix -- do that and then 
drop that PMD align requirement. Essentially you need a 
end_pfn_map like x86_64 has and use that in change_page_attr().

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ