Red Hat Bugzilla – Bug 988077
PVR code comparison in POWER hosts
Last modified: 2014-02-21 19:10:09 EST
Created attachment 777866 [details]
A XML describing a CPU to be compared with the host.
Description of problem:
The virsh cpu-compare does not report my POWER7 rev 2.1 cpu as compatible with itself.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run virsh cpu-compare description.xml on a POWER 7 2.1 host(this file is attached)
2. The host CPU is reported as incompatible with the CPU described in the XML
The CPU is reported as incompatible.
The CPU should be reported as identical to the host CPU.
The "ppcModelFindPVR" function in the cpu_powerpc.c source file uses a direct comparison (equality operator) between the host CPU PVR code and the PVR code described in the cpu_map.xml for the POWER7 processors. This comparison should ignore part of the PVR code that indicates the revision of the processor, as described in the POWER ISA, page 745: