Re: swapping with MMU Notifiers V2

Joerg Roedel
2008-01-29T18:19:18Z

On Tue, Jan 29, 2008 at 05:35:34PM +0100, Carsten Otte wrote:
> Avi Kivity wrote:
> > Every arch except s390 needs it. An ugly #ifndef
> > CONFIG_KVM_HARDWARE_TLB_SYNC is preferred to duplicating the code.
> BTW, from reading AMDs spec I don't expect NPT to need this vehicle
> for swapping either. They can just let core-vm page out guest pages
> and will receive a proper page fault in the host. Jörg can you confirm
> that?

Since NPT uses the host page table format it is in theory possible to
add the pagetable to the Linux MM rmap. In this case it would not be
necessary to use MMU notifiers. But I think this would complicate the
NPT support code significantly.

Joerg