From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.25.15.230 with SMTP id 99csp1455978lfp; Mon, 27 Mar 2017 22:09:33 -0700 (PDT) X-Received: by 10.55.20.201 with SMTP id 70mr23555770qku.67.1490677773375; Mon, 27 Mar 2017 22:09:33 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t47si2546930qtg.58.2017.03.27.22.09.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 27 Mar 2017 22:09:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gibson.dropbear.id.au; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Received: from localhost ([::1]:50007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csjNs-0008O7-RZ for alex.bennee@linaro.org; Tue, 28 Mar 2017 01:09:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csjNo-0008Nf-FB for qemu-arm@nongnu.org; Tue, 28 Mar 2017 01:09:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csjNn-0000On-6Q for qemu-arm@nongnu.org; Tue, 28 Mar 2017 01:09:28 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:49629) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1csjNm-0000Mt-CV; Tue, 28 Mar 2017 01:09:27 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3vsf7y3hwZz9s7F; Tue, 28 Mar 2017 16:09:18 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1490677758; bh=XTkBlOgtEDMOPSXevwBVjmoyrVS3YVz9nHE4OVDYo64=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GdOwiAeRWA+a5YDQij9htq7ZEWjK1CBx5nTzWI4R7cEApUjNELYvHegJ3+AUx/QcO 9Hlu8MP3l1cwF3ZzCMZwZ4NRbre4TW8awXIhhjFONdj6iFvgS5b/bCAmFumrQcOr/C rM2pmLMoH8Sm+nzzZam7w/6kEjroQqYkXvyC7Mlg= Date: Tue, 28 Mar 2017 15:55:18 +1100 From: David Gibson To: Igor Mammedov Message-ID: <20170328045518.GH21068@umbus.fritz.box> References: <1490189568-167621-1-git-send-email-imammedo@redhat.com> <1490189568-167621-19-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="K1n7F7fSdjvFAEnM" Content-Disposition: inline In-Reply-To: <1490189568-167621-19-git-send-email-imammedo@redhat.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 Subject: Re: [Qemu-arm] [PATCH for-2.10 18/23] numa: remove no longer need numa_post_machine_init() X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Andrew Jones , Eduardo Habkost , qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org, Shannon Zhao , Paolo Bonzini , Eric Blake Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: wkTBsuMAyso+ --K1n7F7fSdjvFAEnM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 22, 2017 at 02:32:43PM +0100, Igor Mammedov wrote: > CPUState::numa_node is still in use but now it's set by > board when it creates CPU objects. So there isn't any > need to set it again after all CPU's are created, > since it's been already set. >=20 > Signed-off-by: Igor Mammedov Reviewed-by: David Gibson > --- > include/sysemu/numa.h | 1 - > numa.c | 15 --------------- > vl.c | 2 -- > 3 files changed, 18 deletions(-) >=20 > diff --git a/include/sysemu/numa.h b/include/sysemu/numa.h > index c67763a..345bb94 100644 > --- a/include/sysemu/numa.h > +++ b/include/sysemu/numa.h > @@ -25,7 +25,6 @@ typedef struct node_info { > =20 > extern NodeInfo numa_info[MAX_NODES]; > void parse_numa_opts(MachineState *ms); > -void numa_post_machine_init(void); > void query_numa_node_mem(uint64_t node_mem[]); > extern QemuOptsList qemu_numa_opts; > void numa_set_mem_node_id(ram_addr_t addr, uint64_t size, uint32_t node); > diff --git a/numa.c b/numa.c > index 187c93f..8461c96 100644 > --- a/numa.c > +++ b/numa.c > @@ -418,21 +418,6 @@ void parse_numa_opts(MachineState *ms) > } > } > =20 > -void numa_post_machine_init(void) > -{ > - CPUState *cpu; > - int i; > - > - CPU_FOREACH(cpu) { > - for (i =3D 0; i < nb_numa_nodes; i++) { > - assert(cpu->cpu_index < max_cpus); > - if (test_bit(cpu->cpu_index, numa_info[i].node_cpu)) { > - cpu->numa_node =3D i; > - } > - } > - } > -} > - > static void allocate_system_memory_nonnuma(MemoryRegion *mr, Object *own= er, > const char *name, > uint64_t ram_size) > diff --git a/vl.c b/vl.c > index 5ffb9c3..e5c1620 100644 > --- a/vl.c > +++ b/vl.c > @@ -4587,8 +4587,6 @@ int main(int argc, char **argv, char **envp) > =20 > cpu_synchronize_all_post_init(); > =20 > - numa_post_machine_init(); > - > rom_reset_order_override(); > =20 > /* --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --K1n7F7fSdjvFAEnM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJY2ey2AAoJEGw4ysog2bOSkskQAJ2rSxN07Napljq3cYmxPGEl e6Lv214KlCKnOhIJW/BB3gSx6z+QwAdY+7Y30h5+/Rp+ATY59FMdDR6UgURfSLkb O4d+Rzxc1r0J2KPXqP0nGu68vMSPJhmFjDH6VfJ9zUigqTsmlC9Ti13osfm463ij nDAzu7Z0yoJLtbUkSYxuJA/od99hDyN8wrhZ6O9gfTzWciOFo7xe7M+n3dFq2siV FMEvZGdnt2syx4SrwM838s68WHMcUcYZK/nzMtskSX/P0Zlb/dxirEf4yX55bjD7 nTRhvBt5XlZ2th8BryREEvktM+EMDjJ4zzuVIK9E1r0aBogymVRBzUbwy4ZImPT3 lxCdDLNN5JL8auI03ylBgcuatIC+UOHIiFPFn58/SrDO7qOqETY5N0/i4FkXppaC tzXDN0DWG3pFq5dSXme77e6/n4v0SThzpEGJG4rNRAVNF78DmHgK4Bbew91GFjXH DMg8DgTJsdeOh6AtiC9jtEZOiQSBHK9qdFVUMasp4jAxt6q6MPx1xQyqaTJwOiT8 H21nf4Dkhgv4AFHyOdgC5t+7AedQSWofgjsGNZxw/22QOpw0hkJBi/X2lCcYZHvF UGeJwFK2NYIGBUBUHq2i7AEsKOE8oALHnb7/U7uYu49a9N9EkX5TGWLkNv7fRFOt Sv3ZhAhXxMuLWZxh/bFR =Np6X -----END PGP SIGNATURE----- --K1n7F7fSdjvFAEnM--