]> xenbits.xensource.com Git - libvirt.git/commit
S390: Fixed core identification for s390
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Fri, 22 Jun 2012 11:50:13 +0000 (13:50 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 25 Jun 2012 14:43:18 +0000 (16:43 +0200)
commit2abbffec6e9fb2af72a5ef37e2435201ed505aaa
treec549f46908fadf6c28fb3f8e960fa6736d61f757
parentbf2e40fac034428d51efbab4a39cfe3c56132786
S390: Fixed core identification for s390

For the s390x architecture the sysfs core_id alone is not unique. As a
result it can happen that libvirt thinks there are less host CPUs available
than really present.
Currently, a logical CPU is equivalent to a core for s390x. We therefore
produce a fake core id from the CPU number.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/nodeinfo.c