Received: from eggs.gnu.org ([2001:4830:134:3::10]:39661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btvMz-0007Ms-0C for qemu-devel@nongnu.org; Tue, 11 Oct 2016 07:37:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btvMs-00041B-Vn for qemu-devel@nongnu.org; Tue, 11 Oct 2016 07:37:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btvMs-00040j-P2 for qemu-devel@nongnu.org; Tue, 11 Oct 2016 07:37:10 -0400 Date: Tue, 11 Oct 2016 13:37:07 +0200 From: Igor Mammedov Message-ID: <20161011133707.4004e590@nial.brq.redhat.com> In-Reply-To: <1476128076-8875-1-git-send-email-ehabkost@redhat.com> References: <1476128076-8875-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-i386: Unset cannot_destroy_with_object_finalize_yet List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Paolo Bonzini , Markus Armbruster , Richard Henderson On Mon, 10 Oct 2016 16:34:36 -0300 Eduardo Habkost wrote: > TYPE_X86_CPU now call cpu_exec_init() on realize, so we don't > need to set cannot_destroy_with_object_finalize_yet anymore. > > Signed-off-by: Eduardo Habkost Reviewed-by: Igor Mammedov > --- > target-i386/cpu.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 1e8127b..33129db 100644 > --- a/target-i386/cpu.c > +++ b/target-i386/cpu.c > @@ -3575,11 +3575,6 @@ static void x86_cpu_common_class_init(ObjectClass *oc, void *data) > cc->cpu_exec_exit = x86_cpu_exec_exit; > > dc->cannot_instantiate_with_device_add_yet = false; > - /* > - * Reason: x86_cpu_initfn() calls cpu_exec_init(), which saves the > - * object in cpus -> dangling pointer after final object_unref(). > - */ > - dc->cannot_destroy_with_object_finalize_yet = true; > } > > static const TypeInfo x86_cpu_type_info = {