From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkRVP-0004GN-2M for qemu-devel@nongnu.org; Fri, 09 Oct 2015 02:50:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkRVL-0000Ac-RZ for qemu-devel@nongnu.org; Fri, 09 Oct 2015 02:50:14 -0400 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:45760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkRVL-000092-1b for qemu-devel@nongnu.org; Fri, 09 Oct 2015 02:50:11 -0400 Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 9 Oct 2015 12:20:06 +0530 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 089931258019 for ; Fri, 9 Oct 2015 12:19:46 +0530 (IST) Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay05.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t996o3eX41484462 for ; Fri, 9 Oct 2015 12:20:03 +0530 Received: from d28av04.in.ibm.com (localhost [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t996o2J3024021 for ; Fri, 9 Oct 2015 12:20:03 +0530 From: Bharata B Rao Date: Fri, 9 Oct 2015 12:19:58 +0530 Message-Id: <1444373400-18423-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC v1 0/2] Enforce gaps between DIMMs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: imammedo@redhat.com, mst@redhat.com, Bharata B Rao , david@gibson.dropbear.id.au The suggested way to work around the virtio bug reported here http://lists.nongnu.org/archive/html/qemu-devel/2015-08/msg00522.html is to introduce gaps between DIMMs. Igor's patchset changes the pc-dimm auto-address assignment to introduce gaps and ues the same from pc memhp. This patchset does the same for sPAPR PowerPC. Before introducing the gap, ensure that memory hotplug region has enough room for alignment adjustment. We accommodate a max alignment of 256MB for each slot since sPAPR memory hotplug enforces an alignment requirement of 256MB on RAM size, maxmem and NUMA node mem sizes. This applies on David's spapr-next branch + Igor's patchset applied. Changes in v1 ------------- - Create DRC objects spanning the alignment-adjusted hotplug memory region instead of just for (maxmem - ramsize). - Pass an alignment of 256M to pc_dimm_memory_plug() so that we always get 256M aligned DIMM addresses. v0: https://lists.gnu.org/archive/html/qemu-devel/2015-10/msg00749.html Bharata B Rao (2): spapr: Accommadate alignment gaps in hotplug memory region spapr: Force gaps between DIMM's GPA hw/ppc/spapr.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) -- 2.1.0