diff options
| author | Jan Beulich <jbeulich@suse.com> | 2011-10-13 10:02:34 +0200 |
|---|---|---|
| committer | Jan Beulich <jbeulich@suse.com> | 2011-10-13 10:02:34 +0200 |
| commit | ddbb942359ebec0d96a73a90495e0b29a19266f9 (patch) | |
| tree | c24fa28224f59361af4d6738163c46772c8086bd /stubdom/newlib-chk.patch | |
| parent | b569c46bb3153903d59f3eeefc19ee046dab75e0 (diff) | |
| download | xen-ddbb942359ebec0d96a73a90495e0b29a19266f9.tar.gz xen-ddbb942359ebec0d96a73a90495e0b29a19266f9.tar.bz2 xen-ddbb942359ebec0d96a73a90495e0b29a19266f9.zip | |
x86-64: don't use xmalloc_array() for allocation of the (per-CPU) IDTs
The IDTs being exactly a page in size, using xmalloc() here is rather
inefficient, as this requires double the amount to be allocated (with
almost an entire page wasted). For hot plugged CPUs, this at once
eliminates one more non-order-zero runtime allocation.
For x86-32, however, the IDT is exactly half a page, so allocating a
full page seems wasteful here, so it continues to use xmalloc() as
before.
With most of the affected functions' bodies now being inside #ifdef-s,
it might be reasonable to split those parts out into subarch-specific
code...
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'stubdom/newlib-chk.patch')
0 files changed, 0 insertions, 0 deletions
