x86/setup: Intoduce XEN_MSR_STAR
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sun, 18 Dec 2016 14:56:28 +0000 (14:56 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Feb 2017 11:06:39 +0000 (11:06 +0000)
commit36b35babdf381b8e2843d37e29da2ddc01ec3282
tree5fe39165abdc3751e9260ae294949ff5d2111337
parent2f1add6e1c8789d979daaafa3d80ddc1bc375783
x86/setup: Intoduce XEN_MSR_STAR

Xen's choice of the MSR_STAR value is constant across all pcpus.  Introduce a
new define and use it to avoid the opencoding in subarch_percpu_traps_init()
and restore_rest_processor_state().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/suspend.c
xen/arch/x86/x86_64/traps.c
xen/include/asm-x86/processor.h