QEMU KVM internal error (SMM removal bit-rot?)

daagaak

New Member
Aug 10, 2021
1
0
1
39
I have a Windows VM I migrated from a non-Proxmox installation and it crashes qemu about 2-3 mins after boot (see end of thread). The pxe-qemu repo disables kvm smm support but seems like it's opened the door for SMM mode calls to be made inside the guest when it hasn't been properly confirgured.

Recompiling pxe-qemu without the following patch allows smm to be enabled and my guest no longer seems to crash repeatedly.
Code:
/pve/0005-PVE-Config-smm_available-false.patch

Code:
Aug 07 22:43:51 niobium QEMU[2160416]: KVM internal error. Suberror: 1
Aug 07 22:43:51 niobium QEMU[2160416]: emulation failure
Aug 07 22:43:51 niobium QEMU[2160416]: EAX=534d0940 EBX=4a44d830 ECX=00000000 EDX=000000b2
Aug 07 22:43:51 niobium QEMU[2160416]: ESI=00000000 EDI=00000000 EBP=4a44d960 ESP=4a44d7c0
Aug 07 22:43:51 niobium QEMU[2160416]: EIP=00008000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=1 HLT=0
Aug 07 22:43:51 niobium QEMU[2160416]: ES =0000 00000000 ffffffff 00809300
Aug 07 22:43:51 niobium QEMU[2160416]: CS =3000 00030000 ffffffff 00809b00
Aug 07 22:43:51 niobium QEMU[2160416]: SS =0000 00000000 ffffffff 00809300
Aug 07 22:43:51 niobium QEMU[2160416]: DS =0000 00000000 ffffffff 00809300
Aug 07 22:43:51 niobium QEMU[2160416]: FS =0000 00000000 ffffffff 00809300
Aug 07 22:43:51 niobium QEMU[2160416]: GS =0000 00000000 ffffffff 00809300
Aug 07 22:43:51 niobium QEMU[2160416]: LDT=0000 00000000 00000000 00000000
Aug 07 22:43:51 niobium QEMU[2160416]: TR =0040 4a442000 00000067 00008b00
Aug 07 22:43:51 niobium QEMU[2160416]: GDT=     4a443fb0 00000057
Aug 07 22:43:51 niobium QEMU[2160416]: IDT=     00000000 00000000
Aug 07 22:43:51 niobium QEMU[2160416]: CR0=00050032 CR2=00000000 CR3=001ad000 CR4=00000000
Aug 07 22:43:51 niobium QEMU[2160416]: DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
Aug 07 22:43:51 niobium QEMU[2160416]: DR6=00000000ffff0ff0 DR7=0000000000000400
Aug 07 22:43:51 niobium QEMU[2160416]: EFER=0000000000000000
Aug 07 22:43:51 niobium QEMU[2160416]: Code=kvm: /build/pve-qemu/pve-qemu-kvm-6.0.0/include/hw/core/cpu.h:627: cpu_asidx_from_attrs: Assertion `ret < cpu->num_ases && ret >= 0' failed.
 
  • Like
Reactions: daagaak

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!