Received: from eggs.gnu.org ([2001:4830:134:3::10]:52622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYI66-0001QN-7U for qemu-devel@nongnu.org; Fri, 12 Aug 2016 15:26:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYI62-0004Qd-1K for qemu-devel@nongnu.org; Fri, 12 Aug 2016 15:26:25 -0400 Date: Fri, 12 Aug 2016 16:26:18 -0300 From: Eduardo Habkost Message-ID: <20160812192618.GN5627@thinpad.lan.raisama.net> References: <1470856081-28168-1-git-send-email-clg@kaod.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1470856081-28168-1-git-send-email-clg@kaod.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH for 2.7] ppc: parse cpu features once List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?C=E9dric?= Le Goater Cc: qemu-ppc@nongnu.org, David Gibson , Bharata B Rao , qemu-devel@nongnu.org, Greg Kurz On Wed, Aug 10, 2016 at 09:08:01PM +0200, C=E9dric Le Goater wrote: > From: Greg Kurz >=20 > Considering that features are converted to global properties and > global properties are automatically applied to every new instance > of created CPU (at object_new() time), there is no point in > parsing cpu_model string every time a CPU created. So move > parsing outside CPU creation loop and do it only once. >=20 > Parsing also should be done before any CPU is created so that > features would affect the first CPU a well. >=20 > This patch does that for all PowerPC machine types. This line needs to be removed from the commit message. >=20 > It is based on previous work from Bharata: >=20 > https://lists.nongnu.org/archive/html/qemu-devel/2016-06/msg07564.html >=20 > Signed-off-by: Greg Kurz > [clg: only kept the fix for the spapr platform. support for other > platform will be added in 2.8 ] > Signed-off-by: C=E9dric Le Goater Reviewed-by: Eduardo Habkost Thanks! --=20 Eduardo