From: David Vrabel Date: Wed, 11 Sep 2013 17:45:44 +0000 (+0000) Subject: xen/balloon: ensure preemption is disabled when using a scratch page X-Git-Tag: v3.12-rc1~34^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bad07ce28a0f61c1e776f99aa05f85e4e689e24;p=pandora-kernel.git 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: David Vrabel Signed-off-by: Stefano Stabellini Tested-by: Sander Eikelenboom --- Reading git-diff-tree failed