LKML Archive on
help / color / mirror / Atom feed
From: "Jan Beulich" <>
To: "Jeremy Fitzhardinge" <>
Cc: "Ingo Molnar" <>, <>,
	"Jeremy Fitzhardinge" <>
Subject: Re: [PATCH] adjust/fix LDT handling for Xen
Date: Mon, 14 Jan 2008 08:22:06 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

>>> Jeremy Fitzhardinge <> 11.01.08 18:28 >>>
>Jan Beulich wrote:
>> Don't rely on kmalloc(PAGE_SIZE) returning PAGE_SIZE aligned memory
>> (Xen requires GDT *and* LDT to be page-aligned).
>Can kmalloc return non-page-aligned PAGE_SIZE allocations?

Documentation says it's to return pointer-size aligned memory - any excess
alignment is therefore an implementation detail. (Nevertheless, afaics all
current allocators generate page-aligned chunks.)

>>  Using the page
>> allocator interface also removes the (albeit small) slab allocator
>> overhead.
>Runtime or space overhead?  Given that they're once-off allocations, the 
>time part isn't a big factor.  And apparently LDT is completely unused.

Both, but as I also said the saving is small.


  reply	other threads:[~2008-01-14  8:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-11  9:22 [PATCH] adjust/fix LDT handling for Xen Jan Beulich
2008-01-11  9:39 ` Jiri Slaby
2008-01-11 10:08   ` Jan Beulich
2008-01-11 17:28 ` Jeremy Fitzhardinge
2008-01-14  8:22   ` Jan Beulich [this message]
2008-01-14 15:48 ` Ingo Molnar
2008-01-14 16:06   ` Jan Beulich
2008-01-14 17:04     ` Jeremy Fitzhardinge
2008-01-15 13:24       ` Ingo Molnar
2008-01-15 21:47         ` Jeremy Fitzhardinge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).