From: "Jan Beulich" Subject: Re: [PATCH V3] vmx/nmi: Do not use self_nmi() in VMEXIT handler Date: Thu, 28 Feb 2013 15:01:27 +0000 Message-ID: <512F7F5702000078000C214D@nat28.tlf.novell.com> References: <50AE41DD.2030703@citrix.com> <50AE511302000078000AAA14@nat28.tlf.novell.com> <50AE46B0.6010807@citrix.com> <50AE590502000078000AAA48@nat28.tlf.novell.com> <50AE4D2C.1040104@citrix.com> <512F384602000078000C1D5B@nat28.tlf.novell.com> <20130228130008.GE27704@ocelot.phlegethon.org> <512F6C2502000078000C2042@nat28.tlf.novell.com> <20130228142503.GH27704@ocelot.phlegethon.org> <512F7ADE02000078000C211A@nat28.tlf.novell.com> <20130228144913.GI27704@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130228144913.GI27704@ocelot.phlegethon.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: Andrew Cooper , Malcolm Crossley , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 28.02.13 at 15:49, Tim Deegan wrote: > At 14:42 +0000 on 28 Feb (1362062542), Jan Beulich wrote: >> Checking for this >> here would be strait forward, but I was really considering to do >> all of this in the assembly exit path, and I was still undecided >> whether we shouldn't follow Linux in skipping softirq processing >> (and hence scheduling) on the way out from an NMI (I don't >> think we'd need to do the same for MCE). > > That sounds sensible, if it simplifies the logic (i.e. if it avoids > needing an extra IRET just to re-enable NMIs when we might as well IRET > to the guest). Or is there any other reason to avoid it? No, I don't think so. We only need to make sure we don't execute one as long as we're on the NMI stack. Jan