x86/SVM: correct boot time cpu_data[] handling
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Mar 2017 16:08:36 +0000 (17:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Mar 2017 16:08:36 +0000 (17:08 +0100)
commitf2c608444261824a9463a7847be2d08ee3ae0c48
tree6e778a88b009545493097aca33c294e8643725cc
parent3c76488305ddb6adb3cf03f636e1c0b80ca3a76b
x86/SVM: correct boot time cpu_data[] handling

start_svm() already runs after cpu_data[] was set up, so it shouldn't
modify it anymore (at least not directly). Constify the involved
pointers.

Furthermore LMSLE feature detection was broken by 566ddbe833 ("x86:
Fail CPU bringup cleanly if it cannot initialise HVM"), as Andrew
Cooper has pointed out: c couldn't possibly equal &boot_cpu_data
anymore. (But since it's unsafe migration-wise for some more time,
suppress the feature actually being enabled for us.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/svm/asid.c
xen/arch/x86/hvm/svm/svm.c
xen/include/asm-x86/hvm/svm/asid.h