Received: from eggs.gnu.org ([2001:4830:134:3::10]:54193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZehF8-0007HW-Oj for qemu-devel@nongnu.org; Wed, 23 Sep 2015 06:25:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZehF3-0001GC-Mi for qemu-devel@nongnu.org; Wed, 23 Sep 2015 06:25:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZehF3-0001G3-Fv for qemu-devel@nongnu.org; Wed, 23 Sep 2015 06:25:37 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id EAEF28F31C for ; Wed, 23 Sep 2015 10:25:36 +0000 (UTC) Date: Wed, 23 Sep 2015 12:25:33 +0200 From: Igor Mammedov Message-ID: <20150923122533.7a29a1da@nial.brq.redhat.com> In-Reply-To: <56027330.9010309@redhat.com> References: <1442836223-282767-1-git-send-email-imammedo@redhat.com> <55FFF67F.5070701@redhat.com> <20150923113644.28c31559@nial.brq.redhat.com> <56027330.9010309@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] pc: memhotplug: rise minimum DIMM addr/size alignment to 128Mb List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter , ehabkost@redhat.com, mst@redhat.com, qemu-devel@nongnu.org, David , Jiri On Wed, 23 Sep 2015 11:38:56 +0200 Paolo Bonzini wrote: > > > On 23/09/2015 11:36, Igor Mammedov wrote: > > Also it's QEMU bug/fault and pushing workaround to upper layers > > doesn't seem right when it's much easier to do it in QEMU itself. > > No, it's virtio's bug. It makes sense to push workaround for guest bugs > as far from the hypervisor as possible. > > If we want to increase the alignment in QEMU, I would prefer to have > natural alignment which makes some sense and happens to work around the > bug as well. Michael, Eduardo, any third opinions? Natural alignment we have now is 2Mb, we can leave hipervisor side as is and just try to align on 2Mb in guest + limit buffer size to 2Mb as we that would make sure that buffer never crosses DIMM borders. > > Paolo >