From: Daniel Gollub <[email protected]> qemu-kvm --disable-kvm build regression of commit 8c7d4cb spotted by qemu-kvm buildbot:
/var/lib/buildbot/qemu-kvm/disable_kvm_i386_debian_5_0/build/qemu-kvm.h: In function 'kvm_arch_get_registers': /var/lib/buildbot/qemu-kvm/disable_kvm_i386_debian_5_0/build/qemu-kvm.h:1160: error: 'KVM_MP_STATE_HALTED' undeclared (first use in this function) /var/lib/buildbot/qemu-kvm/disable_kvm_i386_debian_5_0/build/qemu-kvm.h:1160: error: (Each undeclared identifier is reported only once /var/lib/buildbot/qemu-kvm/disable_kvm_i386_debian_5_0/build/qemu-kvm.h:1160: error: for each function it appears in.) make[1]: *** [vl.o] Error 1 Signed-off-by: Daniel Gollub <[email protected]> Signed-off-by: Avi Kivity <[email protected]> diff --git a/qemu-kvm.h b/qemu-kvm.h index 4be6afd..11350f7 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -1157,7 +1157,9 @@ 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 } static inline void kvm_arch_put_registers(CPUState *env) -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
