Re: [RFC PATCH 0/11] Support Write-Through mapping on x86
From: | Konrad Rzeszutek Wilk <konrad.wilk-AT-oracle.com> | |
To: | "H. Peter Anvin" <hpa-AT-zytor.com> | |
Subject: | Re: [RFC PATCH 0/11] Support Write-Through mapping on x86 | |
Date: | Mon, 21 Jul 2014 14:33:31 -0400 | |
Message-ID: | <20140721183331.GB13420@laptop.dumpdata.com> | |
Cc: | Toshi Kani <toshi.kani-AT-hp.com>, tglx-AT-linutronix.de, mingo-AT-redhat.com, akpm-AT-linux-foundation.org, arnd-AT-arndb.de, plagnioj-AT-jcrosoft.com, tomi.valkeinen-AT-ti.com, linux-mm-AT-kvack.org, linux-kernel-AT-vger.kernel.org, stefan.bader-AT-canonical.com, luto-AT-amacapital.net, airlied-AT-gmail.com, bp-AT-alien8.de | |
Archive‑link: | Article |
On Mon, Jul 21, 2014 at 10:32:34AM -0700, H. Peter Anvin wrote: > On 07/21/2014 10:16 AM, Toshi Kani wrote: > > > > You are right. I was under a wrong impression that > > __change_page_attr() always splits a large pages into 4KB pages, but I > > overlooked the fact that it can handle a large page as well. So, this > > approach does not work... > > > > If it did it would be a major fail. > > >> I would also like a systematic way to deal with the fact > >> that Xen (sigh) is stuck with a separate mapping system. > >> > >> I guess Linux could adopt the Xen mappings if that makes it easier, as > >> long as that doesn't have a negative impact on native hardware -- we can > >> possibly deal with some older chips not being optimal. > > > > I see. I agree that supporting the PAT bit is the right direction, but > > I do not know how much effort we need. I will study on this. > > > >> However, my thinking has been to have a "reverse PAT" table in memory of memory > >> types to encodings, both for regular and large pages. > > > > I am not clear about your idea of the "reverse PAT" table. Would you > > care to elaborate? How is it different from using pte_val() being a > > paravirt function on Xen? > > First of all, paravirt functions are the root of all evil, and we want Here I was thinking to actually put an entry in the MAINTAINERS file for me to become the owner of it - as the folks listed there are busy with other things. The Maintainer of 'All Evil' has an interesting ring to it :-) > to reduce and eliminate them to the utmost level possible. But yes, we > could plumb that up that way if we really need to. > > What I'm thinking of is a table which can deal with both the moving PTE > bit, Xen, and the scattered encodings by having a small table from types > to encodings, and not use the encodings directly until fairly late it > the pipe. I suspect, but I'm not sure, that we would also need the > inverse operation. Mr Toshi-san, This link: http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/arc... might help you in figuring how this can be done. Thought I have to say that the code is quite complex so it might be more confusing then helpful. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Posted Jul 31, 2014 8:36 UTC (Thu)
by JMB (guest, #74439)
[Link]
Re: [RFC PATCH 0/11] Support Write-Through mapping on x86
A good joke on it's own.
But with the mail domain "oracle.com" it's a perfect hit.
LOFLOL
I am sure many people will see images inside their heads like I see now.
That one will keep my fantasy busy for a while.
Thanks a lot for this real gem !!!