lkml.org 
[lkml]   [2013]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH part2 v2 0/8] Arrange hotpluggable memory as ZONE_MOVABLE

* H. Peter Anvin <hpa@zytor.com> wrote:

> On 10/14/2013 11:50 PM, Ingo Molnar wrote:
> >
> > So if anyone can implement it using huge pages, with a really fast
> > __va() and __pa() implementation, then it might be possible. But
> > that's a pretty major surgery on x86.
>
> Well, we already *have* a way to deal with that for Xen (by inserting an
> otherwise nonexistent logical level.) I'm wondering if those interfaces
> could be (ab)used for this as well, or if that is functionally
> equivalent to saying that this should be done in a hypervisor.

It's not _that_ complex, and it does not need a separate security layer.

I have this distinct memory that I saw working patches that have paged all
of the kernel's data, more than a decade ago. It was all rather
disgusting, because those patches worked on the 4K level - but if a 2MB
granular solution can be found in an elegant fashion then I think we could
reconsider.

It definitely wasn't hypervisor thick. It probably needs a good hash for
virtual address transformations, and all DMA has to be managed [these days
we do that via the IOMMU anyway] but that's pretty much all - kernel
virtual memory is reconfigured extremely rarely, so all that could be sped
up for reads and mirrored per node and kept lockless, etc. etc. [Plus a
metric ton of details.]

Thanks,

Ingo


\
 
 \ /
  Last update: 2013-10-16 09:41    [W:0.054 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site