arm: remove remaining cannot_destroy_with_object_finalize_yet
Subsystems (5)
PATCH 1/1 arm: remove remaining cannot_destroy_with_object_finalize_yet
With commit ce5b1bbf624b ("exec: move cpu_exec_init() calls to realize functions"), we can now remove all the remaining cannot_destroy_with_object_finalize_yet as unsafe references have been moved to cpu_exec_realizefn(). (tested with QOM command provided by commit 4c315c27).
--- hw/arm/allwinner-a10.c | 6 ------ hw/arm/bcm2836.c | 6 ------ hw/arm/digic.c | 6 ------ hw/arm/fsl-imx25.c | 5 ----- hw/arm/fsl-imx31.c | 5 ----- hw/arm/fsl-imx6.c | 5 ----- hw/arm/xlnx-zynqmp.c | 6 ------ 7 files changed, 39 deletions(-)
hw/arm/allwinner-a10.c +0 -6
@@ -118,12 +118,6 @@ static void aw_a10_class_init(ObjectClass *oc, void *data)DeviceClass *dc =DEVICE_CLASS (oc); dc->realize = aw_a10_realize; - -/* -* Reason: creates an ARM CPU, thus use after free(), see -* arm_cpu_class_init() -*/ - dc->cannot_destroy_with_object_finalize_yet = true; }static const TypeInfo aw_a10_type_info = {
hw/arm/bcm2836.c +0 -6
@@ -160,12 +160,6 @@ static void bcm2836_class_init(ObjectClass *oc, void *data) dc->props = bcm2836_props; dc->realize = bcm2836_realize; - -/* -* Reason: creates an ARM CPU, thus use after free(), see -* arm_cpu_class_init() -*/ - dc->cannot_destroy_with_object_finalize_yet = true; }static const TypeInfo bcm2836_type_info = {
hw/arm/digic.c +0 -6
@@ -101,12 +101,6 @@ static void digic_class_init(ObjectClass *oc, void *data)DeviceClass *dc =DEVICE_CLASS (oc); dc->realize = digic_realize; - -/* -* Reason: creates an ARM CPU, thus use after free(), see -* arm_cpu_class_init() -*/ - dc->cannot_destroy_with_object_finalize_yet = true; }static const TypeInfo digic_type_info = {
hw/arm/fsl-imx25.c +0 -5
@@ -290,11 +290,6 @@ static void fsl_imx25_class_init(ObjectClass *oc, void *data) dc->realize = fsl_imx25_realize; -/* -* Reason: creates an ARM CPU, thus use after free(), see -* arm_cpu_class_init() -*/ - dc->cannot_destroy_with_object_finalize_yet = true; dc->desc ="i.MX25 SOC" ; }
hw/arm/fsl-imx31.c +0 -5
@@ -262,11 +262,6 @@ static void fsl_imx31_class_init(ObjectClass *oc, void *data) dc->realize = fsl_imx31_realize; -/* -* Reason: creates an ARM CPU, thus use after free(), see -* arm_cpu_class_init() -*/ - dc->cannot_destroy_with_object_finalize_yet = true; dc->desc ="i.MX31 SOC" ; }
hw/arm/fsl-imx6.c +0 -5
@@ -442,11 +442,6 @@ static void fsl_imx6_class_init(ObjectClass *oc, void *data) dc->realize = fsl_imx6_realize; -/* -* Reason: creates an ARM CPU, thus use after free(), see -* arm_cpu_class_init() -*/ - dc->cannot_destroy_with_object_finalize_yet = true; dc->desc ="i.MX6 SOC" ; }
hw/arm/xlnx-zynqmp.c +0 -6
@@ -439,12 +439,6 @@ static void xlnx_zynqmp_class_init(ObjectClass *oc, void *data) dc->props = xlnx_zynqmp_props; dc->realize = xlnx_zynqmp_realize; - -/* -* Reason: creates an ARM CPU, thus use after free(), see -* arm_cpu_class_init() -*/ - dc->cannot_destroy_with_object_finalize_yet = true; }static const TypeInfo xlnx_zynqmp_type_info = {
Signature · 1 line
2.9.3
Quoted 5 lines · Laurent Vivier
With commit
ce5b1bbf624b("exec: movecpu_exec_init()calls to realize functions"), we can now remove all the remainingcannot_destroy_with_object_finalize_yetas unsafe references have been moved tocpu_exec_realizefn(). (tested with QOM command provided by commit4c315c27).
Also tested with device-introspect-test :)
Quoted 2 lines
Suggested-by Markus Armbruster <[email protected]>Signed-off-by Laurent Vivier <[email protected]>
Thanks, Laurent!
Just three places marking broken devices left: versatile.c ("realview_pci" and "versatile_pci"), target/ppc/kvm.c (various ppc CPUs). Volunteers to fix them, so we can get rid of cannot_destroy_with_object_finalize_yet?
Quoted 13 lines · Markus Armbruster
Quoted 5 lines · Laurent Vivier
With commit
ce5b1bbf624b("exec: movecpu_exec_init()calls to realize functions"), we can now remove all the remainingcannot_destroy_with_object_finalize_yetas unsafe references have been moved tocpu_exec_realizefn(). (tested with QOM command provided by commit4c315c27).Also tested with device-introspect-test :)
Quoted 2 lines
Suggested-by Markus Armbruster <[email protected]>Signed-off-by Laurent Vivier <[email protected]>
Quoted 9 lines
Thanks, Laurent!
Reviewed-by Markus Armbruster <[email protected]>Just three places marking broken devices left:
versatile.c("realview_pci" and "versatile_pci"),target/ppc/kvm.c(various ppc CPUs). Volunteers to fix them, so we can get rid ofcannot_destroy_with_object_finalize_yet?
I think I can have a look to these ones too.
Laurent