On Sun, Jan 17, 2010 at 02:20:32PM +0200, Avi Kivity wrote:
>> +            addr = kmap_atomic(page, KM_USER0);
>> +            clear_user_page(addr, vaddr, page);
>> +            kunmap_atomic(addr, KM_USER0);
>>    
>
> Surprising that clear_user_page needs kmap_atomic() (but true).

There's a clear_user_highpage helper to take care of it for you.

--
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