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 1707706

Summary: /builddir/build/BUILD/qemu-2.12.0/target/i386/kvm.c:2031: kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
Product: Red Hat Enterprise Linux 8 Reporter: Lei Yang <leiyang>
Component: qemu-kvmAssignee: Eduardo Habkost <ehabkost>
Status: CLOSED ERRATA QA Contact: Yumei Huang <yuhuang>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.1CC: bdas, chayang, ddepaula, jinzhao, juzhang, pezhang, qizhu, rbalakri, virt-maint
Target Milestone: rcKeywords: Regression
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-2.12.0-72.module+el8.1.0+3195+d1915e73 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:49:21 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:

Description Lei Yang 2019-05-08 07:14:06 UTC
Description of problem:
# /usr/libexec/qemu-kvm -name rhel8 -M q35,kernel-irqchip=split -m 4G -cpu EPYC
qemu-kvm: error: failed to set MSR 0x10a to 0x0
qemu-kvm: /builddir/build/BUILD/qemu-2.12.0/target/i386/kvm.c:2031: kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
Aborted (core dumped)


Version-Release number of selected component (if applicable):
qemu-kvm-2.12.0-70.module+el8.1.0+3165+631e0cd3.x86_64
kernel-4.18.0-80.1.2.el8_0.x86_64

How reproducible:
100%

Steps to Reproduce:
1.boot qemu
/usr/libexec/qemu-kvm -name rhel8 -M q35,kernel-irqchip=split -m 4G -cpu EPYC


Actual results:


Expected results:


Additional info:

Comment 1 Lei Yang 2019-05-08 07:45:40 UTC
Verified with qemu-kvm-2.12.0-69.module+el8.1.0+3143+457f984c.x86_64 works well.

Comment 3 jingzhao 2019-05-08 07:53:26 UTC
Hi Lei

Did we hit the issue on Intel host? 
Could you help to list the test result?

Thanks
Jing

Comment 4 Lei Yang 2019-05-08 08:12:32 UTC
(In reply to jingzhao from comment #3)
> Hi Lei
> 
> Did we hit the issue on Intel host? 
> Could you help to list the test result?
> 
> Thanks
> Jing

Hi Jing,

Intel host works well.

# /usr/libexec/qemu-kvm -name rhel8 -M q35,kernel-irqchip=split -m 4G -cpu Haswell-noTSX
VNC server running on ::1:5900

Lei

Comment 6 Bandan Das 2019-05-08 17:39:54 UTC
Can you please try this test brew build ?
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=21576035

Comment 8 Lei Yang 2019-05-09 02:27:51 UTC
(In reply to Bandan Das from comment #6)
> Can you please try this test brew build ?
> https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=21576035

Tested with qemu-kvm-2.12.0-71.el8.bdas201905081337.x86_64 works well.

# /usr/libexec/qemu-kvm -name rhel8 -M q35,kernel-irqchip=split -m 4G -cpu EPYC
VNC server running on ::1:5900

Comment 9 Bandan Das 2019-05-09 04:55:12 UTC
Thanks for verifying, we need commit aec5e9c3a94cf8b7920f59bef69a6f426092c4a0

Comment 11 Danilo de Paula 2019-05-14 16:44:14 UTC
Fix included in qemu-kvm-2.12.0-72.module+el8.1.0+3195+d1915e73

Comment 13 Yumei Huang 2019-05-30 07:51:13 UTC
Verify:
qemu-kvm-2.12.0-74.module+el8.1.0+3227+57d66ad3

No core dump when boot guest with EPYC cpu model, and guest works well.

Comment 15 errata-xmlrpc 2019-11-05 20:49:21 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://access.redhat.com/errata/RHSA-2019:3345