]> xenbits.xensource.com Git - xen.git/commit
x86: Simplify smpboot_alloc by merging x86-{32,64} code as far as
authorKeir Fraser <keir@xen.org>
Thu, 13 Oct 2011 14:59:22 +0000 (15:59 +0100)
committerKeir Fraser <keir@xen.org>
Thu, 13 Oct 2011 14:59:22 +0000 (15:59 +0100)
commit96ecd1276c0d89ffd33ecb77ccd804a5ae2f799c
tree9ccc4bed1b6605afddfbed677ef110328a253620
parent654ef0997984ce77544ddac7dcdb150e1f63e505
x86: Simplify smpboot_alloc by merging x86-{32,64} code as far as
possible.

We still need one ifdef, as x86-32 does not have a compat_gdt_table.

On x86-32 there is 1/2-page wastage due to allocating a whole page for
the per-CPU IDT, however we expect very few users of the x86-32
hypervisor. Those that cannot move to the 64-bit hypervisor are likely
using old single-processor systems or new single-procesor netbooks. On
UP and small MP systems, the wastage is insignificant.

Signed-off-by: Keir Fraser <keir@xen.org>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/smpboot.c