Received: by 10.213.65.68 with SMTP id h4csp752646imn; Wed, 28 Mar 2018 12:03:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+qe+lsRQ3/beyFMFhcYMS1r0s3Dk+qj9ePb2Tuf4KIoAfInHPXxo31ogXtrQFSfo4hA1Q4 X-Received: by 10.98.166.14 with SMTP id t14mr3924492pfe.195.1522263788122; Wed, 28 Mar 2018 12:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522263788; cv=none; d=google.com; s=arc-20160816; b=NP/8oAzHCyM7iw6eUeuSkSQWDLoud0mrXtVnmCbXojPaKHbwDW4cDg5UGmyUMRIOZo ed+QjYnecwGIgIzstZ3z9pZsgOASUzpdt5Mf54zhL4/uy7Brp5rO0NQ3jpaNHSNWgGQV zOiyDBsU3YpBjiS7CeLQrj6RfIY8LxTZ9aWGDtrzG7VbzfIgw0c/nWyf4rnOg6ekgbb5 53eTS1pof+8QOFWulzHnNN210aLd5rX2MhP5wgU4yAUtXJoRp7ZBZH3DyDi/4/oEWvpO DEdJTGJCOtcMuj1mSWGAAUJdh5nX4+vwtu0FzUQo+uic2SMZ2yh7GXLvPDVklbvXdoTt D5jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=Gzsa1p7iecG4GYql+SM7WbD/7ju/6n8dNzpN6f26nNs=; b=O8gRN+dKFMLVdeDshaeVT1CeEoP3AugRpbnKUWZKVeA3RWIWTMnsG0rnxTGht00EbI upylt0BqLxc9XhUjS388jHlxjCONyCuLisfI+rsbiM/QFUNpWUhveZJjWDYue56Xurnz 85g5s91llc8jMHwGrq/Rjq3HZZ5qnzc0ZXVnq7h2BkrXKHYm6jNtwb/fgKqnO6BrKSR+ KNxAlyO2tW5apI16kPjzOt2r7fZdifzA7G6KwTaPa5dB4TzqLbRwjXlzz+ov6grFrOs1 5EU103ZDvWVVmdm0nhuU3N2/A7C6zbP+V6U7YI7hn+rgFHU0hYEdG4Ui6/Sxyz/dUzqh vAmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=c4t3YEC2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3-v6si2899895pll.486.2018.03.28.12.02.45; Wed, 28 Mar 2018 12:03:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=c4t3YEC2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753033AbeC1TBr (ORCPT + 99 others); Wed, 28 Mar 2018 15:01:47 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:37426 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbeC1TBp (ORCPT ); Wed, 28 Mar 2018 15:01:45 -0400 Received: by mail-pg0-f66.google.com with SMTP id n11so1373803pgp.4 for ; Wed, 28 Mar 2018 12:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Gzsa1p7iecG4GYql+SM7WbD/7ju/6n8dNzpN6f26nNs=; b=c4t3YEC2w4UYJRDAHNtldsuWR6DiIT0js+Z1KIkYXuZgwHpdvmhHG2Tc8c11o9wFeC MCvxV5S27D7QZHbjRa/ZI/EZtENDOWL0mU1U29B2c0wkPIGoi5cxacyhqtjGOPV1w15D t3cEzSNGs+05DetMtoSK8LlV33wgQVuv/xPz+zW/QhWdnKTLsM1AyEbpKLEVuxnkFgcl RKMBcnYpxa921OYPtN42smuJhW3fQEg/6Su27ixRk1zNtHCipGwbulvnTMRz/HavcbCc CDSDu6SOEJq1I6TKOcKhtXd5YaTJwGQ8VeLpa+L5pAKEwzl7P3pgxrnZksleYAuvmOo4 BRAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Gzsa1p7iecG4GYql+SM7WbD/7ju/6n8dNzpN6f26nNs=; b=a6XCh9SjskRwye+D0eLw8mdiaCHifUK1ThKzD1gEjD4y2QOU8l9iSFffMAFSp/Bit7 CZ+reSG5jfi99XjrqiPs55sqH1HL5GlZMt+o48AKiF6Sw2bw5Hl0YA5OsTVj90JZ9Xwx g4SDBXw7p9IMly/97SS0hdl/UuENYFGRwAEINWdJBSl3xoPjg6OsL3Adp5Ux98x2PAit QjxoT6AI/tTDFSLk6yjXPBDAnjmUG43Eg+kqD2uOhZI/glPnw7S91M22kxgiRsNemNEV zyzSfPff1bhUed+GjWjCKjjWRZWNAPPWf0D3YcKVw6tUG4AvBGkBQYtrAc3wmUES+hGl XHww== X-Gm-Message-State: AElRT7HlW+RU+MBqwa5TaHPGqru0+DJW6fOdI2TwNcrvBJcgKhJ1QlDH 3pMClyMeQKEuSUZ2Ntefh41NOA== X-Received: by 10.98.72.205 with SMTP id q74mr3923942pfi.70.1522263705199; Wed, 28 Mar 2018 12:01:45 -0700 (PDT) Received: from xeon-e3 (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id x1sm700890pfa.134.2018.03.28.12.01.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Mar 2018 12:01:45 -0700 (PDT) Date: Wed, 28 Mar 2018 12:01:42 -0700 From: Stephen Hemminger To: kys@exchange.microsoft.com Cc: kys@microsoft.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com, Michael Kelley , Stable Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Fix ring buffer signaling Message-ID: <20180328120142.7ba72aa2@xeon-e3> In-Reply-To: <20180305052408.19475-1-kys@exchange.microsoft.com> References: <20180305052408.19475-1-kys@exchange.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 4 Mar 2018 22:24:08 -0700 kys@exchange.microsoft.com wrote: > From: Michael Kelley > > Fix bugs in signaling the Hyper-V host when freeing space in the > host->guest ring buffer: > > 1. The interrupt_mask must not be used to determine whether to signal > on the host->guest ring buffer > 2. The ring buffer write_index must be read (via hv_get_bytes_to_write) > *after* pending_send_sz is read in order to avoid a race condition > 3. Comparisons with pending_send_sz must treat the "equals" case as > not-enough-space > 4. Don't signal if the pending_send_sz feature is not present. Older > versions of Hyper-V that don't implement this feature will poll. > > Fixes: 03bad714a161 ("vmbus: more host signalling avoidance") > > Cc: Stable # 4.14 and above > Signed-off-by: Michael Kelley > Signed-off-by: K. Y. Srinivasan What ever happened to this patch? It doesn't seem to be in char-misc, upstream, or stable kernel tree yet.