kvm: Change kvm_cpu_synchronize_state() argument to CPUState

It no longer relies on CPUArchState.

Signed-off-by: Andreas Färber <afaerber@suse.de>
kvm: Change cpu_synchronize_state() argument to CPUState

Change Monitor::mon_cpu to CPUState as well.
In cpu_sychronize_all_states() use qemu_for_each_cpu() now.
In dump_init() use cpu_synchronize_all_states().

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus: Simplify cpu_synchronize_all_post_reset()

Use new qemu_for_each_cpu().

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus: Simplify cpu_synchronize_all_post_init()

Use new qemu_for_each_cpu().

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus: Partially simplify pause_all_vcpus()

Use new qemu_for_each_cpu() to kick CPUs.

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus: Simplify resume_all_vcpus()

Use new qemu_for_each_cpu().

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus: Simplify set_numa_modes()

Use new qemu_for_each_cpu().

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus: Simplify qmp_inject_nmi()

Use new qemu_for_each_cpu().

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus: Simplify hw_error()

Use new qemu_for_each_cpu().

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus: Simplify qemu_tcg_wait_io_event() and qemu_tcg_cpu_thread_fn()

Use new qemu_for_each_cpu().

Signed-off-by: Andreas Färber <afaerber@suse.de>