]> git.proxmox.com Git - qemu.git/commitdiff
kvm: Fix build warning when KVM_CAP_SET_GUEST_DEBUG is lacking
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 2 Mar 2011 07:56:05 +0000 (08:56 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 15 Mar 2011 04:19:04 +0000 (01:19 -0300)
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>
kvm-all.c

index e6a7de47221251ba7b3ace48e6effbea8eb76311..7753c8ae385f59fed7269a6d6ac4cdae0ff13d47 100644 (file)
--- 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;