From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] domain builder: Fix sp_extents allocation
Date: Thu, 31 Jul 2008 12:29:21 +0100 [thread overview]
Message-ID: <20080731112921.GF4678@implementation.uk.xensource.com> (raw)
In-Reply-To: <C4B75E46.24E81%keir.fraser@eu.citrix.com>
Keir Fraser, le Thu 31 Jul 2008 12:19:18 +0100, a écrit :
> Doesn't this turn the array allocation into a dynamic allocation? I feel a
> bit dubious about that.
> > {
> > long done;
> > - xen_pfn_t sp_extents[2048 >> SUPERPAGE_PFN_SHIFT];
> > + xen_pfn_t sp_extents[count >> SUPERPAGE_PFN_SHIFT];
> > struct xen_memory_reservation sp_req = {
Err, I'd think that it just turns a
sub (2048>>SUPERPAGE_PFN_SHIFT) * sizeof(xen_pfn_t), %esp
into a
mov count, %eax
shr SUPERPAGE_PFN_SHIFT - log2(sizeof(xen_pfn_t)), %eax
sub %eax, %esp
Samuel
next prev parent reply other threads:[~2008-07-31 11:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 11:12 [PATCH] domain builder: Fix sp_extents allocation Samuel Thibault
2008-07-31 11:19 ` Keir Fraser
2008-07-31 11:29 ` Samuel Thibault [this message]
2008-07-31 11:39 ` Keir Fraser
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=20080731112921.GF4678@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.