diff mbox

Fix --disable-kvm build regression of commit 8c7d4cb

Message ID 200909100110.20894.gollub@b1-systems.de (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel Gollub Sept. 9, 2009, 11:10 p.m. UTC
qemu-kvm --disable-kvm build regression of commit 8c7d4cb spotted by
qemu-kvm buildbot:

http://buildbot.b1-systems.de/qemu-kvm/builders/disable_kvm_i386_debian_5_0/builds/44
http://buildbot.b1-systems.de/qemu-kvm/builders/disable_kvm_x86_64_debian_5_0/builds/42

Signed-off-by: Daniel Gollub <gollub@b1-systems.de>

 qemu-kvm.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

--

Comments

Avi Kivity Sept. 10, 2009, 9:43 a.m. UTC | #1
On 09/10/2009 02:10 AM, Daniel Gollub wrote:
> qemu-kvm --disable-kvm build regression of commit 8c7d4cb spotted by
> qemu-kvm buildbot:
>
> http://buildbot.b1-systems.de/qemu-kvm/builders/disable_kvm_i386_debian_5_0/builds/44
> http://buildbot.b1-systems.de/qemu-kvm/builders/disable_kvm_x86_64_debian_5_0/builds/42
>
>    

Applied, thanks.
diff mbox

Patch

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)