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: ---   
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