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.
Description of problem:
The lscpu command shows "full" but not "para" as "Virtualization type" on Xen PV domain guest.
Version-Release number of selected component (if applicable):
How reproducible:
Run lscpu on Xen PV guest on any Xen server with the feature cpuid-faulting supported.
Steps to Reproduce:
1. Boot the guest as PV domain on Xen (e.g., Xen 4.3.0)
2. Run "lscpu"
Actual results:
[root@localhost ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Stepping: 3
CPU MHz: 3392.210
BogoMIPS: 6784.42
Hypervisor vendor: Xen
Virtualization type: full <-------------- full, should be para
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0
Expected results:
[zhang@localhost util-linux]$ ./lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Model name: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Stepping: 3
CPU MHz: 3392.210
BogoMIPS: 6784.42
Hypervisor vendor: Xen
Virtualization type: para <----------------- para
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0
Additional info:
This is because Xen with cpuid-faulting supported will trap the execution of "cpiud" with GP fault. However, lscpu still assumes cpuid instruction will never be trapped by Xen hypervisor on paravirtualization guest.
The patch has been applied to util-linux upstream.
https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=0ebbe9f1048e1c7ef7d74034bd3b092fd0ef4d3e
and
https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=b4d1fbda1efdc6444f79c5e15e4ec6c74bbb5601
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-2017-0747.html