Received: from eggs.gnu.org ([2001:4830:134:3::10]:55698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZldCn-0001B1-MY for qemu-devel@nongnu.org; Mon, 12 Oct 2015 09:32:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZldCm-0006S5-KD for qemu-devel@nongnu.org; Mon, 12 Oct 2015 09:31:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZldCm-0006Ru-GD for qemu-devel@nongnu.org; Mon, 12 Oct 2015 09:31:56 -0400 Date: Mon, 12 Oct 2015 15:31:51 +0200 From: Igor Mammedov Message-ID: <20151012153151.76d333c1@igors-macbook-pro.local> In-Reply-To: <1444373400-18423-3-git-send-email-bharata@linux.vnet.ibm.com> References: <1444373400-18423-1-git-send-email-bharata@linux.vnet.ibm.com> <1444373400-18423-3-git-send-email-bharata@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v1 2/2] spapr: Force gaps between DIMM's GPA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bharata B Rao Cc: mst@redhat.com, qemu-devel@nongnu.org, david@gibson.dropbear.id.au On Fri, 9 Oct 2015 12:20:00 +0530 Bharata B Rao wrote: > Mapping DIMMs non contiguously allows to workaround virtio bug > reported earlier: > http://lists.nongnu.org/archive/html/qemu-devel/2015-08/msg00522.html > In this case guest kernel doesn't allocate buffers that can cross DIMM > boundary keeping each buffer local to a DIMM. > > Suggested-by: Michael S. Tsirkin > Signed-off-by: Bharata B Rao Reviewed-by: Igor Mammedov > --- > hw/ppc/spapr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > index 4a901f0..a66833f 100644 > --- a/hw/ppc/spapr.c > +++ b/hw/ppc/spapr.c > @@ -2137,7 +2137,7 @@ static void spapr_memory_plug(HotplugHandler > *hotplug_dev, DeviceState *dev, goto out; > } > > - pc_dimm_memory_plug(dev, &ms->hotplug_memory, mr, align, false, > &local_err); > + pc_dimm_memory_plug(dev, &ms->hotplug_memory, mr, align, true, > &local_err); if (local_err) { > goto out; > }