Received: from eggs.gnu.org ([2001:4830:134:3::10]:40280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1zch-0004VW-Lv for qemu-devel@nongnu.org; Mon, 08 Jun 2015 12:10:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1zca-0006Ua-HZ for qemu-devel@nongnu.org; Mon, 08 Jun 2015 12:10:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1zca-0006Tl-AY for qemu-devel@nongnu.org; Mon, 08 Jun 2015 12:09:56 -0400 Date: Mon, 8 Jun 2015 13:09:53 -0300 From: Eduardo Habkost Message-ID: <20150608160953.GM3410@thinpad.lan.raisama.net> References: <1430982264-25497-1-git-send-email-bharata@linux.vnet.ibm.com> <20150513180607.GK25766@thinpad.lan.raisama.net> <55546D3A.8010509@redhat.com> <20150525074757.GE32383@in.ibm.com> <20150525174240.GP17796@thinpad.lan.raisama.net> <20150608055818.GE25832@in.ibm.com> <20150608115103.3f888b1e@nial.brq.redhat.com> <20150608155139.GL3410@thinpad.lan.raisama.net> <5575BADE.1060309@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5575BADE.1060309@redhat.com> Subject: Re: [Qemu-devel] [RFC PATCH v0] numa: API to lookup NUMA node by address List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Igor Mammedov , david@gibson.dropbear.id.au, qemu-devel@nongnu.org, Bharata B Rao On Mon, Jun 08, 2015 at 05:55:10PM +0200, Paolo Bonzini wrote: > On 08/06/2015 17:51, Eduardo Habkost wrote: > > > > Having a numa_set_memory_region_node_id(MemoryRegion *mr, int node) API > > would probably be better, and make the discussion about pc_dimm.addr > > moot. But it would require changing > > memory_region_allocate_system_memory() to avoid > > allocate_system_memory_nonnuma() even in the !have_memdevs case. > > This in turn may have complications due to migration. We can do it later. I agree we can do it later. But what kind of complications do you see? Is the choice of MemoryRegion layout really supposed to affect migration? (Is it just about the single vmstate_register_ram_global() call at allocate_system_memory_nonnuma()?) -- Eduardo