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 1445836 - Add support for AMD Ryzen processors
Summary: Add support for AMD Ryzen processors
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.4
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: rc
: 7.4
Assignee: Jiri Denemark
QA Contact: Luyao Huang
URL:
Whiteboard:
Depends On: 1445834 1481252 1524824
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-26 15:33 UTC by Paolo Bonzini
Modified: 2017-12-12 08:00 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1445834
Environment:
Last Closed: 2017-08-02 07:52:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Paolo Bonzini 2017-04-26 15:33:35 UTC
+++ This bug was initially created as a clone of Bug #1445834 +++

Based on LKML email, the processor has all the features in Opteron_G5 plus the following features:

cpu family	: 23
model		: 1
model name	: AMD Ryzen 7 1800X Eight-Core Processor
flags           :
mmxext fxsr_opt rdtscp movbe rdrand extapic cr8_legacy 3dnowprefetch fsgsbase 
bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1
xsaves clzero topoext

The "topoext" feature needs extra support in QEMU.

"bpext" and "mwaitx" may need KVM support too.

Comment 2 Paolo Bonzini 2017-04-26 15:55:20 UTC
host-model is broken on Ryzen.

Comment 3 Eduardo Habkost 2017-05-10 21:33:43 UTC
(In reply to Paolo Bonzini from comment #2)
> host-model is broken on Ryzen.

This is more serious than simply lacking the CPU model definition. Is there a BZ for that with more details?

Comment 4 Jiri Denemark 2017-05-11 07:40:15 UTC
They used quite old versions of libvirt and QEMU, which resulted in Opteron_G3 plus a bunch of features instead of the newest Opteron_G5 +/- features. And QEMU was so old it didn't automatically increase CPUID level based on the extra features.

Comment 12 Paolo Bonzini 2017-06-21 13:44:19 UTC
The set of disabled feature in the guest compared to Opteron_G5 is okay.  Thanks!

Comment 16 Luyao Huang 2017-06-26 06:52:35 UTC
Verify this bug with comment 8, comment 9 and comment 10.


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