Skip to content

Commit

Permalink
Fix broken build
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
Luiz Capitulino authored and Anthony Liguori committed Jul 27, 2009
1 parent aaf10d9 commit fc5d642
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions kvm-all.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit fc5d642

Please sign in to comment.