Re: [PATCH] mmu notifiers #v2

Izik Eidus
2008-01-16T17:48:06Z

Rik van Riel wrote:
> On Sun, 13 Jan 2008 17:24:18 +0100
> Andrea Arcangeli <andrea-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
>
>
>> In my basic initial patch I only track the tlb flushes which should be
>> the minimum required to have a nice linux-VM controlled swapping
>> behavior of the KVM gphysical memory.
>>
>
> I have a vaguely related question on KVM swapping.
>
> Do page accesses inside KVM guests get propagated to the host
> OS, so Linux can choose a reasonable page for eviction, or is
> the pageout of KVM guest pages essentially random?
>
>
right now when kvm remove pte from the shadow cache, it mark as access
the page that this pte pointed to.
it was a good solution untill the mmut notifiers beacuse the pages were
pinned and couldnt be swapped to disk
so now it will have to do something more sophisticated or at least mark
as access every page pointed by pte
that get insrted to the shadow cache....