All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Andy Lutomirski <luto@amacapital.net>, kvm list <kvm@vger.kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Subject: Re: Is a "KVM internal error" a bug?
Date: Sat, 13 Dec 2014 10:08:09 +0100	[thread overview]
Message-ID: <548C01F9.3040009@redhat.com> (raw)
In-Reply-To: <CALCETrXdg99oJFXOn1-X6GiQ=3nBfyO-FK4kfi3e8XKvJUSXLw@mail.gmail.com>



On 12/12/2014 22:39, Andy Lutomirski wrote:
> KVM internal error. Suberror: 3
> extra data[0]: 80000202
> extra data[1]: 31
> EAX=8be4df61 EBX=8be4df61 ECX=3ff6002c EDX=11d293ca
> ESI=3f08e408 EDI=3e82df7c EBP=3e82deb8 ESP=3e82de7c
> EIP=3ff51206 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
> ES =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> CS =0010 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
> SS =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> DS =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> FS =0000 92c2c700 ffffffff 00c00000
> GS =0000 3ec00000 ffffffff 00c00000
> LDT=0000 00000000 ffffffff 00c00000
> TR =0040 3ec11440 00002087 00008b00 DPL=0 TSS32-busy
> GDT=     04c43171 00000020
> IDT=     ff57a000 00000fff
> CR0=00050033 CR2=022e5000 CR3=0009c000 CR4=000407f0
> DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000
> DR3=0000000000000000
> DR6=00000000ffff0ff0 DR7=0000000000000400
> EFER=0000000000000801
> Code=0f be 11 29 d0 5b 5d c3 55 89 e5 8b 45 08 5d 8b 50 04 8b 00 <c3>
> 55 89 e5 8b 45 0c 8b 55 10 8b 4d 08 89 01 89 51 04 5d c3 55 31 c0 89
> e5 5d c3 55 89 e5
> 
> I deliberately triggered a guest bug, but I didn't expect this
> failure.  I think that the issue is that an NMI was delivered using a
> bogus IDT, but I think it should have been cleanly promoted to a
> double fault and then a triple fault.   Is this a KVM bug?

Yeah, it should have triggered a triple fault.  This looks like a failed
vmentry, due to invalid state in the VMCS.  It would be great to have a
reproducer using kvm-unit-tests, or failing that a reproducer kernel
module for the guest.

Paolo

Paolo

  reply	other threads:[~2014-12-13  9:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-12 21:39 Is a "KVM internal error" a bug? Andy Lutomirski
2014-12-13  9:08 ` Paolo Bonzini [this message]
2014-12-15 22:50   ` Andy Lutomirski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=548C01F9.3040009@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=bp@alien8.de \
    --cc=kvm@vger.kernel.org \
    --cc=luto@amacapital.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.