
Hi Prerna, Currently, cpu_powerpc.c only support IBM ppc64 CPU models. Could your please help review the previous patch? With this patch, Freescale ppc64 CPU modesl could also be recognized. # virsh cpu-models ppc64 POWER7 POWER7_v2.1 POWER7_v2.3 POWER7+_v2.1 POWER8_v1.0 POWERPC_e5500_v10 POWERPC_e5500_v11 POWERPC_e5500_v12 POWERPC_e5500_v1020 POWERPC_e6500_v10 POWERPC_e6500_v20 POWERPC_e6500_v120 But PowerPC 32bit is still recognized as 'generic architecture'. # virsh cpu-models ppc error: failed to get CPU model names error: internal error: cannot find CPU map for generic architecture Is there any plan to support ppc 32bit CPU models in cpu_powerpc.c file? Best Regards, Olivia
-----Original Message----- From: Olivia Yin [mailto:hong-hua.yin@freescale.com] Sent: Friday, January 23, 2015 11:32 AM To: libvir-list@redhat.com Cc: Yin Olivia-R63875 Subject: [PATCH] cpu: add Freescale ppc64 CPU models
When running Openstack on Freescale ppc64 board, got libvirtError as before: nova.openstack.common.threadgroup libvirtError: XML error: Missing CPU model name.
This patch is to add Freescale ppc64 CPU models.
Signed-off-by: Olivia Yin <hong-hua.yin@freescale.com> --- src/cpu/cpu_map.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+)
diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml index bd9b056..707cf88 100644 --- a/src/cpu/cpu_map.xml +++ b/src/cpu/cpu_map.xml @@ -600,6 +600,7 @@ <arch name='ppc64'> <!-- vendor definitions --> <vendor name='IBM'/> + <vendor name='Freescale'/>
<!-- IBM-based CPU models --> <model name='POWER7'> @@ -657,5 +658,40 @@ <pvr value='0x004d0000'/> </model>
+<!-- Freescale-based CPU models --> + <model name='POWERPC_e5500_v10'> + <vendor name='Freescale'/> + <pvr value='0x80240010'/> + </model> + + <model name='POWERPC_e5500_v11'> + <vendor name='Freescale'/> + <pvr value='0x80240011'/> + </model> + + <model name='POWERPC_e5500_v12'> + <vendor name='Freescale'/> + <pvr value='0x80240012'/> + </model> + + <model name='POWERPC_e5500_v1020'> + <vendor name='Freescale'/> + <pvr value='0x80241020'/> + </model> + + <model name='POWERPC_e6500_v10'> + <vendor name='Freescale'/> + <pvr value='0x80400010'/> + </model> + + <model name='POWERPC_e6500_v20'> + <vendor name='Freescale'/> + <pvr value='0x80400020'/> + </model> + + <model name='POWERPC_e6500_v120'> + <vendor name='Freescale'/> + <pvr value='0x80400120'/> + </model> </arch> </cpus> -- 2.1.0.27.g96db324