• I
    ppc: drop caching ObjectClass from PowerPCCPUAlias · 2527cb91
    Igor Mammedov 提交于
    Caching there practically doesn't give any benefits
    and that at slow path druring querying supported CPU list.
    But it introduces non conventional path of where from
    comes used CPU type name (kvm_ppc_register_host_cpu_type).
    
    Taking in account that kvm_ppc_register_host_cpu_type()
    fixes up models the aliases point to, it's sufficient to
    make ppc_cpu_class_by_name() translate cpu alias to
    correct cpu type name.
    So drop PowerPCCPUAlias::oc field + ppc_cpu_class_by_alias()
    and let ppc_cpu_class_by_name() do conversion to cpu type name,
    which simplifies code a little bit saving ~20LOC and trouble
    wondering why ppc_cpu_class_by_alias() is necessary.
    Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
    Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
    2527cb91
cpu-models.h 30.0 KB