From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv3R6-0001KD-05 for qemu-devel@nongnu.org; Fri, 14 Oct 2016 10:26:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bv3R2-0004sE-M8 for qemu-devel@nongnu.org; Fri, 14 Oct 2016 10:26:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv3R2-0004ri-F1 for qemu-devel@nongnu.org; Fri, 14 Oct 2016 10:26:08 -0400 References: <1476375902-11715-1-git-send-email-lvivier@redhat.com> <1476375902-11715-2-git-send-email-lvivier@redhat.com> <20161014161158.16187a9a@nial.brq.redhat.com> From: Laurent Vivier Message-ID: Date: Fri, 14 Oct 2016 16:26:02 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 01/20] exec: split cpu_exec_init() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov , Eduardo Habkost Cc: qemu-devel@nongnu.org, Matthew Rosato , Peter Maydell , Markus Armbruster , Bharata B Rao , Paolo Bonzini , David Gibson On 14/10/2016 16:13, Laurent Vivier wrote: > > > On 14/10/2016 16:11, Igor Mammedov wrote: >> On Thu, 13 Oct 2016 18:24:43 +0200 >> Laurent Vivier wrote: >> >>> Extract the realize part to cpu_exec_realize(), update all >>> calls to cpu_exec_init() to add cpu_exec_realize() to >>> have no functionnal change. >>> >>> Put in cpu_exec_init() what initializes the CPU, >>> in cpu_exec_realize() what adds it to the environment. >> now since it's split, why not call cpu_exec_init() >> from common cpu_common_initfn() and do >> s/cpu_exec_init/cpu_exec_realize/ on individual targets >> so that they don't have to call it from their _initfn()s. > > It's done later in the series. But I'm going to simplified the series as proposed by you and Eduardo. Thanks, Laurent