RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1181465 - too little cpu information when use virsh capabilities in ppc64
Summary: too little cpu information when use virsh capabilities in ppc64
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.1
Hardware: ppc64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Andrea Bolognani
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-13 09:05 UTC by Luyao Huang
Modified: 2015-11-19 06:07 UTC (History)
11 users (show)

Fixed In Version: libvirt-1.2.15-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 06:07:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1192360 0 medium CLOSED [ppc] virsh nodeinfo show the wrong cpu cores and numa cells 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2015:2202 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2015-11-19 08:17:58 UTC

Internal Links: 1192360

Description Luyao Huang 2015-01-13 09:05:01 UTC
Description of problem:
too little cpu information when use virsh capabilities in ppc64

Version-Release number of selected component (if applicable):
libvirt-1.2.8-10.el7.ppc64

How reproducible:
100%

Steps to Reproduce:
1.virsh # capabilities 
<capabilities>

  <host>
    <uuid>293e428c-2c37-4ae2-9c95-a5a8ec1f6672</uuid>
    <cpu>
      <arch>ppc64</arch>
      <topology sockets='1' cores='160' threads='1'/>   <---no model and vendor here
      <pages unit='KiB' size='64'/>
      <pages unit='KiB' size='16384'/>
      <pages unit='KiB' size='16777216'/>
    </cpu>
    <power_management>
      <suspend_mem/>
      <suspend_disk/>
      <suspend_hybrid/>
    </power_management>
    <migration_features>
      <live/>
      <uri_transports>
        <uri_transport>tcp</uri_transport>
        <uri_transport>rdma</uri_transport>
      </uri_transports>
    </migration_features>
    <topology>
      <cells num='4'>
        <cell id='0'>
          <memory unit='KiB'>67108864</memory>
          <pages unit='KiB' size='64'>1048576</pages>
          <pages unit='KiB' size='16384'>0</pages>
          <pages unit='KiB' size='16777216'>0</pages>
          <distances>
            <sibling id='0' value='10'/>
            <sibling id='1' value='20'/>
            <sibling id='16' value='40'/>
            <sibling id='17' value='40'/>
          </distances>
          <cpus num='2'>
            <cpu id='8' socket_id='0' core_id='40' siblings='8'/>
            <cpu id='16' socket_id='0' core_id='96' siblings='16'/>
          </cpus>
        </cell>
        <cell id='1'>
          <pages unit='KiB' size='64'>0</pages>
          <distances>
            <sibling id='0' value='20'/>
            <sibling id='1' value='10'/>
            <sibling id='16' value='40'/>
            <sibling id='17' value='40'/>
          </distances>
          <cpus num='4'>
            <cpu id='48' socket_id='1' core_id='168' siblings='48'/>
            <cpu id='56' socket_id='1' core_id='176' siblings='56'/>
            <cpu id='64' socket_id='1' core_id='224' siblings='64'/>
            <cpu id='72' socket_id='1' core_id='240' siblings='72'/>
          </cpus>
        </cell>
        <cell id='16'>
          <memory unit='KiB'>67108864</memory>
          <pages unit='KiB' size='64'>1048576</pages>
          <pages unit='KiB' size='16384'>0</pages>
          <pages unit='KiB' size='16777216'>0</pages>
          <distances>
            <sibling id='0' value='40'/>
            <sibling id='1' value='40'/>
            <sibling id='16' value='10'/>
            <sibling id='17' value='20'/>
          </distances>
          <cpus num='32'>
            <cpu id='80' socket_id='16' core_id='2080' siblings='80'/>
            <cpu id='88' socket_id='16' core_id='2088' siblings='88'/>
            <cpu id='90'/>
            <cpu id='91'/>
            <cpu id='92'/>
            <cpu id='93'/>
            <cpu id='94'/>
            <cpu id='95'/>
            <cpu id='96' socket_id='16' core_id='2096' siblings='96'/>
            <cpu id='97'/>
            <cpu id='98'/>
            <cpu id='99'/>
            <cpu id='100'/>
            <cpu id='101'/>
            <cpu id='102'/>
            <cpu id='103'/>
            <cpu id='104' socket_id='16' core_id='2144' siblings='104'/>
            <cpu id='105'/>
            <cpu id='106'/>
            <cpu id='107'/>
            <cpu id='108'/>
            <cpu id='109'/>
            <cpu id='110'/>
            <cpu id='111'/>
            <cpu id='112' socket_id='16' core_id='2152' siblings='112'/>
            <cpu id='113'/>
            <cpu id='114'/>
            <cpu id='115'/>
            <cpu id='116'/>
            <cpu id='117'/>
            <cpu id='118'/>
            <cpu id='119'/>
          </cpus>
        </cell>
        <cell id='17'>
          <pages unit='KiB' size='64'>0</pages>
          <distances>
            <sibling id='0' value='40'/>
            <sibling id='1' value='40'/>
            <sibling id='16' value='20'/>
            <sibling id='17' value='10'/>
          </distances>
          <cpus num='40'>
            <cpu id='120' socket_id='17' core_id='2208' siblings='120'/>
            <cpu id='121'/>
            <cpu id='122'/>
            <cpu id='123'/>
            <cpu id='124'/>
            <cpu id='125'/>
            <cpu id='126'/>
            <cpu id='127'/>
            <cpu id='128' socket_id='17' core_id='2216' siblings='128'/>
            <cpu id='129'/>
            <cpu id='130'/>
            <cpu id='131'/>
            <cpu id='132'/>
            <cpu id='133'/>
            <cpu id='134'/>
            <cpu id='135'/>
            <cpu id='136' socket_id='17' core_id='2272' siblings='136'/>
            <cpu id='137'/>
            <cpu id='138'/>
            <cpu id='139'/>
            <cpu id='140'/>
            <cpu id='141'/>
            <cpu id='142'/>
            <cpu id='143'/>
            <cpu id='144' socket_id='17' core_id='2280' siblings='144'/>
            <cpu id='145'/>
            <cpu id='146'/>
            <cpu id='147'/>
            <cpu id='148'/>
            <cpu id='149'/>
            <cpu id='150'/>
            <cpu id='151'/>
            <cpu id='152' socket_id='17' core_id='2288' siblings='152'/>
            <cpu id='153'/>
            <cpu id='154'/>
            <cpu id='155'/>
            <cpu id='156'/>
            <cpu id='157'/>
            <cpu id='158'/>
            <cpu id='159'/>
          </cpus>
        </cell>
      </cells>
    </topology>
    <secmodel>
      <model>selinux</model>
      <doi>0</doi>
      <baselabel type='kvm'>system_u:system_r:svirt_t:s0</baselabel>
      <baselabel type='qemu'>system_u:system_r:svirt_tcg_t:s0</baselabel>
    </secmodel>
    <secmodel>
      <model>dac</model>
      <doi>0</doi>
      <baselabel type='kvm'>+107:+107</baselabel>
      <baselabel type='qemu'>+107:+107</baselabel>
    </secmodel>
  </host>

  <guest>
    <os_type>hvm</os_type>
    <arch name='ppc64'>
      <wordsize>64</wordsize>
      <emulator>/usr/libexec/qemu-kvm</emulator>
      <machine maxCpus='256'>pseries-rhel7.1.0</machine>
      <machine maxCpus='256'>pseries</machine>
      <domain type='qemu'>
      </domain>
      <domain type='kvm'>
        <emulator>/usr/libexec/qemu-kvm</emulator>
      </domain>
    </arch>
    <features>
      <deviceboot/>
      <disksnapshot default='on' toggle='no'/>
    </features>
  </guest>

</capabilities>

2.
3.

Actual results:
miss model and vendor in capabilities, which will be use in cpu-compare and cpu-baseline

Expected results:
have some basic vendor and model

Additional info:

seems powerpc have its special cpu system and can get few information from /proc/cpuinfo

# cat /proc/cpuinfo
processor       : 8
cpu             : POWER8E (raw), altivec supported
clock           : 3690.000000MHz
revision        : 2.0 (pvr 004b 0200)

...

processor       : 152
cpu             : POWER8E (raw), altivec supported
clock           : 3690.000000MHz
revision        : 2.0 (pvr 004b 0200)

timebase        : 512000000
platform        : PowerNV
model           : 8247-22L
machine         : PowerNV 8247-22L
firmware        : OPAL v3

Comment 1 David Gibson 2015-01-13 23:26:32 UTC
More importantly, the topology information is incorrect - it should show has having 20 cores and 8 threads, not 160 cores with 1 thread.

Comment 2 Andrea Bolognani 2015-04-14 14:50:54 UTC
Hi,

the issue reported has been fixed by commit

  commit 1e911742287d964055f33ab76d53e673a9b4477f
  Author: Prerna Saxena <prerna.ibm.com>
  Date:   Tue Nov 4 22:58:33 2014 +0530

      PowerPC:Improve PVR handling to fall back to cpu generation.

which is included in libvirt as of 1.2.11 (v1.2.10-41-g1e91174).

The fact that, as David pointed out, the topology is not reported correctly,
is completely unrelated and still affects libvirt as of 1.2.14.

Could you please open another BZ to track that specific issue?

Thanks.

Comment 3 Andrea Bolognani 2015-04-14 15:01:01 UTC
Actually, nevermind: RHBZ 1192360 has already been filed to track the topology issue.

Have a nice day.

Comment 7 Dan Zheng 2015-07-27 07:42:20 UTC
Test on below packages:
libvirt-1.2.17-2.el7.ppc64le
kernel-3.10.0-292.el7.ppc64le
qemu-kvm-rhev-2.3.0-9.el7.ppc64le

Test 1:
Pass.

# virsh capabilities
<capabilities>

  <host>
    <uuid>7eefcde7-086c-412b-afe1-1306a9f22b3f</uuid>
    <cpu>
      <arch>ppc64le</arch>
      <model>power8e</model>                
      <vendor>IBM</vendor>
      <topology sockets='1' cores='160' threads='1'/>
      <pages unit='KiB' size='64'/>
      <pages unit='KiB' size='16384'/>
      <pages unit='KiB' size='16777216'/>
    </cpu>
    <power_management>
      <suspend_mem/>
      <suspend_disk/>
      <suspend_hybrid/>
    </power_management>
    <migration_features>
      <live/>
      <uri_transports>
        <uri_transport>tcp</uri_transport>
        <uri_transport>rdma</uri_transport>
      </uri_transports>
    </migration_features>
    <topology>
      <cells num='4'>
        <cell id='0'>
          <memory unit='KiB'>67108864</memory>
          <pages unit='KiB' size='64'>1048576</pages>
          <pages unit='KiB' size='16384'>256</pages>
          <pages unit='KiB' size='16777216'>0</pages>
          <distances>
            <sibling id='0' value='10'/>
            <sibling id='1' value='20'/>
            <sibling id='16' value='40'/>
            <sibling id='17' value='40'/>
          </distances>
          <cpus num='5'>
            <cpu id='0' socket_id='0' core_id='32' siblings='0'/>
            <cpu id='8' socket_id='0' core_id='48' siblings='8'/>
            <cpu id='16' socket_id='0' core_id='96' siblings='16'/>
            <cpu id='24' socket_id='0' core_id='104' siblings='24'/>
            <cpu id='32' socket_id='0' core_id='112' siblings='32'/>
          </cpus>
        </cell>
        <cell id='1'>
          <memory unit='KiB'>67108864</memory>
          <pages unit='KiB' size='64'>1048576</pages>
          <pages unit='KiB' size='16384'>256</pages>
          <pages unit='KiB' size='16777216'>0</pages>
          <distances>
            <sibling id='0' value='20'/>
            <sibling id='1' value='10'/>
            <sibling id='16' value='40'/>
            <sibling id='17' value='40'/>
          </distances>
          <cpus num='5'>
            <cpu id='40' socket_id='1' core_id='160' siblings='40'/>
            <cpu id='48' socket_id='1' core_id='176' siblings='48'/>
            <cpu id='56' socket_id='1' core_id='224' siblings='56'/>
            <cpu id='64' socket_id='1' core_id='232' siblings='64'/>
            <cpu id='72' socket_id='1' core_id='240' siblings='72'/>
          </cpus>
        </cell>
        <cell id='16'>
          <memory unit='KiB'>67108864</memory>
          <pages unit='KiB' size='64'>1048576</pages>
          <pages unit='KiB' size='16384'>256</pages>
          <pages unit='KiB' size='16777216'>0</pages>
          <distances>
            <sibling id='0' value='40'/>
            <sibling id='1' value='40'/>
            <sibling id='16' value='10'/>
            <sibling id='17' value='20'/>
          </distances>
          <cpus num='5'>
            <cpu id='80' socket_id='16' core_id='2080' siblings='80'/>
            <cpu id='88' socket_id='16' core_id='2088' siblings='88'/>
            <cpu id='96' socket_id='16' core_id='2096' siblings='96'/>
            <cpu id='104' socket_id='16' core_id='2144' siblings='104'/>
            <cpu id='112' socket_id='16' core_id='2160' siblings='112'/>
          </cpus>
        </cell>
        <cell id='17'>
          <memory unit='KiB'>67108864</memory>
          <pages unit='KiB' size='64'>1048576</pages>
          <pages unit='KiB' size='16384'>256</pages>
          <pages unit='KiB' size='16777216'>0</pages>
          <distances>
            <sibling id='0' value='40'/>
            <sibling id='1' value='40'/>
            <sibling id='16' value='20'/>
            <sibling id='17' value='10'/>
          </distances>
          <cpus num='5'>
            <cpu id='120' socket_id='17' core_id='2216' siblings='120'/>
            <cpu id='128' socket_id='17' core_id='2224' siblings='128'/>
            <cpu id='136' socket_id='17' core_id='2272' siblings='136'/>
            <cpu id='144' socket_id='17' core_id='2280' siblings='144'/>
            <cpu id='152' socket_id='17' core_id='2288' siblings='152'/>
          </cpus>
        </cell>
      </cells>
    </topology>
    <secmodel>
      <model>selinux</model>
      <doi>0</doi>
      <baselabel type='kvm'>system_u:system_r:svirt_t:s0</baselabel>
      <baselabel type='qemu'>system_u:system_r:svirt_tcg_t:s0</baselabel>
    </secmodel>
    <secmodel>
      <model>dac</model>
      <doi>0</doi>
      <baselabel type='kvm'>+107:+107</baselabel>
      <baselabel type='qemu'>+107:+107</baselabel>
    </secmodel>
  </host>

  <guest>
    <os_type>hvm</os_type>
    <arch name='ppc64le'>
      <wordsize>64</wordsize>
      <emulator>/usr/libexec/qemu-kvm</emulator>
      <machine maxCpus='255'>pseries-rhel7.2.0</machine>
      <machine canonical='pseries-rhel7.2.0' maxCpus='255'>pseries</machine>
      <domain type='qemu'/>
      <domain type='kvm'>
        <emulator>/usr/libexec/qemu-kvm</emulator>
      </domain>
    </arch>
    <features>
      <cpuselection/>
      <deviceboot/>
      <disksnapshot default='on' toggle='no'/>
    </features>
  </guest>

</capabilities>

# cat /proc/cpuinfo
processor	: 0
cpu		: POWER8E (raw), altivec supported
clock		: 3690.000000MHz
revision	: 2.0 (pvr 004b 0200)

processor	: 8
cpu		: POWER8E (raw), altivec supported
clock		: 3690.000000MHz
revision	: 2.0 (pvr 004b 0200)

...

processor	: 152
cpu		: POWER8E (raw), altivec supported
clock		: 3690.000000MHz
revision	: 2.0 (pvr 004b 0200)

timebase	: 512000000
platform	: PowerNV
model		: 8247-22L
machine		: PowerNV 8247-22L
firmware	: OPAL v3

Comment 9 errata-xmlrpc 2015-11-19 06:07:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2202.html


Note You need to log in before you can comment on or make changes to this bug.