Messages in this thread | | | Date | Mon, 20 Jul 2009 10:48:52 -0400 | From | Rik van Riel <> | Subject | Re: [PATCH 01/10] ksm: add mmu_notifier set_pte_at_notify() |
| |
Izik Eidus wrote: > From: Izik Eidus <ieidus@redhat.com> > > The set_pte_at_notify() macro allows setting a pte in the shadow page > table directly, instead of flushing the shadow page table entry and then > getting vmexit to set it. It uses a new change_pte() callback to do so. > > set_pte_at_notify() is an optimization for kvm, and other users of > mmu_notifiers, for COW pages. It is useful for kvm when ksm is used, > because it allows kvm not to have to receive vmexit and only then map > the ksm page into the shadow page table, but instead map it directly > at the same time as Linux maps the page into the host page table. > > Users of mmu_notifiers who don't implement new mmu_notifier_change_pte() > callback will just receive the mmu_notifier_invalidate_page() callback. > > Signed-off-by: Izik Eidus <ieidus@redhat.com> > Signed-off-by: Chris Wright <chrisw@redhat.com> > Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Acked-by: Rik van Riel <riel@redhat.com>
-- All rights reversed.
| |