On 26/11/20 15:55, Claudio Fontana wrote:
If we agree to use "accel-cpu" I would lookup "kvm-accel-cpu"
if we agree to use "accel-x86_64" aka "accel-" CPU_RESOLVING_TYPE, I would lookup 
"kvm-accel-" CPU_RESOLVING_TYPE

* initialize the arch-specific accel CpuClass interfaces */
static void accel_init_cpu_interfaces(AccelClass *ac, const char *cpu_type)
{
     const char *ac_name; /* AccelClass name */
     char *acc_name;      /* AccelCPUClass name */
     ObjectClass *acc;    /* AccelCPUClass */

     ac_name = object_class_get_name(OBJECT_CLASS(ac));
     g_assert(ac_name != NULL);

     acc_name = g_strdup_printf("%s-cpu", ac_name);
     acc = object_class_by_name(acc_name);
     g_free(acc_name);

     if (acc) {
         object_class_foreach(accel_init_cpu_interfaces_aux, cpu_type, false, 
acc);
     }
}

I would use the second; there's no reason to have allow only one CPU type, it's just a limitation of QEMU.

Paolo


Reply via email to