From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC] KVM: Fix simultaneous NMIs Date: Tue, 20 Sep 2011 11:40:29 +0300 Message-ID: <4E78517D.9080101@redhat.com> References: <4E722140.4070702@siemens.com> <4E722FA8.2030006@redhat.com> <4E7234F0.2080609@siemens.com> <4E723A8A.7050405@redhat.com> <20110919135421.GA5468@amt.cnet> <4E775203.2020504@redhat.com> <20110919145403.GB6356@amt.cnet> <4E775B33.3030906@redhat.com> <20110919152211.GA7411@amt.cnet> <4E7761BF.5030509@redhat.com> <20110919155719.GA7816@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jan Kiszka , "kvm@vger.kernel.org" To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:27297 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750909Ab1ITIkd (ORCPT ); Tue, 20 Sep 2011 04:40:33 -0400 In-Reply-To: <20110919155719.GA7816@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: On 09/19/2011 06:57 PM, Marcelo Tosatti wrote: > > >Decrement when setting nmi_injected = false, increment when setting > > >nmi_injected = true, in vmx/svm.c. > > > > That gives a queue length of 3: one running nmi and nmi_pending = 2. > > Increment through the same wrapper that will collapse the second and next, also > used by kvm_inject_nmi. > > Cannot be done outside vcpu context. -- error compiling committee.c: too many arguments to function