]> xenbits.xensource.com Git - xen.git/commit
x86: distinguish CPU offlining from CPU removal
authorJan Beulich <JBeulich@suse.com>
Thu, 19 Jul 2018 10:31:07 +0000 (04:31 -0600)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Jul 2018 12:43:33 +0000 (13:43 +0100)
commit2e6c8f182c9c50129b1c7a620242861e6ad6a9fb
treeff6bb78d364db801dc78220be834bbff61416ed4
parent97cb0516a322ecdf0032fa9d8aa1525c03d7772f
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>
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