target-i386: Unset cannot_destroy_with_object_finalize_yet
PATCH 1/1 target-i386: Unset cannot_destroy_with_object_finalize_yet
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 <[email protected]>
--- target-i386/cpu.c | 5 ----- 1 file changed, 5 deletions(-)
target-i386/cpu.c +0 -5
@@ -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 = {
Signature · 1 line
2.7.4
Quoted 4 lines · On Mon, 10 Oct 2016 16:34:36 -0300 Eduardo Habkost <[email protected]> wrote:
TYPE_X86_CPUnow callcpu_exec_init()on realize, so we don't need to setcannot_destroy_with_object_finalize_yetanymore.Signed-off-by Eduardo Habkost <[email protected]>
Reviewed-by Igor Mammedov <[email protected]>
Quoted 20 lines
--- target-i386/cpu.c | 5 ----- 1 file changed, 5 deletions(-)target-i386/cpu.c +0
-5@@ -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 = {
Quoted 8 lines · Igor Mammedov
Quoted 4 lines · On Mon, 10 Oct 2016 16:34:36 -0300 Eduardo Habkost <[email protected]> wrote:
TYPE_X86_CPUnow callcpu_exec_init()on realize, so we don't need to setcannot_destroy_with_object_finalize_yetanymore.Signed-off-by Eduardo Habkost <[email protected]>Reviewed-by Igor Mammedov <[email protected]>
Thanks. Applied to x86-next.
Signature · 1 line
Eduardo