kvm: Change kvm_cpu_synchronize_state() argument to CPUState

It no longer relies on CPUArchState.

Reviewed-by: liguang <lig.fnst@cn.fujitsu.com>
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_synchronize_all_states() use qemu_for_each_cpu() now.

Reviewed-by: liguang <lig.fnst@cn.fujitsu.com>
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: Simplify pause_all_vcpus()

Use new qemu_for_each_cpu() to pause, stop and 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>
gdbstub: Simplify find_cpu()

Use qemu_get_cpu() and CPUState::env_ptr.

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

It no longer depends on CPUArchState, so move it to qom/cpu.c.

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

It no longer needs CPUArchState.

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

It no longer uses CPUArchState.

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

CPUArchState is no longer needed.

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

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpu: Turn cpu_dump_{state,statistics}() into CPUState hooks

Make cpustats monitor command available unconditionally.

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

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

Signed-off-by: Andreas Färber <afaerber@suse.de>
gdbstub: Set gdb_set_stop_cpu() argument to CPUState

Use CPUState::env_ptr for now.

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