Bug 2223947 - [RHEL8.9] qemu core dump with '-cpu host,mpx=off' on Cascadelake host
Summary: [RHEL8.9] qemu core dump with '-cpu host,mpx=off' on Cascadelake host
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: qemu-kvm
Version: 8.9
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Ani Sinha
QA Contact: liunana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-19 11:26 UTC by liunana
Modified: 2023-08-14 08:44 UTC (History)
10 users (show)

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:
Clone Of:
Environment:
Last Closed:
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/rhel/src/qemu-kvm qemu-kvm merge_requests 297 0 None None None 2023-08-09 07:01:12 UTC
Red Hat Issue Tracker RHELPLAN-162814 0 None None None 2023-07-20 06:45:50 UTC

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.


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