diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-09-22 17:51:50 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-23 11:59:54 +0300 |
commit | 62ffe17b7c8b051c23f1d329a384325ca51217f2 (patch) | |
tree | b8e01995d480cf56c69691ad4b9e0550db3a2803 /qemu-kvm.h | |
parent | Don't call kvm_cpu_synchronize_state() if there is no irqchip events to process (diff) | |
download | qemu-kvm-62ffe17b7c8b051c23f1d329a384325ca51217f2.tar.gz qemu-kvm-62ffe17b7c8b051c23f1d329a384325ca51217f2.tar.bz2 qemu-kvm-62ffe17b7c8b051c23f1d329a384325ca51217f2.zip |
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.h | 9 |
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) { |