On 03/15/2010 10:33 AM, Marcelo Tosatti wrote:

Are there any good ways to solve this kind of problems?
You can introduce a new get_dirty_log ioctl that passes the address
of the next bitmap in userspace, and use it (after pinning with
get_user_pages), instead of vmalloc'ing.


No pinning please, put_user_bit() or set_bit_user().

(can be implemented generically using get_user_pages() and kmap_atomic(), but x86 should get an optimized implementation)

--
Do not meddle in the internals of kernels, for they are subtle and quick to 
panic.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to