summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-07-22 15:32:52 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:15 -0500
commitfc5d642fcae392bbc9fed9ac6bc78ac29ed48372 (patch)
treec6e1ff0fcb8b9f29f3ab6c029c679e68789f1d75
parentslirp: Use monotonic clock if available (v2) (diff)
downloadqemu-kvm-fc5d642fcae392bbc9fed9ac6bc78ac29ed48372.tar.gz
qemu-kvm-fc5d642fcae392bbc9fed9ac6bc78ac29ed48372.tar.bz2
qemu-kvm-fc5d642fcae392bbc9fed9ac6bc78ac29ed48372.zip
Fix broken build
The only caller of on_vcpu() is protected by ifdef KVM_CAP_SET_GUEST_DEBUG, so protect on_vcpu() too otherwise QEMU may not to build. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--kvm-all.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 91d9333a6..9a822ed88 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -155,15 +155,6 @@ static void kvm_reset_vcpu(void *opaque)
}
}
-static void on_vcpu(CPUState *env, void (*func)(void *data), void *data)
-{
- if (env == cpu_single_env) {
- func(data);
- return;
- }
- abort();
-}
-
int kvm_irqchip_in_kernel(void)
{
return kvm_state->irqchip_in_kernel;
@@ -909,6 +900,15 @@ void kvm_setup_guest_memory(void *start, size_t size)
}
#ifdef KVM_CAP_SET_GUEST_DEBUG
+static void on_vcpu(CPUState *env, void (*func)(void *data), void *data)
+{
+ if (env == cpu_single_env) {
+ func(data);
+ return;
+ }
+ abort();
+}
+
struct kvm_sw_breakpoint *kvm_find_sw_breakpoint(CPUState *env,
target_ulong pc)
{