aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-03-02 08:56:05 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2011-03-15 01:19:04 -0300
commitfbc1c7e6886290c72e78bac85db8e779d608b38b (patch)
tree35406c4d91c83abb910834da63d5dcb2eb7c879a
parentbdcbd3e2fb98407e6b0928a17d1ed61786cb6389 (diff)
kvm: Fix build warning when KVM_CAP_SET_GUEST_DEBUG is lacking
Original fix by David Gibson. CC: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--kvm-all.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvm-all.c b/kvm-all.c
index e6a7de4722..7753c8ae38 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -998,7 +998,9 @@ int kvm_cpu_exec(CPUState *env)
}
ret = EXCP_INTERRUPT;
+#ifdef KVM_CAP_SET_GUEST_DEBUG
out:
+#endif
env->exit_request = 0;
cpu_single_env = NULL;
return ret;