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 1316363 - cmd vcpupin/emulatorpin output wrong info if vcpu bind to a not exist cpu in config
Summary: cmd vcpupin/emulatorpin output wrong info if vcpu bind to a not exist cpu in ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.3
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-10 05:08 UTC by Luyao Huang
Modified: 2016-09-16 15:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-16 15:20:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Luyao Huang 2016-03-10 05:08:19 UTC
Description of problem:
cmd vcpupin output wrong info if vcpu bind to a not exist cpu in config

Version-Release number of selected component (if applicable):
libvirt-1.3.2-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.
# virsh dumpxml rhel7.0-rhel
...
  <cputune>
    <vcpupin vcpu='0' cpuset='30'/>
    <emulatorpin cpuset='30'/>
  </cputune>
...

2.
# lscpu 
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
...


3.
# virsh vcpupin rhel7.0-rhel --config
VCPU: CPU Affinity
----------------------------------
   0: 

# virsh emulatorpin rhel7.0-rhel --config
emulator: CPU Affinity
----------------------------------
       *: 



Actual results:
cmd vcpupin/emulatorpin output wrong info if vcpu bind to a not exist cpu in config 

Expected results:
show the correct result

# virsh vcpupin rhel7.0-rhel --config
VCPU: CPU Affinity
----------------------------------
   0: 30

# virsh emulatorpin rhel7.0-rhel --config
emulator: CPU Affinity
----------------------------------
       *: 30



Additional info:

Comment 1 Peter Krempa 2016-09-16 15:20:44 UTC
The configuration is impossible to achieve using virsh vcpupin. Fixing this is not really worth it.


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