kvm_ppc: remove kvmppc_timer_hack
PATCH 1/1 kvm_ppc: remove kvmppc_timer_hack
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 <[email protected]>
---
Notes:
Untested!
hw/ppc/e500.c | 4 ---- hw/ppc/ppc440_bamboo.c | 3 --- target-ppc/Makefile.objs | 2 +- target-ppc/kvm_ppc.c | 41 ----------------------------------------- target-ppc/kvm_ppc.h | 2 -- 5 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 target-ppc/kvm_ppc.c
hw/ppc/e500.c +0 -4
@@ -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)
hw/ppc/ppc440_bamboo.c +0 -3
@@ -288,9 +288,6 @@ static void bamboo_init(MachineState *machine)exit (1 ); } } - -if (kvm_enabled ()) -kvmppc_init (); }static QEMUMachine bamboo_machine = {
target-ppc/Makefile.objs +1 -1
@@ -4,7 +4,7 @@ ifeq ($(CONFIG_SOFTMMU),y) obj-y += machine.o mmu_helper.o mmu-hash32.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
target-ppc/kvm_ppc.c deleted +0 -41
41 lines not on this page · raw message
target-ppc/kvm_ppc.h +0 -2
@@ -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 );
Signature · 1 line
2.4.3
Alexander Graf
AppliedQuoted 6 lines · Paolo Bonzini
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_hackis obsolete. Remove it.Signed-off-by Paolo Bonzini <[email protected]>
Thanks, applied to ppc-next-2.5. I think all bugs we had that made this hack necessary have long been fixed, so removing the hack is definitely overdue.
Alex