From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv2zY-0008Dl-0N for qemu-devel@nongnu.org; Fri, 14 Oct 2016 09:57:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bv2zR-0005gs-WC for qemu-devel@nongnu.org; Fri, 14 Oct 2016 09:57:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv2zR-0005gm-P4 for qemu-devel@nongnu.org; Fri, 14 Oct 2016 09:57:37 -0400 References: <1476375902-11715-1-git-send-email-lvivier@redhat.com> <1476375902-11715-2-git-send-email-lvivier@redhat.com> <20161014155519.0506c239@nial.brq.redhat.com> From: Laurent Vivier Message-ID: Date: Fri, 14 Oct 2016 15:57:33 +0200 MIME-Version: 1.0 In-Reply-To: <20161014155519.0506c239@nial.brq.redhat.com> 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 Cc: qemu-devel@nongnu.org, Matthew Rosato , Peter Maydell , Eduardo Habkost , Markus Armbruster , Bharata B Rao , Paolo Bonzini , David Gibson On 14/10/2016 15:55, Igor Mammedov wrote: > On Thu, 13 Oct 2016 18:24:43 +0200 > Laurent Vivier wrote: > > [...] >> Rename cpu_exec_exit() with cpu_exec_unrealize(): >> cpu_exec_exit() is undoing what it has been done by cpu_exec_realize(), so >> call it cpu_exec_unrealize(). > a separate patch??? > > [...] > >> diff --git a/exec.c b/exec.c >> index 374c364..885dc79 100644 >> --- a/exec.c >> +++ b/exec.c >> @@ -596,7 +596,7 @@ AddressSpace *cpu_get_address_space(CPUState *cpu, int asidx) >> } >> #endif >> >> -void cpu_exec_exit(CPUState *cpu) >> +void cpu_exec_unrealize(CPUState *cpu) > [...] > >> static void cpu_common_finalize(Object *obj) >> { >> CPUState *cpu = CPU(obj); >> - cpu_exec_exit(cpu); >> + cpu_exec_unrealize(CPU(obj)); > if it's unrealize then it should be called at cpu_unrealize() time > and not at _finalize(). > > We've skipped this change during previous release merge window > because it was too late and would touch all targets and make already > huge hotplug series even bigger. > Now since you are doing all targets sweep/cleanup anyway, > it's good time to move it to unrealize() time. Yes, v3 will do that. Laurent