[kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-05 Thread Avi Kivity
[resend due to bad alias expansion resulting in some recipients being bogus] Some hardware and software systems maintain page tables outside the normal Linux page tables, which reference userspace memory. This includes Infiniband, other RDMA-capable devices, and kvm (with a pending patch). Beca

Re: [kvm-devel] [PATCH][RFC]: pte notifiers -- support for external page tables

2007-09-05 Thread Avi Kivity
Rik van Riel wrote: >> >> I imagine that many of the paravirt_ops mmu hooks will need to be >> exposed as pte notifiers. This can't be done as part of the >> paravirt_ops code due to the need to pass high level data structures, >> though. > > Wait, I thought that paravirt_ops was all on the sid

Re: [kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-05 Thread Rusty Russell
On Wed, 2007-09-05 at 22:32 +0300, Avi Kivity wrote: > [resend due to bad alias expansion resulting in some recipients > being bogus] > > Some hardware and software systems maintain page tables outside the normal > Linux page tables, which reference userspace memory. This includes > Infiniband,

Re: [kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-05 Thread Avi Kivity
Rusty Russell wrote: > On Wed, 2007-09-05 at 22:32 +0300, Avi Kivity wrote: > >> [resend due to bad alias expansion resulting in some recipients >> being bogus] >> >> Some hardware and software systems maintain page tables outside the normal >> Linux page tables, which reference userspace memor

Re: [kvm-devel] [PATCH][RFC]: pte notifiers -- support for external page tables

2007-09-05 Thread Avi Kivity
[resend due to broken cc list in my original post] Jack Steiner wrote: > On Wed, Sep 05, 2007 at 07:38:48PM +0300, Avi Kivity wrote: > >> Some hardware and software systems maintain page tables outside the normal >> Linux page tables, which reference userspace memory. This includes >> Infiniba

Re: [kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-05 Thread Shaohua Li
On Wed, 2007-09-05 at 22:32 +0300, Avi Kivity wrote: > [resend due to bad alias expansion resulting in some recipients > being bogus] > > Some hardware and software systems maintain page tables outside the normal > Linux page tables, which reference userspace memory. This includes > Infiniband,

Re: [kvm-devel] [PATCH][RFC]: pte notifiers -- support for external page tables

2007-09-06 Thread Jeremy Fitzhardinge
Avi Kivity wrote: > It is, but the hooks are in much the same places. It could be argued > that you'd embed pte notifiers in paravirt_ops for a host kernel, but > that's not doable because pte notifiers use higher-level data > strutures (like vmas). Also, I wouldn't like to preclude the possibili

Re: [kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-06 Thread Avi Kivity
Shaohua Li wrote: > On Wed, 2007-09-05 at 22:32 +0300, Avi Kivity wrote: > >> [resend due to bad alias expansion resulting in some recipients >> being bogus] >> >> Some hardware and software systems maintain page tables outside the normal >> Linux page tables, which reference userspace memory.

Re: [kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-06 Thread Avi Kivity
Andi Kleen wrote: > Avi Kivity writes: > >> pte notifiers are different from paravirt_ops: they extend the normal >> page tables rather than replace them; and they provide high-level information >> such as the vma and the virtual address for the driver to use. >> > > Sounds like a locking