From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH] KVM: VMX: blocked-by-sti must not defer NMI injections Date: Wed, 12 May 2010 17:05:11 -0300 Message-ID: <20100512200511.GE3308@amt.cnet> References: <4BE958BE.9020503@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm , Gleb Natapov To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:40421 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751467Ab0ELUFv (ORCPT ); Wed, 12 May 2010 16:05:51 -0400 Content-Disposition: inline In-Reply-To: <4BE958BE.9020503@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, May 11, 2010 at 03:16:46PM +0200, Jan Kiszka wrote: > As the processor may not consider GUEST_INTR_STATE_STI as a reason for > blocking NMI, it could return immediately with EXIT_REASON_NMI_WINDOW > when we asked for it. But as we consider this state as NMI-blocking, we > can run into an endless loop. > > Resolve this by allowing NMI injection if just GUEST_INTR_STATE_STI is > active (originally suggested by Gleb). Intel confirmed that this is > safe, the processor will never complain about NMI injection in this > state. > > Signed-off-by: Jan Kiszka > KVM-Stable-Tag > --- > arch/x86/kvm/vmx.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) Applied, thanks.