[PATCH] xen: fix scrub_page()

From: Ingo Molnar
Date: Mon Nov 17 2008 - 13:14:58 EST



* Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:

>> Secondly, we actually have a function called "clear_highpage()"
>> that does this, except it uses kmap_atomic(page, KM_USER0). Which
>> is _probably better anyway, but I didn't check if there is some
>> magical reason why it wouldn't work.
>
> OK.

applied it with the changelog below to tip/x86/urgent, thanks guys!

AFAICS CONFIG_XEN_SCRUB_PAGES=y could not possibly have worked before
(kunmapping the wrong address is a crasher), so there's little
practical risk from using an atomic kmap here.

Ingo

-------------->