aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-09-09 10:58:04 +0300
committerAvi Kivity <avi@qumranet.com>2007-09-09 10:58:04 +0300
commit4472c764720757b1801c62e145e33fafcaf56c89 (patch)
treefd226f36e786bcdf6d0b2de5a16e173ed704e3b4
parent233c0c20fd429311d84a6f2859eb52499862d54c (diff)
Clear HALT mask for AP when using kernel irqchipkvm-37
AP HALT mask is used for userspace irqchip, when kernel irqchip is used, this flag will cause AP to block forever. Signed-off-by: Avi Kivity <avi@qumranet.com> Signed-off-by: Qing He <qing.he@intel.com>
-rw-r--r--qemu-kvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-kvm.c b/qemu-kvm.c
index b64c5ef50..395a9e6d4 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -770,6 +770,8 @@ static void *ap_main_loop(void *_env)
sigprocmask(SIG_BLOCK, &signals, NULL);
kvm_create_vcpu(kvm_context, env->cpu_index);
kvm_qemu_init_env(env);
+ if (kvm_irqchip_in_kernel(kvm_context))
+ env->hflags &= ~HF_HALTED_MASK;
kvm_main_loop_cpu(env);
return NULL;
}