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 1852762 - [RHEL8.6]Error message need update when boot guest with '-M pc -cpu Icelake-Server,+intel-pt'
Summary: [RHEL8.6]Error message need update when boot guest with '-M pc -cpu Icelake-S...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: qemu-kvm
Version: 8.3
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: liunana
URL:
Whiteboard:
Depends On: 1997410
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-01 08:58 UTC by Yumei Huang
Modified: 2022-05-10 13:23 UTC (History)
8 users (show)

Fixed In Version: qemu-kvm-6.1.0-2.module+el8.6.0+12861+13975d62
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 13:18:39 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:1759 0 None None None 2022-05-10 13:19:39 UTC

Description Yumei Huang 2020-07-01 08:58:40 UTC
Description of problem:
Set pt_mode to 1 on host, boot guest with '-M pc -cpu Icelake-Server,+intel-pt', the error message is 
"qemu-kvm: warning: Intel PT need CPUID leaf 0x14, please set by "-cpu ...,+intel-pt,level=0x14": CPUID.07H:EBX.intel-pt [bit 25]",

but actually it should be "min-level" instead of "level". 

Version-Release number of selected component (if applicable):
qemu-kvm-4.2.0-25.module+el8.3.0+6986+29a4dcd7
kernel: 4.18.0-215.el8.x86_64

How reproducible:
always

Steps to Reproduce:
1. Set pt_mode = 1 on Icelake host first,
# rmmod kvm_intel  
# modprobe kvm_intel pt_mode=1
# cat /sys/module/kvm_intel/parameters/pt_mode 
1

2. Boot guest with '-M pc -cpu Icelake-Server,+intel-pt' or '-M pc -cpu Icelake-Server,+intel-pt,level=0x14', hit warning.


Actual results:
qemu-kvm: warning: Intel PT need CPUID leaf 0x14, please set by "-cpu ...,+intel-pt,level=0x14": CPUID.07H:EBX.intel-pt [bit 25]

Expected results:
The warning message should say min-level=0x14 instead of level=0x14.

Additional info:
1. The issue exists in 8.2.1-av as well as test in https://bugzilla.redhat.com/show_bug.cgi?id=1513681#c72.

Comment 2 Eduardo Habkost 2021-04-12 20:06:12 UTC
Will be fixed by the next QEMU rebase to 5.1.0+

Comment 3 Danilo de Paula 2021-06-11 21:58:08 UTC
We will only rebase on 8.6.

Should we mark ITR 8.6.0 on this one, so it's clear in which version this is supposed to be fixed?

Comment 5 Eduardo Habkost 2021-06-15 18:14:36 UTC
(In reply to Danilo Cesar Lemes de Paula from comment #3)
> We will only rebase on 8.6.
> 
> Should we mark ITR 8.6.0 on this one, so it's clear in which version this is
> supposed to be fixed?

Works for me.

Comment 6 liunana 2021-06-29 11:02:22 UTC
I set ITM to 10 now and we can change it if the code is still not ready at that time. Thanks!


Best regards
Liu Nana

Comment 10 Yanan Fu 2021-10-13 03:06:48 UTC
Set 'Verified:Tested,SanityOnly' as gating test with qemu-kvm-6.1.0-2.module+el8.6.0+12861+13975d62 pass.

Comment 11 liunana 2021-11-08 02:40:51 UTC
Test Env:
  intel-whitley-02.7a2m.lab.eng.bos.redhat.com
  qemu-kvm-6.1.0-2.module+el8.6.0+12861+13975d62.x86_64
  4.18.0-348.4.el8.x86_64


Test steps:
1. Set pt_mode = 1 on Icelake host first,
# rmmod kvm_intel  
# modprobe kvm_intel pt_mode=1
# cat /sys/module/kvm_intel/parameters/pt_mode 
1

2. can get right error info once missing 'min-level=0x14'.
# /usr/libexec/qemu-kvm -M pc -cpu Icelake-Server-noTSX,+intel-pt
qemu-kvm: warning: Intel PT need CPUID leaf 0x14, please set by "-cpu ...,intel-pt=on,min-level=0x14": CPUID.07H:EBX.intel-pt [bit 25]

3. can boot qemu successfully with 'min-level=0x14'.
# /usr/libexec/qemu-kvm -M pc -cpu Icelake-Server-noTSX,+intel-pt,min-level=0x14
VNC server running on ::1:5900



Move this bug to verified now, thanks.

Comment 14 errata-xmlrpc 2022-05-10 13:18:39 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 (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), 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://access.redhat.com/errata/RHSA-2022:1759


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