x86: clobber registers in switch_stack_and_jump() when !LIVEPATCH
authorJan Beulich <jbeulich@suse.com>
Wed, 16 Dec 2020 15:41:46 +0000 (16:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 16 Dec 2020 15:41:46 +0000 (16:41 +0100)
commit033a80677087b322789d2748e83b764545f76c6b
treec0375ef473a235483760b48f0a19cb90e0781d5a
parent8bf0fab14256057bbd145563151814300476bb28
x86: clobber registers in switch_stack_and_jump() when !LIVEPATCH

In order to have the same effect on registers as a call to
check_for_livepatch_work() may have, clobber all call-clobbered
registers in debug builds.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/include/asm-x86/current.h