[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1813165] Re: KVM internal error. Suberror: 1 emulation

From: Laszlo Ersek \(Red Hat\)
Subject: [Qemu-devel] [Bug 1813165] Re: KVM internal error. Suberror: 1 emulation failure
Date: Mon, 11 Feb 2019 18:50:06 -0000

This is related to SMM usage in SeaBIOS. The QEMU register dump states
SMM=1, plus "<0f> aa" from the dumped code stands for the RSM
instruction (0F AA -- RSM—Resume from System Management Mode, see it in
the Intel SDM.)

In RHEL7 downstream, we disabled SMM usage in SeaBIOS.
- https://bugzilla.redhat.com/show_bug.cgi?id=1378006
- https://bugzilla.redhat.com/show_bug.cgi?id=1464654#c21

It's conceivable that the upstream host kernel suffered a regression
4.19 and 4.20; in particular when it comes to nesting. For example, Ladi
fixed <https://bugzilla.redhat.com/show_bug.cgi?id=1488203> in

0234bf885236 KVM: x86: introduce ISA specific SMM entry/exit callbacks
72d7b374b14d KVM: x86: introduce ISA specific smi_allowed callback
21f2d5511838 KVM: nVMX: set IDTR and GDTR limits when loading L1 host state
72e9cbdb4338 KVM: nVMX: fix SMI injection in guest mode
c26340651b75 KVM: nSVM: refactor nested_svm_vmrun
05cade71cf3b KVM: nSVM: fix SMI injection in guest mode

These were part of v4.15. But, based on
<https://bugzilla.redhat.com/show_bug.cgi?id=1661979>, more recent
kernels may have regressed those fixes.

(Bunch of non-public BZ references above; sorry about that, I can't open
them up.)

** Bug watch added: Red Hat Bugzilla #1378006

** Bug watch added: Red Hat Bugzilla #1464654

** Bug watch added: Red Hat Bugzilla #1488203

** Bug watch added: Red Hat Bugzilla #1661979

You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

  KVM internal error. Suberror: 1 emulation failure

Status in QEMU:

Bug description:
  Hello Devs.

  Having problems getting VM to run with qemu 3.1.0. I should mention
  it's a nested configuration.

  2019-01-24 13:46:08.648+0000: starting up libvirt version: 4.10.0, qemu 
version: 3.1.0, kernel: 4.14.94, hostname: one....
 HOME=/root USER=root QEMU_AUDIO_DRV=none /usr/bin/kvm -name 
guest=one-266,debug-threads=on -S -object 
 -machine pc-i440fx-2.9,accel=kvm,usb=off,dump-guest-core=off -cpu 
 -m 1024 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 
b219b45d-a2f0-4128-a948-8673a7abf968 -no-user-config -nodefaults -chardev 
socket,id=charmonitor,fd=21,server,nowait -mon 
chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot 
strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive 
 -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev 
tap,fd=23,id=hostnet0 -device 
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 
-vnc -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device 
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -sandbox 
on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg 
  char device redirected to /dev/pts/1 (label charserial0)
  KVM internal error. Suberror: 1
  emulation failure
  EAX=00000001 EBX=000f7c2c ECX=00000001 EDX=00000001
  ESI=00006a26 EDI=3ffbdc48 EBP=000069e6 ESP=000a8000
  EIP=000fd057 EFL=00010016 [----AP-] CPL=0 II=0 A20=1 SMM=1 HLT=0
  ES =0010 00000000 ffffffff 00c09300
  CS =0000 00000000 00000fff 00809b00
  SS =0010 00000000 ffffffff 00c09300
  DS =0010 00000000 ffffffff 00c09300
  FS =0010 00000000 ffffffff 00c09300
  GS =0010 00000000 ffffffff 00c09300
  LDT=0000 00000000 0000ffff 00008200
  TR =0000 00000000 0000ffff 00008b00
  GDT=     10387cfe 0000fe6c
  IDT=     0010387c 00003810
  CR0=00000010 CR2=00000000 CR3=00000000 CR4=00000000
  DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 
  DR6=00000000fffecffc DR7=000000000e1e0400
  Code=cb 66 ba 4d d0 0f 00 e9 c8 fe bc 00 80 0a 00 e8 31 3a ff ff <0f> aa fa 
fc 66 ba 66 d0 0f 00 e9 b1 fe f3 90 f0 0f ba 2d ac 3b 0f 00 00 72 f3 8b 25 a8 3b
  2019-01-24T13:47:39.383366Z kvm: terminating on signal 15 from pid 2708 

  Someone has an idea whats going wrong here?

  thanks and cheers

To manage notifications about this bug go to:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]