Re: KVM swapping with mmu notifiers

Avi Kivity
2008-01-14T15:43:58Z

Andrea Arcangeli wrote:
>>
>> Aren't mmu notifiers called with mmap_sem held for read?
>>
>> Maybe not from the swap path?
>>
>
> Good point, the swap path isn't covered by the mmap_sem, so Marcelo's
> right I need to fixup the locking a bit.
>

One idea I had at a time was to add ->lock() and ->unlock() callbacks to
mmu notifiers that would be called in a sleepy context. But that seems
heavy handed. Maybe it can be fixed in some clever way with rcu or with
a rwlock around the memory slot map.

--
error compiling committee.c: too many arguments to function

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.