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.
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.
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.