Skip to content
Commit 2bad07ce authored by David Vrabel's avatar David Vrabel Committed by Stefano Stabellini
Browse files

xen/balloon: ensure preemption is disabled when using a scratch page



In decrease_reservation(), if the kernel is preempted between updating
the mapping and updating the p2m then they may end up using different
scratch pages.

Use get_balloon_scratch_page() and put_balloon_scratch_page() which use
get_cpu_var() and put_cpu_var() to correctly disable preemption.

Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tested-by: default avatarSander Eikelenboom <linux@eikelenboom.it>
parent c3b7cb1f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment