Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933224Ab1ERRA4 (ORCPT ); Wed, 18 May 2011 13:00:56 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:44487 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932962Ab1ERRAy (ORCPT ); Wed, 18 May 2011 13:00:54 -0400 Subject: Re: [PATCH V5 2/6 net-next] netdevice.h: Add zero-copy flag in netdevice From: Shirley Ma To: "Michael S. Tsirkin" Cc: =?UTF-8?Q?Micha=C5=82_Miros=C5=82aw?= , Ben Hutchings , David Miller , Eric Dumazet , Avi Kivity , Arnd Bergmann , netdev@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20110518165138.GD22001@redhat.com> References: <1305671318.10756.49.camel@localhost.localdomain> <20110518103819.GL7589@redhat.com> <20110518111734.GO7589@redhat.com> <1305729507.32080.6.camel@localhost.localdomain> <20110518154746.GA21378@redhat.com> <1305734857.32080.53.camel@localhost.localdomain> <20110518163633.GB22001@redhat.com> <1305737140.32080.59.camel@localhost.localdomain> <20110518165138.GD22001@redhat.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 18 May 2011 10:00:28 -0700 Message-ID: <1305738028.32080.66.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 835 Lines: 25 On Wed, 2011-05-18 at 19:51 +0300, Michael S. Tsirkin wrote: > > > Yes, I agree. I think for tcpdump, we really need to copy the > data > > > anyway, to avoid guest changing it in between. So we do that and > then > > > use the copy everywhere, release the old one. Hmm? > > > > Yes. Old one use zerocopy, new one use copy data. > > > > Thanks > > Shirley > > No, that's wrong, as they might become different with a > malicious guest. As long as we copied already, lets realease > the data and have everyone use the copy. Ok, I will patch pskb_expand_head to test it out. Shirley -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/