summaryrefslogtreecommitdiff
path: root/qemu-kvm.h
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-09-22 17:51:50 +0300
committerAvi Kivity <avi@redhat.com>2009-09-23 11:59:54 +0300
commit62ffe17b7c8b051c23f1d329a384325ca51217f2 (patch)
treeb8e01995d480cf56c69691ad4b9e0550db3a2803 /qemu-kvm.h
parent798188cbc00808d5d6574b7eaf2978f369ce0df1 (diff)
Update halted state from mpstate only in case of inkernel irq chip
Otherwise cpu is always unhalted by call to kvm_arch_get_registers(). Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'qemu-kvm.h')
-rw-r--r--qemu-kvm.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/qemu-kvm.h b/qemu-kvm.h
index b2c8c3548..4523e2586 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -1181,14 +1181,7 @@ static inline int kvm_sync_vcpus(void)
}
#ifndef QEMU_KVM_NO_CPU
-static inline void kvm_arch_get_registers(CPUState *env)
-{
- kvm_arch_save_regs(env);
- kvm_arch_save_mpstate(env);
-#ifdef KVM_CAP_MP_STATE
- env->halted = (env->mp_state == KVM_MP_STATE_HALTED);
-#endif
-}
+void kvm_arch_get_registers(CPUState *env);
static inline void kvm_arch_put_registers(CPUState *env)
{