Received: from eggs.gnu.org ([2001:4830:134:3::10]:33355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byeoi-00051L-6c for qemu-devel@nongnu.org; Mon, 24 Oct 2016 08:57:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byeof-0007jo-4W for qemu-devel@nongnu.org; Mon, 24 Oct 2016 08:57:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47172) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byeoe-0007ji-Vu for qemu-devel@nongnu.org; Mon, 24 Oct 2016 08:57:25 -0400 References: <20161021082801.dglwfsocljohquok@hz-desktop> <20161024134455.64508943@nial.brq.redhat.com> From: Paolo Bonzini Message-ID: Date: Mon, 24 Oct 2016 14:57:16 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Regression caused by d2f39ad "exec.c: Ensure right alignment also for file backed ram" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dominik Dingel , Igor Mammedov Cc: Haozhong Zhang , qemu-devel@nongnu.org, chao.p.peng@intel.com, Eduardo Habkost , Peter Crosthwaite , anthony.xu@intel.com, Richard Henderson On 24/10/2016 14:33, Dominik Dingel wrote: > That should work, now the question would be why on x86 file backed memory > allocations differ to anonymous allocations? > > On s390 all allocations used for KVM should be aligned on a segment basis. On x86, none of the allocations used for KVM need to be aligned. Reporting an error for hugetlbfs is just a convenience to ensure that people don't e.g. use a gigabyte-page hugetlbfs mount for small guests. Paolo