Re: [PATCH 4/6] kvm-userland.git mmu notifier compat

2008-07-29 Thread Andrea Arcangeli
On Tue, Jul 29, 2008 at 04:30:42PM +0300, Avi Kivity wrote: > A 64-bit guest would pin all pages anyway as soon as it touched them the > first time, through the direct map. Linux indeed, ok! -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTE

Re: [PATCH 4/6] kvm-userland.git mmu notifier compat

2008-07-29 Thread Avi Kivity
Andrea Arcangeli wrote: On Tue, Jul 29, 2008 at 03:49:08PM +0300, Avi Kivity wrote: Applied; thanks. I think page pinning can be worked around by pinning all pages on memslot registration (and unpinning on memslot removal); this will slow down virtual machine startup, but is at least simple

Re: [PATCH 4/6] kvm-userland.git mmu notifier compat

2008-07-29 Thread Andrea Arcangeli
On Tue, Jul 29, 2008 at 03:49:08PM +0300, Avi Kivity wrote: > Applied; thanks. I think page pinning can be worked around by pinning all > pages on memslot registration (and unpinning on memslot removal); this will > slow down virtual machine startup, but is at least simple. This has the benefit

Re: [PATCH 4/6] kvm-userland.git mmu notifier compat

2008-07-29 Thread Avi Kivity
Andrea Arcangeli wrote: This patch to kvm-userland.git allows to build the tree on older kernels without mmu notifiers. Unfortunately emulating mmu notifiers with kprobes was feasible only for do_wp_page because it has a special property where calling the spte invalidate before the pte invalidat

[PATCH 4/6] kvm-userland.git mmu notifier compat

2008-07-25 Thread Andrea Arcangeli
This patch to kvm-userland.git allows to build the tree on older kernels without mmu notifiers. Unfortunately emulating mmu notifiers with kprobes was feasible only for do_wp_page because it has a special property where calling the spte invalidate before the pte invalidate is ok thanks to the guar