Red Hat Bugzilla – 1227180 – "virsh emulatorpin <domain>" doesn't get the updated cpulist after the cpulist changes to "0-7" from "0-6"(on a host with cpu number is multiple of 8).
Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
"virsh emulatorpin <domain>" doesn't get the updated cpulist after the cpulist changes to "0-7" from "0-6"(on a host with cpu number is multiple of 8).
Fixed upstream:
commit 4ed2b9a7e4bf2109b3711e493e6c4559d7227885
Author: Peter Krempa <pkrempa>
Date: Fri Jun 12 15:53:05 2015 +0200
qemu: emulatorpin: Don't reset pinning when pinning to all cpus
Similarly to a02a161bb8a6caf0db4dd446ed1cdf53d97b40 remove the default
pinning assumption from emulatorpin.
v1.2.16-154-g4ed2b9a
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
Description: "virsh emulatorpin <domain>" doesn't get the updated cpulist after the cpulist changes to "0-7" from "0-6". This only happens on the host whose cpu number is multiple of 8. Version: libvirt-1.2.15-2.el7.x86_64 qemu-kvm-rhev-2.3.0-1.el7.x86_64 kernel-3.10.0-247.el7.x86_64 How reproducible: 100% Steps to Reproduce: 0. # virsh nodecpumap CPUs present: 8 CPUs online: 8 CPU map: yyyyyyyy 1. # virsh edit r71 ... <vcpu placement='static' cpuset='0-6'>1</vcpu> ... 2.Start guest r71. # virsh emulatorpin rhel7.0 emulator: CPU Affinity ---------------------------------- *: 0-6 3. # virsh emulatorpin rhel7.0 --cpulist 0-7 # echo $? 0 4. # virsh emulatorpin rhel7.0 emulator: CPU Affinity ---------------------------------- *: 0-6 5.# cgget -g cpuset /machine.slice/machine-qemu\\x2drhel7.0.scope/emulator /machine.slice/machine-qemu\x2drhel7.0.scope/emulator: cpuset.memory_spread_slab: 0 cpuset.memory_spread_page: 0 cpuset.memory_pressure: 0 cpuset.memory_migrate: 1 cpuset.sched_relax_domain_level: -1 cpuset.sched_load_balance: 1 cpuset.mem_hardwall: 0 cpuset.mem_exclusive: 0 cpuset.cpu_exclusive: 0 cpuset.mems: 0 cpuset.cpus: 0-7 Actual results: In step4, "virsh emulatorpin rhel7.0" doesn't get the updated cpulist after the cpulist changes to "0-7" from "0-6". Expected results: In step4, "virsh emulatorpin rhel7.0" can get the updated cpulist "0-7".