From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shirley Ma Subject: Re: [PATCH V6 0/4 net-next] macvtap/vhost TX zero-copy support Date: Sat, 28 May 2011 11:07:03 -0700 Message-ID: <1306606023.5180.67.camel@localhost.localdomain> References: <1306440020.5180.47.camel@localhost.localdomain> <20110526202836.GA1951@redhat.com> <1306441885.5180.52.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: David Miller , Eric Dumazet , Avi Kivity , Arnd Bergmann , netdev@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: "Michael S. Tsirkin" Return-path: Received: from e5.ny.us.ibm.com ([32.97.182.145]:35815 "EHLO e5.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754144Ab1E1SHY (ORCPT ); Sat, 28 May 2011 14:07:24 -0400 In-Reply-To: <1306441885.5180.52.camel@localhost.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 2011-05-26 at 13:31 -0700, Shirley Ma wrote: > On Thu, 2011-05-26 at 23:28 +0300, Michael S. Tsirkin wrote: > > On Thu, May 26, 2011 at 01:00:20PM -0700, Shirley Ma wrote: > > > 3. Add sleep in vhost shutting down instead of busy-wait for > > outstanding > > > DMAs. > > > > I still think this is not much better. We need to use a > > completion structure and wait on it instead. > > If this gets blocked thinkably a tx watchdog can fire and save us > > from blocking forver :) > > Ok, I can add a completion structure here. The code here doesn't block forever during shutdown, it will release all outstanding userspace buffers anyway, see vhost_zerocopy_signal_used() shutdown case. Thanks Shirley