diff options
author | Liu Yu-B13201 <Yu.Liu@freescale.com> | 2011-11-28 20:41:18 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-01-03 15:48:20 +0100 |
commit | 157feeadbaec09fe4dca539a24f6f6d327d6eeb6 (patch) | |
tree | b0ef63c538ce89faa6f1e2576cd2edac56182db2 /target-ppc | |
parent | 33bcd98c4e9fe0866807bef6253a057c82087539 (diff) | |
download | qemu-157feeadbaec09fe4dca539a24f6f6d327d6eeb6.zip qemu-157feeadbaec09fe4dca539a24f6f6d327d6eeb6.tar.gz qemu-157feeadbaec09fe4dca539a24f6f6d327d6eeb6.tar.bz2 |
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]
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/kvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 429349f..9b2e605 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -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) |