From: Jan Beulich Date: Wed, 30 Jan 2008 12:33:14 +0000 (+0100) Subject: x86: adjust/fix LDT handling for Xen X-Git-Tag: v2.6.25-rc1~1143^2~278 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dbf7af6442a9a882855bed0d999659ac413e3ac;p=pandora-kernel.git x86: adjust/fix LDT handling for Xen Based on patch from Jan Beulich . Don't rely on kmalloc(PAGE_SIZE) returning PAGE_SIZE aligned memory (Xen requires GDT *and* LDT to be page-aligned). Using the page allocator interface also removes the (albeit small) slab allocator overhead. The same change being done for 64-bits for consistency. Further, the Xen hypercall interface expects the LDT address to be virtual, not machine. [ Adjusted to unified ldt.c - Jeremy ] Signed-off-by: Jan Beulich Acked-by: Jeremy Fitzhardinge Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed