Skip to content

Commit

Permalink
kvm_ppc: remove kvmppc_timer_hack
Browse files Browse the repository at this point in the history
QEMU does have an I/O thread now, that can be interrupted at any time
because the VCPU thread runs outside the iothread mutex.

Therefore, the kvmppc_timer_hack is obsolete.  Remove it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
  • Loading branch information
bonzini authored and agraf committed Sep 20, 2015
1 parent 1864098 commit 116dc18
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 51 deletions.
4 changes: 0 additions & 4 deletions hw/ppc/e500.c
Expand Up @@ -1048,10 +1048,6 @@ void ppce500_init(MachineState *machine, PPCE500Params *params)
boot_info->entry = bios_entry;
boot_info->dt_base = dt_base;
boot_info->dt_size = dt_size;

if (kvm_enabled()) {
kvmppc_init();
}
}

static int e500_ccsr_initfn(SysBusDevice *dev)
Expand Down
3 changes: 0 additions & 3 deletions hw/ppc/ppc440_bamboo.c
Expand Up @@ -288,9 +288,6 @@ static void bamboo_init(MachineState *machine)
exit(1);
}
}

if (kvm_enabled())
kvmppc_init();
}

static void bamboo_machine_init(MachineClass *mc)
Expand Down
2 changes: 1 addition & 1 deletion target-ppc/Makefile.objs
Expand Up @@ -4,7 +4,7 @@ ifeq ($(CONFIG_SOFTMMU),y)
obj-y += machine.o mmu_helper.o mmu-hash32.o monitor.o
obj-$(TARGET_PPC64) += mmu-hash64.o arch_dump.o
endif
obj-$(CONFIG_KVM) += kvm.o kvm_ppc.o
obj-$(CONFIG_KVM) += kvm.o
obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
obj-y += dfp_helper.o
obj-y += excp_helper.o
Expand Down
41 changes: 0 additions & 41 deletions target-ppc/kvm_ppc.c

This file was deleted.

2 changes: 0 additions & 2 deletions target-ppc/kvm_ppc.h
Expand Up @@ -11,8 +11,6 @@

#define TYPE_HOST_POWERPC_CPU "host-" TYPE_POWERPC_CPU

void kvmppc_init(void);

#ifdef CONFIG_KVM

uint32_t kvmppc_get_tbfreq(void);
Expand Down

0 comments on commit 116dc18

Please sign in to comment.