Bug 2223947

Summary: [RHEL8.9] qemu core dump with '-cpu host,mpx=off' on Cascadelake host
Product: Red Hat Enterprise Linux 8 Reporter: liunana <nanliu>
Component: qemu-kvmAssignee: Ani Sinha <anisinha>
qemu-kvm sub component: CPU Models QA Contact: liunana <nanliu>
Status: VERIFIED --- Docs Contact:
Severity: high    
Priority: high CC: anisinha, chayang, coli, imammedo, jinzhao, jmaloy, juzhang, nilal, virt-maint, yfu
Version: 8.9Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-6.2.0-38.module+el8.9.0+19636+489b90af Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description liunana 2023-07-19 11:26:20 UTC
Description of problem:
qemu core dump with '-cpu host,mpx=off' on Cascadelake host


Version-Release number of selected component (if applicable):
Host:
    kernel-4.18.0-502.el8.x86_64
    qemu-kvm-6.2.0-35.module+el8.9.0+19166+e262ca96.x86_64
    Model name:          Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz


How reproducible: 6/6


Steps to Reproduce:
1. Boot qemu with '-cpu host,mpx=off' 
    # /usr/libexec/qemu-kvm -cpu host,mpx=off
2. 
3.

Actual results:
# /usr/libexec/qemu-kvm -cpu host,mpx=off
qemu-kvm: error: failed to set MSR 0x48f to 0xffefff00036dfb
qemu-kvm: ../target/i386/kvm/kvm.c:2953: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
Aborted (core dumped)

Expected results:
qemu can boot up without error.


Additional info:
Didn't reproduce this issue with qemu8.0 with rhel9 kernel on Cascadelake.

Comment 9 Yanan Fu 2023-08-11 02:41:18 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 10 liunana 2023-08-14 03:11:01 UTC
Test PASS with qemu-kvm-6.2.0-38.module+el8.9.0+19636+489b90af.x86_64.

1.
# /usr/libexec/qemu-kvm -M q35 -cpu host,migratable=on,ss=on,vmx=on,pdcm=on,hypervisor=on,tsc-adjust=on,umip=on,pku=on,md-clear=on,stibp=on,arch-capabilities=on,xsaves=on,ibpb=on,ibrs=on,amd-stibp=on,amd-ssbd=on,rdctl-no=on,ibrs-all=on,skip-l1dfl-vmentry=on,mds-no=on,pschange-mc-no=on,tsx-ctrl=on,hle=on,rtm=on,invtsc=on,rdtscp=on,x2apic=on,mpx=off,tsc-frequency=2494140000,hv-vapic=on,hv-spinlocks=0x1000,l3-cache=on,host-cache-info=off
qemu-kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
VNC server running on ::1:5900


2.
# /usr/libexec/qemu-kvm -cpu Cascadelake-Server,mpx=off
qemu-kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
VNC server running on ::1:5900


3.
# /usr/libexec/qemu-kvm -cpu host,mpx=off
VNC server running on ::1:5900


Move this bug to verified now.