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.

Bug 1292678

Summary: Qemu should report error when cmdline set threads=2 in amd host
Product: Red Hat Enterprise Linux 6 Reporter: Yumei Huang <yuhuang>
Component: qemu-kvmAssignee: Wei Huang (AMD) <wehuang>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: high    
Version: 6.8CC: ailan, chayang, ehabkost, hhuang, jen, juzhang, michen, mkenneth, mrezanin, qzhang, rbalakri, salmy, sherold, virt-maint, wehuang, wei, xfu, yiwei, zhguo
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.495.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-21 09:35:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1359965    

Description Yumei Huang 2015-12-18 03:09:17 UTC
Description of problem:
In amd host, when qemu cmdline set threads=2, qemu should report " AMD CPU doesn't support hyperthreading", just like rhel7.2. 

Version-Release number of selected component (if applicable):
kernel: 2.6.32-593.el6.x86_64
qemu: qemu-kvm-0.12.1.2-2.481.el6

How reproducible:
always

Steps to Reproduce:
1.  start a qemu process with threads=2
  /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1 -numa node -numa node  -monitor stdio

2. 
3.

Actual results:
Qemu report nothing.


Expected results:
Qemu should report error, just like rhel7.2:
qemu-kvm: AMD CPU doesn't support hyperthreading. Please configure -smp options properly.

Additional info:

Comment 2 Wei Huang (AMD) 2015-12-21 16:04:49 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1135772.

I will get a patch for 6.8. Please assign it to me.

-Wei

Comment 3 Jeff Nelson 2016-01-18 21:51:47 UTC
Fix included in qemu-kvm-0.12.1.2-2.484.el6

Comment 5 Guo, Zhiyi 2016-01-20 05:31:39 UTC
Test on qemu-kvm version:qemu-kvm-0.12.1.2-2.482.el6.x86_64
No warning output after lunch qemu-kvm:
# /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1
VNC server running on `::1:5900'
Verified on qemu-kvm version:qemu-img-0.12.1.2-2.484.el6.x86_64:
Warning output after lunch qemu-kvm:
# /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1
qemu-kvm: AMD CPU doesn't support hyperthreading. Please configure -smp options properly.

Comment 14 Yash Mankad 2016-10-27 20:32:41 UTC
Fix included in qemu-kvm-0.12.1.2-2.495.el6

Comment 16 Yiqian Wei 2016-10-28 09:19:42 UTC
Reproduce:
host version:
  kernel-2.6.32-642.el6.x86_64
  qemu-kvm-0.12.1.2-2.494.el6.x86_64
Steps to Reproduce:
1.start a qemu process with threads=2 
# /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1
VNC server running on `::1:5900'

Actual results:
Qemu report nothing.

------------------------------------

Verify this bug on "qemu-kvm-0.12.1.2-2.495.el6.x86_64" as same steps above.

Test results:Qemu report error
# /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1
qemu-kvm: AMD CPU doesn't support hyperthreading. Please configure -smp options properly.

According to result above,this bug has been fixed.

Comment 19 errata-xmlrpc 2017-03-21 09:35:46 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, 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/RHSA-2017-0621.html