avx2 cause kernel panic

jic5760

Active Member
Nov 10, 2020
41
8
28
27
cpu-models.conf:

Code:
cpu-model: avx
  flags +avx;+avx2
  phys-bits host
  hidden 0
  hv-vendor-id proxmox
  reported-model kvm64

Adding the avx2 option causes a kernel panic.
Both Ubuntu 20.04 & 22.04 are the same.
Is there a bug in qemu?


1663237853238.png
 
cpu-models.conf:

Code:
cpu-model: avx
  flags +avx;+avx2
  phys-bits host
  hidden 0
  hv-vendor-id proxmox
  reported-model kvm64

Adding the avx2 option causes a kernel panic.
Both Ubuntu 20.04 & 22.04 are the same.
Is there a bug in qemu?


View attachment 41139
What action did you take to cause the panic? Just setting the CPU type and booting? Or doing a Mongo-based workload using AVX? I'm running the latest Debian 11 with an AVX CPU and it seems to be stable so far, but I haven't spun up Mongo 5 yet...

Code:
cpu-model: avx
    flags +avx;+avx2
    phys-bits host
    hidden 0
    hv-vendor-id proxmox
    reported-model kvm64

Code:
root@docker05:~# uname -a
Linux docker05 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
 
Last edited:
I just configure CPU as added avx cpu and booted.
The OS was Ubuntu 20.04/22.04.
It has nothing to do with MongoDB as it causes a kernel panic during the boot process.

It works when the cpu is set as the host. As leesteken said, might be able to solve it with an extra flag. I just don't know what those extra flags are.