Patchwork [v3,02/17] kvm: Fix build warning when KVM_CAP_SET_GUEST_DEBUG is lacking

login
register
mail settings
Submitter Jan Kiszka
Date March 2, 2011, 7:56 a.m.
Message ID <89c94e2dacfa1beb3fa69581f887ad9487282d05.1299052578.git.jan.kiszka@siemens.com>
Download mbox | patch
Permalink /patch/85057/
State New
Headers show

Comments

Jan Kiszka - March 2, 2011, 7:56 a.m.
Original fix by David Gibson.

CC: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 kvm-all.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/kvm-all.c b/kvm-all.c
index e6a7de4..7753c8a 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;