mirror of https://gitee.com/openkylin/qemu.git
kvm-ppc: halt secondary cpus when guest reset
When guest reset, we need to halt secondary cpus until guest kick them. This already works for tcg. The patch add the support for kvm. Signed-off-by: Liu Yu <yu.liu@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de> [agraf: remove in-kernel irqchip code]
This commit is contained in:
parent
33bcd98c4e
commit
157feeadba
|
@ -112,6 +112,7 @@ static void spin_kick(void *data)
|
|||
|
||||
env->halted = 0;
|
||||
env->exception_index = -1;
|
||||
env->stopped = 0;
|
||||
qemu_cpu_kick(env);
|
||||
}
|
||||
|
||||
|
|
|
@ -504,7 +504,7 @@ void kvm_arch_post_run(CPUState *env, struct kvm_run *run)
|
|||
|
||||
int kvm_arch_process_async_events(CPUState *env)
|
||||
{
|
||||
return 0;
|
||||
return env->halted;
|
||||
}
|
||||
|
||||
static int kvmppc_handle_halt(CPUState *env)
|
||||
|
|
Loading…
Reference in New Issue