Project

General

Profile

Actions

action #122503

closed

qemu-system-x86_64: error: failed to set MSR 0x40000081 to 0x1

Added by ph03nix almost 2 years ago. Updated about 2 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2022-12-28
Due date:
% Done:

0%

Estimated time:
Tags:

Description

OpenQA failure at starting WSL jobs:

[2022-12-27T16:12:43.101853+01:00] [warn] [pid:22419] !!! : qemu-system-x86_64: error: failed to set MSR 0x40000081 to 0x1
[2022-12-27T16:12:43.101907+01:00] [warn] [pid:22419] !!! : qemu-system-x86_64: ../target/i386/kvm/kvm.c:2893: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.

e.g.


Related issues 1 (0 open1 closed)

Related to openQA Infrastructure (public) - action #123004: Downgrade kernel on o3+osd x86_64 machines as workaround for boo#1206616 size:MResolvedokurz2023-01-12

Actions
Actions #1

Updated by ph03nix almost 2 years ago

  • Description updated (diff)
Actions #2

Updated by mloviska almost 2 years ago

  • Status changed from Workable to In Progress
  • Assignee set to mloviska
Actions #3

Updated by mloviska almost 2 years ago

Tests are failing on openqaworker14 that has set WORKER_CLASS=wsl2

Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         46 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  80
  On-line CPU(s) list:   0-79
Vendor ID:               GenuineIntel
  Model name:            Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz
    CPU family:          6
    Model:               85
    Thread(s) per core:  2
    Core(s) per socket:  20
    Socket(s):           2
    Stepping:            7
    CPU max MHz:         4000.0000
    CPU min MHz:         800.0000
    BogoMIPS:            4200.00
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts
                          rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_dead
                         line_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority 
                         ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xs
                         avec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req pku ospke avx512_vnni md_clear flush_l1d arch_capabili
                         ties
Virtualization features: 
  Virtualization:        VT-x
Actions #4

Updated by mloviska almost 2 years ago

last working test ran on worker3

worker3:~> lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         46 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  32
  On-line CPU(s) list:   0-31
Vendor ID:               GenuineIntel
  Model name:            Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz
    CPU family:          6
    Model:               63
    Thread(s) per core:  2
    Core(s) per socket:  8
    Socket(s):           2
    Stepping:            2
    CPU max MHz:         3200.0000
    CPU min MHz:         1200.0000
    BogoMIPS:            4788.89
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep
                         _good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline
                         _timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 
                         smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts md_clear flush_l1d
Virtualization features: 
  Virtualization:        VT-x
Actions #5

Updated by mloviska almost 2 years ago

it is a hv-synic issue: https://www.qemu.org/docs/master/system/i386/hyperv.html
SynIC is controlled through MSRs HV_X64_MSR_SCONTROL..HV_X64_MSR_EOM (0x40000080..0x40000084) and HV_X64_MSR_SINT0..HV_X64_MSR_SINT15 (0x40000090..0x4000009F)

VR: https://openqa.suse.de/tests/10304876#

QEMUCPU=host,kvm=off,vmx=on,hypervisor=off,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,hv_frequencies,hv_reenlightenment,hv_vpindex

Actions #6

Updated by mloviska almost 2 years ago

Looks like the issue is related to latest kernel update on those workers

kernel-default-optional-5.14.21-150400.24.38.1.x86_64 Wed Dec 21 07:06:23 2022
kernel-default-extra-5.14.21-150400.24.38.1.x86_64 Wed Dec 21 07:06:20 2022
kernel-default-5.14.21-150400.24.38.1.x86_64  Wed Dec 21 07:05:51 2022
Actions #8

Updated by okurz almost 2 years ago

  • Related to action #123004: Downgrade kernel on o3+osd x86_64 machines as workaround for boo#1206616 size:M added
Actions #9

Updated by mloviska almost 2 years ago

  • Status changed from In Progress to Resolved

VR: https://openqa.suse.de/tests/10329730

Kernel has been downgrade to kernel-default-5.14.21-150400.24.33.2.x86_64 on WSL2 workers.

Thanks!

Actions #10

Updated by okurz almost 2 years ago

True but we can't keep the kernel downgraded forever. But it's ok if you resolve your ticket. We still have https://bugzilla.suse.com/show_bug.cgi?id=1206616 open as well as #123004

Actions #11

Updated by ph03nix about 2 months ago

  • Tags set to WSL
Actions #12

Updated by ph03nix about 2 months ago

  • Project changed from 199 to Containers and images
Actions

Also available in: Atom PDF