From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1FE-0007KF-8j for qemu-devel@nongnu.org; Mon, 05 Oct 2015 04:35:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj1FA-00005d-86 for qemu-devel@nongnu.org; Mon, 05 Oct 2015 04:35:40 -0400 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:58172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1F9-0008Vh-GT for qemu-devel@nongnu.org; Mon, 05 Oct 2015 04:35:36 -0400 Received: from /spool/local by e28smtp01.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 5 Oct 2015 14:05:32 +0530 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 1C0F61258018 for ; Mon, 5 Oct 2015 14:05:10 +0530 (IST) Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay05.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t958ZRop38142112 for ; Mon, 5 Oct 2015 14:05:27 +0530 Received: from d28av03.in.ibm.com (localhost [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t958ZQL8027603 for ; Mon, 5 Oct 2015 14:05:26 +0530 From: Bharata B Rao Date: Mon, 5 Oct 2015 14:05:24 +0530 Message-Id: <1444034124-28747-3-git-send-email-bharata@linux.vnet.ibm.com> In-Reply-To: <1444034124-28747-1-git-send-email-bharata@linux.vnet.ibm.com> References: <1444034124-28747-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC v0 2/2] spapr: Force gaps between DIMM's GPA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: imammedo@redhat.com, Bharata B Rao , david@gibson.dropbear.id.au 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 --- 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 2ec509b..a8526e9 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -2127,7 +2127,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; } -- 2.1.0