]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
exec: call cpu_exec_exit() from a CPU unrealize common function
authorLaurent Vivier <lvivier@redhat.com>
Thu, 20 Oct 2016 11:26:04 +0000 (13:26 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 24 Oct 2016 19:29:16 +0000 (17:29 -0200)
commit7bbc124e7e8fb544288ccd1f5185643a7d0554b8
treed0859c0549f46cd8a38b3182763d1fe554c6e875
parentce5b1bbf624b977a55ff7f85bb3871682d03baff
exec: call cpu_exec_exit() from a CPU unrealize common function

As cpu_exec_exit() mirrors the cpu_exec_realizefn(),
rename it as cpu_exec_unrealizefn().

Create and register a cpu_common_unrealizefn() function for
the CPU device class and call cpu_exec_unrealizefn() from
this function.

Remove cpu_exec_exit() from cpu_common_finalize()
(which mirrors init, not realize), and as x86_cpu_unrealizefn()
and ppc_cpu_unrealizefn() overwrite the device class unrealize function,
add a call to a parent_unrealize pointer.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
exec.c
include/qom/cpu.h
qom/cpu.c
target-i386/cpu-qom.h
target-i386/cpu.c
target-ppc/cpu-qom.h
target-ppc/translate_init.c