From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:38076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727391AbeJSBJy (ORCPT ); Thu, 18 Oct 2018 21:09:54 -0400 Date: Thu, 18 Oct 2018 19:07:57 +0200 From: "'gregkh@linuxfoundation.org'" To: Dexuan Cui Cc: "'stable@vger.kernel.org'" , 'Wang Jian' , Long Li , KY Srinivasan , Stephen Hemminger , Haiyang Zhang , Josh Poulson , "Michael Kelley (EOSG)" Subject: Re: [PATCH 4/4] [for linux-4.4.y only] HV: properly delay KVP packets when negotiation is in progress Message-ID: <20181018170757.GI11159@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Wed, Oct 17, 2018 at 01:23:26AM +0000, Dexuan Cui wrote: > > The host may send multiple negotiation packets > (due to timeout) before the KVP user-mode daemon > is connected. KVP user-mode daemon is connected. > We need to defer processing those packets > until the daemon is negotiated and connected. > It's okay for guest to respond > to all negotiation packets. > > In addition, the host may send multiple staged > KVP requests as soon as negotiation is done. > We need to properly process those packets using one > tasklet for exclusive access to ring buffer. > > This patch is based on the work of > Nick Meier . > > Signed-off-by: Long Li > Signed-off-by: K. Y. Srinivasan > Signed-off-by: Greg Kroah-Hartman > > The above is the original changelog of > a3ade8cc474d ("HV: properly delay KVP packets when negotiation is in progress" > > Here I re-worked the original patch because the mainline version > can't work for the linux-4.4.y branch, on which channel->callback_event > doesn't exist yet. In the mainline, channel->callback_event was added by: > 631e63a9f346 ("vmbus: change to per channel tasklet"). Here we don't want > to backport it to v4.4, as it requires extra supporting changes and fixes, > which are unnecessary as to the KVP bug we're trying to resolve. > > NOTE: before this patch is used, we should cherry-pick the other related > 3 patches from the mainline first: > > The background of this backport request is that: recently Wang Jian reported > some KVP issues: https://github.com/LIS/lis-next/issues/593: > e.g. the /var/lib/hyperv/.kvp_pool_* files can not be updated, and sometimes > if the hv_kvp_daemon doesn't timely start, the host may not be able to query > the VM's IP address via KVP. > > Reported-by: Wang Jian > Tested-by: Wang Jian > Signed-off-by: Dexuan Cui This should also be added to 4.9.y, right? thanks, greg k-h