Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp413644pxb; Thu, 7 Apr 2022 08:48:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqdP7DwNA3rQ5mEEpstiDAnZPulo82vsmUx92DqjKAAmALrTQwOrP+9ZNValfBpnm8EjdT X-Received: by 2002:a05:6402:2142:b0:413:6531:bd9e with SMTP id bq2-20020a056402214200b004136531bd9emr14852631edb.5.1649346532686; Thu, 07 Apr 2022 08:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649346532; cv=none; d=google.com; s=arc-20160816; b=xVuLLEI1WQ8RV2tOlrqUDMtYD4KEJgRrHaEMiy8avwk2LbkuGA3EUMALdAtS97vfwY bjWeuTBr7RaKz9+NgmlFB7ZuzD3x91hZGX1vgCxoERF0Unwq+PQgsatQciFU/DMJRtQs UczzznghqrOX80gz4jgYI3bhVWaLQ3QXKOLcQau1TlQgMgklZVgI6pGm4fCg3Y4lRal9 mfP+1zff02Be8HZNMw65hTdYQQuZOmt9xvLtXkBFsVSwndBvmu+/VIwI8T9bHeBVAKhE M7TT3I32Ge5mtW/drAFS/pt+rKH4Cg/CzymVIpLk9KPHsC9P40yev8uE1Iv8CCwIjg4a G3ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1CuzqFrxMqG3XYIX/bx1pbK4YvXnBuesuH56PsPYPfM=; b=AxFhiYRH6oXpGRMHUowog3D6w0NFnU2RtxSlT4k2ifjRrj6d9bkFOCLUzUmcF1b7BE 0zeVHV1VbAf9qI+LJgvRYODT1YZ7DQioGnom/KwtuwynNK6hAYEJSKk32Ui4dLJdEdRm O/nz4Wj1X70U6IEpUuUfzW5GuXw8HHzuro56VIt7AcLTaU7bQF2E7Asj++XbKEOmRB/g r+yVXnzHnu1cxYJqFz5Y2K/WHh9ve6YmVCl4VflQOgx+WE/wg5LAKPHHdOBn1aDhxRBz BCtWF4uUlSJOqmmQA++kVYFjj4TN5RI6CW0/qCONuSXMpT4GB9D0ncIpScTaZIOer1lc rlIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NEFNQmYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a1709061e4f00b006df76385ebbsi9384977ejj.859.2022.04.07.08.48.18; Thu, 07 Apr 2022 08:48:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NEFNQmYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238524AbiDGEeF (ORCPT + 99 others); Thu, 7 Apr 2022 00:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238977AbiDGEeC (ORCPT ); Thu, 7 Apr 2022 00:34:02 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 586331E480C; Wed, 6 Apr 2022 21:32:02 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id dr20so8264771ejc.6; Wed, 06 Apr 2022 21:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1CuzqFrxMqG3XYIX/bx1pbK4YvXnBuesuH56PsPYPfM=; b=NEFNQmYrf1jAQsRLH7fbnE/rwwQPMLwrJALUEiKJkY3Qp0A7Id/Vbffrdt93Z+kGvK CzfI7V1BqhCQgt1DMJhnc/B9AoqVVENnVzUivMQbagJpjKhnYMxx+bLHSQpSa2Rztdpj Jwn1ePMj7aLSiU/laHPkw/fsQWl6fzEXTJINh1I21YUy9VUyYnFh1cVr2YWhZTcGyddD EBxghZmeLRhoBHh6Vtk4/uIR0rGCepNdUBU5wi+mHQHwp0jWFEIDOKuxi/LOfD7ceYf9 v91nKyKw5w6JpztYvTU8zevgiHCCTzMd94Fq/HP+f0tDj94uc09QtIlM3D6MBKRdPaPL tg+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1CuzqFrxMqG3XYIX/bx1pbK4YvXnBuesuH56PsPYPfM=; b=ocRkHj7VRJBDDPy4Y2+RDjkBTakzAch3wYaRf7fmstQ/GZ51BDzuuRfUiDUq2DdBlp 6UTSUpIzXf0fVSP/2BzYZh+rXR93W40YJBJ1DCs5n+JXGLTOkYRXhQMVnuDsSH/bxlH0 mTFgayA3130LcvBMH+3uWO1Ar/LFOVhKKvpxFeIujDcH4f79LahDfSwmt9Na2fi8iWnK 3WqMlvmPg0rXES1+mrdX/J3yFkNR1EM0IfTCasaWawZSj7qknTrVZGyMUIv1b+qRCUXq Sm7yjqVwXjlzglxR07fXQ3RWiYai5OD+Cs/A58JBNMywRYZBWeK++GEzbUvtk07zlxjD p/hA== X-Gm-Message-State: AOAM530Tx9ZvldzgjUsF+JszfQ36OIZShk0JibhVxc487EeTf2+K80Kh lhjvt7VtS6xWHMHemEtlQvs= X-Received: by 2002:a17:907:7255:b0:6e7:e853:73b8 with SMTP id ds21-20020a170907725500b006e7e85373b8mr11975266ejc.172.1649305920692; Wed, 06 Apr 2022 21:32:00 -0700 (PDT) Received: from anparri.mshome.net (host-87-11-75-174.retail.telecomitalia.it. [87.11.75.174]) by smtp.gmail.com with ESMTPSA id ke11-20020a17090798eb00b006e7fbf53398sm3531341ejc.129.2022.04.06.21.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 21:32:00 -0700 (PDT) From: "Andrea Parri (Microsoft)" To: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Michael Kelley , Wei Hu , Lorenzo Pieralisi , Rob Herring , Krzysztof Wilczynski , Bjorn Helgaas Cc: linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, "Andrea Parri (Microsoft)" Subject: [PATCH 0/6] PCI: hv: VMbus requestor and related fixes Date: Thu, 7 Apr 2022 06:30:22 +0200 Message-Id: <20220407043028.379534-1-parri.andrea@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since RFC [1]: - Rebase on hyperv-fixes (although more likely -next material) - Fix handling of messages with transaction ID of 0 - Avoid reading trans_id from the ring buffer - Move hv_pci_request_addr_match()&co. to VMbus - Introduce primitives to lock and unlock the requestor - Improve comments and log messages The series got bigger (mainly due to a certain re-factoring in VMbus): the hv_pci changes are in patches #2 and #6. Let me stress that the "PCI: hv" patches and the "Drivers: hv: vmbus" patches below are inter-dependent. [1] https://lkml.kernel.org/r/20220328144244.100228-1-parri.andrea@gmail.com Thanks, Andrea Andrea Parri (Microsoft) (6): Drivers: hv: vmbus: Fix handling of messages with transaction ID of zero PCI: hv: Use vmbus_requestor to generate transaction IDs for VMbus hardening Drivers: hv: vmbus: Introduce vmbus_sendpacket_getid() Drivers: hv: vmbus: Introduce vmbus_request_addr_match() Drivers: hv: vmbus: Introduce {lock,unlock}_requestor() PCI: hv: Fix synchronization between channel callback and hv_compose_msi_msg() drivers/hv/channel.c | 116 +++++++++++++++++++++------- drivers/hv/hyperv_vmbus.h | 2 +- drivers/hv/ring_buffer.c | 14 +++- drivers/pci/controller/pci-hyperv.c | 68 ++++++++++++---- include/linux/hyperv.h | 27 +++++++ 5 files changed, 179 insertions(+), 48 deletions(-) -- 2.25.1