x86: distinguish CPU offlining from CPU removal
authorJan Beulich <jbeulich@suse.com>
Mon, 30 Jul 2018 09:24:53 +0000 (11:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 30 Jul 2018 09:24:53 +0000 (11:24 +0200)
commit5908b4866b682d9189c36eddf7c898fd95b27ec1
tree5c20fea4636a97b91aefa3137c75c46de3806778
parentbd51a6424202a5f1cd13dee6614bcb69ecbd2458
x86: distinguish CPU offlining from CPU removal

In order to be able to service #MC on offlined CPUs, the GDT, IDT,
stack, and per-CPU data (which includes the TSS) need to be kept
allocated. They should only be freed upon CPU removal (which we
currently don't support, so some code is becoming effectively dead for
the moment).

Note that for now park_offline_cpus doesn't get set to true anywhere -
this is going to be the subject of a subsequent patch.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 2e6c8f182c9c50129b1c7a620242861e6ad6a9fb
master date: 2018-07-19 13:43:33 +0100
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/domain.c
xen/arch/x86/genapic/x2apic.c
xen/arch/x86/percpu.c
xen/arch/x86/smpboot.c
xen/include/asm-x86/smp.h
xen/include/xen/cpu.h
xen/include/xen/cpumask.h
xen/include/xen/mm.h
xen/include/xen/xmalloc.h