From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCHv2 2/9] KVM: Expose a version 2 architectural PMU to a guests Date: Mon, 07 Nov 2011 17:25:06 +0200 Message-ID: <4EB7F852.9010606@redhat.com> References: <1320323618-10375-1-git-send-email-gleb@redhat.com> <1320323618-10375-3-git-send-email-gleb@redhat.com> <1320676467.18053.43.camel@twins> <4EB7EF4F.3090907@redhat.com> <1320677949.18053.54.camel@twins> <4EB7F58D.6080102@redhat.com> <20111107151944.GE8670@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Peter Zijlstra , kvm@vger.kernel.org, mtosatti@redhat.com, linux-kernel@vger.kernel.org, mingo@elte.hu, acme@ghostprotocols.net To: Gleb Natapov Return-path: In-Reply-To: <20111107151944.GE8670@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 11/07/2011 05:19 PM, Gleb Natapov wrote: > > > > note, this needs a fairly huge PMI skew to happen. > > > No, it need not. It is enough to get exit reason as hlt instead of nmi > for a vcpu to go to blocking state instead of reentering guest mode. > Note that we do not check request flags in kvm_arch_vcpu_runnable(). Right. If we had a guarantee about the maximum skew, we could add a check for KVM_REQ_PMI in kvm_vcpu_block(). -- error compiling committee.c: too many arguments to function