All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeroen Groenewegen van der Weyden <groen692@grosc.com>
To: Jan Beulich <JBeulich@suse.com>, Yang Z Zhang <yang.z.zhang@intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>,
	Eddie Dong <eddie.dong@intel.com>,
	Jun Nakajima <jun.nakajima@intel.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Crash of guest with nested vmx with Unknown nested vmexit reason 80000021.
Date: Wed, 29 Oct 2014 15:17:06 +0100	[thread overview]
Message-ID: <5450F6E2.6050807@grosc.com> (raw)
In-Reply-To: <543F84CD020000780003F02A@mail.emea.novell.com>

Hi,

Is there any test I can do on changed code?

mvg,
Jeroen.

Jan Beulich schreef op 16-10-2014 om 08:41:
>>>> On 16.10.14 at 08:18, <yang.z.zhang@intel.com> wrote:
>> Sorry for the later reply. Yes, this is a known issue to me but I didn't
>> have time to cook a patch fix it. As Jan pointed out, the NMI handling logic
>> is wrong in current nested logic. But it is not a trivial task to fix them. I
>> will do it once I have the time or if you are interesting in it, a patch from
>> you is welcome.
> If you were to at least comment on the two possible routes I
> outlined (quoted below), I could see to get to this (considering
> that the issue - as you point out subsequently - got brought up
> more than half a year ago the first time, and is still unaddressed)
> at least if the vmx_idtv_reinject() related route would be a
> possible one.
>
> Jan
>
>>>>> From: Jan Beulich [mailto:JBeulich@suse.com]
>>>>> So the problem here is that
>>>>>
>>>>>> (XEN) Interruptibility=0008 ActivityState=0000
>>>>> VMX_INTR_SHADOW_NMI is set while
>>>>>
>>>>>> (XEN) PinBased=0000003f CPUBased=b6b9e5fa SecondaryExec=000004eb
>>>>> PIN_BASED_VIRTUAL_NMIS is active and
>>>>>
>>>>>> (XEN) VMEntry: intr_info=80000202 errcode=5d021101 ilen=00000003
>>>>>> (XEN) VMExit: intr_info=00000000 errcode=00000000 ilen=00000003
>>>>>> (XEN)         reason=80000021 qualification=00000000
>>>>>> (XEN) IDTVectoring: info=80000202 errcode=00000000
>>>>> an NMI is being injected. This case is explicitly mentioned in Vol
>>>>> 3 section 31.7.1.2 (Resuming Guest Software after Handling an
>>>>> Exception). Either there needs to be extra code in vvmx.c to clear
>>>>> VMX_INTR_SHADOW_NMI (as the second sub-bullet point of the last
>>>>> bullet point says), or the second half of vmx_idtv_reinject() needs
>>>>> to be done without regard to nestedhvm_vcpu_in_guestmode(v) (and
>>>>> maybe also without regard to EXIT_REASON_TASK_SWITCH).
>>>>>
>>>>> Speaking of SDM sections: There are quite a few references in the
>>>>> code that name just section numbers (in the case here, several
>>>>> references to sections 25.7.1.* exist). These numbers become stale
>>>>> quite quickly (here they're now 31.7.1.*), so in order to help
>>>>> digging through issues like the one here, can I please ask one of
>>>>> you to go through and replace (or at least amend) these numbers
>>>>> with the sections' titles (which I hope won't get altered that quickly)?
>
>

  reply	other threads:[~2014-10-29 14:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-30 15:55 Crash of guest with nested vmx with Unknown nested vmexit reason 80000021 Jeroen Groenewegen van der Weyden
2014-10-01 13:20 ` Jan Beulich
2014-10-07  7:58 ` Jan Beulich
2014-10-07 15:16   ` Jeroen Groenewegen van der Weyden
2014-10-07 19:56   ` Tian, Kevin
2014-10-10 10:31     ` Jeroen Groenewegen van der Weyden
2014-10-16  6:18       ` Zhang, Yang Z
2014-10-16  6:41         ` Jan Beulich
2014-10-29 14:17           ` Jeroen Groenewegen van der Weyden [this message]
2014-10-29 16:42             ` Jan Beulich
2014-11-03 11:16               ` George Dunlap
2014-12-09  9:09                 ` Jeroen Groenewegen van der Weyden
2014-12-09  9:17                   ` Jan Beulich
2015-02-26 18:56                     ` Jeroen Groenewegen van der Weyden
2015-02-27  8:08                       ` Jan Beulich
2015-03-04 10:24                         ` Jeroen Groenewegen van der Weyden
2015-04-07  7:18                           ` Li, Liang Z
2014-10-16  6:27       ` Zhang, Yang Z

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=5450F6E2.6050807@grosc.com \
    --to=groen692@grosc.com \
    --cc=JBeulich@suse.com \
    --cc=eddie.dong@intel.com \
    --cc=jun.nakajima@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@intel.com \
    /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.