From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrupA-0007NI-Vr for qemu-devel@nongnu.org; Wed, 17 Mar 2010 11:06:21 -0400 Received: from [199.232.76.173] (port=38760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrupA-0007My-Et for qemu-devel@nongnu.org; Wed, 17 Mar 2010 11:06:20 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nrup9-0006nV-Pe for qemu-devel@nongnu.org; Wed, 17 Mar 2010 11:06:20 -0400 Received: from mx20.gnu.org ([199.232.41.8]:4655) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nrup9-0006nP-J3 for qemu-devel@nongnu.org; Wed, 17 Mar 2010 11:06:19 -0400 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nrup8-0003TW-Q4 for qemu-devel@nongnu.org; Wed, 17 Mar 2010 11:06:19 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH QEMU] Transparent Hugepage Support #3 Date: Wed, 17 Mar 2010 15:05:57 +0000 References: <20100317145950.GA5752@random.random> In-Reply-To: <20100317145950.GA5752@random.random> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003171505.57790.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Andrea Arcangeli , Avi Kivity > + if (size >= PREFERRED_RAM_ALIGN) > + new_block->host = qemu_memalign(PREFERRED_RAM_ALIGN, size); > Is this deliberately bigger-than rather than multiple-of? Having the size not be a multiple of alignment seems somewhat strange, it's always going to be wrong at one end... Paul