From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH] vhost: copy_from_user -> __copy_from_user Date: Mon, 7 Mar 2011 08:30:15 +0200 Message-ID: <20110307063014.GA11330@redhat.com> References: <20110306113349.GA24333@redhat.com> <20110306.180339.193718218.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: David Miller Return-path: Received: from mx1.redhat.com ([209.132.183.28]:2960 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732Ab1CGGa2 (ORCPT ); Mon, 7 Mar 2011 01:30:28 -0500 Content-Disposition: inline In-Reply-To: <20110306.180339.193718218.davem@davemloft.net> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Mar 06, 2011 at 06:03:39PM -0800, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Sun, 6 Mar 2011 13:33:49 +0200 > > > copy_from_user is pretty high on perf top profile, > > replacing it with __copy_from_user helps. > > It's also safe because we do access_ok checks during setup. > > > > Signed-off-by: Michael S. Tsirkin > > Is Rusty going to take this or should I? Sorry about not making this clear. I'll give it a day or two for review then put it on the vhost tree myself. Thanks!