All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, keir@xen.org
Subject: Re: [PATCH] xen/malloc: handle correctly page allocation when align > size
Date: Sun, 09 Mar 2014 15:25:13 +0000	[thread overview]
Message-ID: <531C87D9.5080900@linaro.org> (raw)
In-Reply-To: <5319A8280200007800121DA6@nat28.tlf.novell.com>



On 07/03/14 10:06, Jan Beulich wrote:
>>>> On 07.03.14 at 07:46, Julien Grall <julien.grall@linaro.org> wrote:
>> When align is superior to size, we need to retrieve the order from
>> align during multiple page allocation. I guess it was the goal of the commit
>> fb034f42 "xmalloc: make close-to-PAGE_SIZE allocations more efficient".
>
> Oh, yes, of course it was. Without that the call is pointless.
>
>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
>
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
>
> Albeit in fact the better change might be to simply use
> max(size, align) in the initializer of order - no idea why I didn't do
> it that way.

I can send a new version of this page to use max.

> Out of curiosity: I never expected this code path to be actually
> taken - what is it that you need this to work correctly?

I was looking to the code to decide if the best solution is to use 
xmalloc or alloc_xenheap_pages directly.

-- 
Julien Grall

      reply	other threads:[~2014-03-09 15:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-07  6:46 [PATCH] xen/malloc: handle correctly page allocation when align > size Julien Grall
2014-03-07 10:06 ` Jan Beulich
2014-03-09 15:25   ` Julien Grall [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=531C87D9.5080900@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.