Skip to contentSkip to conversation

kvm_ppc: remove kvmppc_timer_hack

PATCH Applied Paolo Bonzini 2 participants 2 messages Jul 27, 2015 – Aug 3, 2015

lore
Share & tools
lore
#0 lore raw

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.

---

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
index d300846..e968386 100644
@@ -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
index 032fa80..5745f03 100644
@@ -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
index a7ae392..0a96ee2 100644
@@ -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
index 4d30e27..5c1d334 100644
@@ -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
#1 lore raw
Quoted 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_hack is obsolete. Remove it.

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