On Thu, 31 Jan 2008, Robin Holt wrote: > > Mutex locking? Could you be more specific? > > I think he is talking about the external locking that xpmem will need > to do to ensure we are not able to refault pages inside of regions that > are undergoing recall/page table clearing. At least that has been my > understanding to this point.
Right this has to be something like rw spinlock. Its needed for both GRU/XPmem. Not sure about KVM. Take the read lock for invalidate operations. These can occur concurrently. (Or a simpler implementation for the GRU may just use a spinlock). The write lock must be held for populate operations. Lock can be refined as needed by the notifier driver. F.e. locking could be restricted to certain ranges. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel