From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [RFC PATCH 1/5] KVM: vmx: speed up emulation of invalid guest state Date: Sun, 20 Apr 2014 23:13:33 -0300 Message-ID: <20140421021333.GA18207@amt.cnet> References: <1395919838-18466-1-git-send-email-pbonzini@redhat.com> <1395919838-18466-2-git-send-email-pbonzini@redhat.com> <20140416225258.GA19597@amt.cnet> <5350A7D0.8070603@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org To: Paolo Bonzini Return-path: Received: from mx1.redhat.com ([209.132.183.28]:42955 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753499AbaDUTY4 (ORCPT ); Mon, 21 Apr 2014 15:24:56 -0400 Content-Disposition: inline In-Reply-To: <5350A7D0.8070603@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Apr 18, 2014 at 12:19:28AM -0400, Paolo Bonzini wrote: > Il 16/04/2014 18:52, Marcelo Tosatti ha scritto: > >How about handling VM-entry error due to invalid state with > > > >vmx->emulation_required = true; > >continue to main vcpu loop; > > What would reset it to false though? None of the places that call > emulation_required() is a hot path right now, and this patch doesn't > add any. The same code which resets it to false inside the handle_invalid_guest_state loop (so you would stop emulating at the same point as you do with this patch). Advantage would be that failure to set vmx->emulation_required to true would not cause VM-entry failure.