x86/xen: Zero MSR_IA32_SPEC_CTRL before suspend
authorJuergen Gross <jgross@suse.com>
Mon, 26 Feb 2018 14:08:18 +0000 (15:08 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Feb 2018 15:03:19 +0000 (16:03 +0100)
commit71c208dd54ab971036d83ff6d9837bae4976e623
treefb1583ab8e295eb344a60c17daf51a397dff9c63
parent946fbbc13dce68902f64515b610eeb2a6c3d7a64
x86/xen: Zero MSR_IA32_SPEC_CTRL before suspend

Older Xen versions (4.5 and before) might have problems migrating pv
guests with MSR_IA32_SPEC_CTRL having a non-zero value. So before
suspending zero that MSR and restore it after being resumed.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Cc: stable@vger.kernel.org
Cc: xen-devel@lists.xenproject.org
Cc: boris.ostrovsky@oracle.com
Link: https://lkml.kernel.org/r/20180226140818.4849-1-jgross@suse.com
arch/x86/xen/suspend.c