diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 9cdc1b1137ba..032faa2d4c9a 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -2410,8 +2410,11 @@ static int kvm_ppc_register_host_cpu_type(void) type_info.class_init = NULL; type_register(&type_info); g_free((void *)type_info.name); - type_info.instance_size = 0; - type_info.instance_init = NULL; + + /* Register generic spapr CPU family class for current host CPU type */ + type_info.name = g_strdup_printf("%s-"TYPE_SPAPR_CPU_CORE, dc->desc); + type_register(&type_info); + g_free((void *)type_info.name); #endif return 0;