From: Paolo Bonzini <pbonzini@redhat.com>
To: "Chen, Hanxiao" <chenhanxiao@cn.fujitsu.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2] exec: use macro ROUND_UP for alignment
Date: Tue, 28 Jul 2015 10:13:39 +0200 [thread overview]
Message-ID: <55B739B3.10109@redhat.com> (raw)
In-Reply-To: <5871495633F38949900D2BF2DC04883E739C66E3@G08CNEXMBPEKD02.g08.fujitsu.local>
On 28/07/2015 10:11, Chen, Hanxiao wrote:
>
>> -----Original Message-----
>> From: qemu-devel-bounces+chenhanxiao=cn.fujitsu.com@nongnu.org
>> [mailto:qemu-devel-bounces+chenhanxiao=cn.fujitsu.com@nongnu.org] On Behalf Of
>> Chen Hanxiao
>> Sent: Friday, July 24, 2015 11:12 AM
>> To: Paolo Bonzini
>> Cc: qemu-devel@nongnu.org
>> Subject: [Qemu-devel] [PATCH v2] exec: use macro ROUND_UP for alignment
>>
>> Use ROUND_UP instead.
>>
>> Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
>> ---
>> exec.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/exec.c b/exec.c
>> index 7d60e15..bb16c50 100644
>> --- a/exec.c
>> +++ b/exec.c
>> @@ -1207,7 +1207,7 @@ static void *file_ram_alloc(RAMBlock *block,
>> unlink(filename);
>> g_free(filename);
>>
>> - memory = (memory+hpagesize-1) & ~(hpagesize-1);
>> + memory = ROUND_UP(memory, hpagesize);
>>
>> /*
>> * ftruncate is not supported by hugetlbfs in older
>> --
>> 2.1.0
>>
>
> ping
QEMU is in hard freeze. It's normal to wait a few days more for
non-bugfix patches. This one is okay, though.
Paolo
prev parent reply other threads:[~2015-07-28 8:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-24 3:12 [Qemu-devel] [PATCH v2] exec: use macro ROUND_UP for alignment Chen Hanxiao
2015-07-28 8:11 ` Chen, Hanxiao
2015-07-28 8:13 ` Paolo Bonzini [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=55B739B3.10109@redhat.com \
--to=pbonzini@redhat.com \
--cc=chenhanxiao@cn.fujitsu.com \
--cc=qemu-devel@nongnu.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.