From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH] kvm: don't take vcpu mutex for obviously invalid vcpu ioctls Date: Mon, 22 Sep 2014 20:00:29 -0300 Message-ID: <20140922230029.GA12293@amt.cnet> References: <1411167805-2458-1-git-send-email-dmatlack@google.com> <20140922200812.GA9217@amt.cnet> <542094AC.6070908@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Matlack , Gleb Natapov , kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Paolo Bonzini Return-path: Content-Disposition: inline In-Reply-To: <542094AC.6070908@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, Sep 22, 2014 at 11:29:16PM +0200, Paolo Bonzini wrote: > Il 22/09/2014 22:08, Marcelo Tosatti ha scritto: > > > This patch does not change functionality, it just makes invalid ioctls > > > fail faster. > > > > Should not be executing vcpu ioctls without interrupt KVM_RUN in the > > first place. > > This is not entirely true, there are a couple of asynchronous ioctls > though they are not used on x86 (commit 2122ff5eab8f, KVM: move vcpu > locking to dispatcher for generic vcpu ioctls, 2010-05-13). > > Paolo Alright. s/Should not be executing vcpu ioctls/Should not be executing vcpu ioctls which take vcpu mutex/