[ofa-general] Re: [patch 1/6] mmu_notifier: Core code

Andrew Morton
2008-02-16T08:56:53Z

On Sat, 16 Feb 2008 10:45:50 +0200 Avi Kivity <avi@qumranet.com> wrote:

> Andrew Morton wrote:
> > How important is this feature to KVM?
> >
>
> Very. kvm pins pages that are referenced by the guest;

hm. Why does it do that?

> a 64-bit guest
> will easily pin its entire memory with the kernel map.

> So this is
> critical for guest swapping to actually work.

Curious. If KVM can release guest pages at the request of this notifier so
that they can be swapped out, why can't it release them by default, and
allow swapping to proceed?

>
> Other nice features like page migration are also enabled by this patch.
>

We already have page migration. Do you mean page-migration-when-using-kvm?