Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1015746pxb; Fri, 15 Apr 2022 18:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAIUzktUqGGc8MJOB7LNHeekNuNvSEfOP3rMJP0GU4VQCIITZP/kDCaRNHzh6M3SxpmkqJ X-Received: by 2002:a05:6a00:16c7:b0:4f7:e497:69b8 with SMTP id l7-20020a056a0016c700b004f7e49769b8mr1723627pfc.6.1650072376158; Fri, 15 Apr 2022 18:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650072376; cv=none; d=google.com; s=arc-20160816; b=OnSpNcGoiUYPkGo5yW8RCeCM18y7dsZLQTdc8HII+9eA/RFvowUGJliL9hIMdKaFei we18OeoDY5vD06VTSLZZFs75AShimP1xpV6b+2IpfjuX3C0lEU0Ua4c5raZPHY1hXSDq n5Ys/hsSaZGTz+Lxx8+qmgDG3V1u6UcYQvXKShFbPR9ZoxJ1EZrIyU+al0aNqMyUkg7/ JrDC3PybAdSHQFdovob1A0Hg2S+kfphS2mzh5RU27WgmYfSjX9fBlwgEExBR0M7gJUvR 4xAHyhp7VIY8mDaGtxnNXpNqx+ZjPDLhtTBZAECzp5kGln36NkLiZr2qQm3+3jQk/inR D5Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OI3GF4xjZzu1D4neEuDrMg3tnbukoM+/AXSNWLr/K1w=; b=s4wCq3d853moJIMtKLnDAzBT5whrxqlKl6zeUND4GY/XlmwvBns6uqqUG4/Kvt7GDi LvnGTorS569DIS9vLDbW4n3bSIo6DF3cxcll9vAFcpOFt7M169wWS+qZyDgnw4qoC/n/ B6tnTptANdKsnDr6kj7SMUiZFfpoG7E7MGEweaXjLThaGbTtk9zvkeCy3DDYcLizOFrn feNMeJpjVg3oGLHuuPVMFE6u9mnvG8li2RZ6JMSvrYLkSoeCi+bKyvHQjqCmO/3kLSig 2+d4pMLO2uToVtIpOR0MuLjTM779P6y5ArK23qWELs6X4eCK656GcgS3HedxTZtA9gEa XdVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pVptxzwS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s78-20020a632c51000000b003729ecc3ae7si3071069pgs.2.2022.04.15.18.26.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:26:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pVptxzwS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E46C8369F0; Fri, 15 Apr 2022 17:57:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350815AbiDOHBX (ORCPT + 99 others); Fri, 15 Apr 2022 03:01:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350810AbiDOHBT (ORCPT ); Fri, 15 Apr 2022 03:01:19 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5751AB2472; Thu, 14 Apr 2022 23:58:52 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id i27so13942549ejd.9; Thu, 14 Apr 2022 23:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=OI3GF4xjZzu1D4neEuDrMg3tnbukoM+/AXSNWLr/K1w=; b=pVptxzwSMjKbyebGjecwxf5tJKK0YxTlgD5JiFLCEkdIMrIqD9ZmxjnmTH9AER2Bel psMsbK47is/YBD2xA1sjZpHhfJV2Zuw9kKgxczGVfCnNkE5qWNG49SkhEEzRUKbwrzuZ /nkm68yoTRJF2Wk7zGzK49PwCY0PaS0vtResgaQZualISpqTvqz2Q7LqBy7OPs6Mr9ua 7jvuOlmo149Uhb63YsfqRJwLE2o5HR4uQBE2q3xa0sQiOErP8MbrN9pEB+JhV+mrwjxC EQtiRXjJWs4VKSVIspz4DAGV/G6msrOxhE+YcdT3zJF+siA1DEoQNQVr+p2bj5A4n0Xz daRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=OI3GF4xjZzu1D4neEuDrMg3tnbukoM+/AXSNWLr/K1w=; b=mmAYSzxCMddU17lzV3BNYk/Ah+BtsRlMDVAI3zeLoxmhMQ7XsMPr73PR1XiYZ07+1o yOfOVC219SokH0uQ95myVSSzhqbEQEFnsLivHbHRoA23VzdUxvEa1Y3d5v1VtAkgF/Fg f7i9Cb6fWlNsuXhNJilQrpeQBRoEWvlA46fln9Ptc1oCMYlKlFC+FczFXDMGxQ0sUH6S YAvdC6WABVPTkeBJmPRqxgjGjE7MkYMpQJoxDYiQm8VrE8+22oJBhAuZ3/p1zU5EJR8Q OWk0rSbMVWKni733knVtSXmEhWTlzjxQes3j0TP0fkI4Kb1wz+EG30JUmSSPijtl5PUe QM3w== X-Gm-Message-State: AOAM5323vXeeioLIALhBvkZXOXy7J3p+8B1HnwVhmG8a41sHaKYwHT8z UpAPFqlZLheSVY36Y8rFN6yv7mbQPc/1zHia X-Received: by 2002:a17:907:1ca0:b0:6e9:9eef:a8d2 with SMTP id nb32-20020a1709071ca000b006e99eefa8d2mr5157847ejc.719.1650005930930; Thu, 14 Apr 2022 23:58:50 -0700 (PDT) Received: from anparri (host-79-52-64-69.retail.telecomitalia.it. [79.52.64.69]) by smtp.gmail.com with ESMTPSA id fx3-20020a170906b74300b006daecedee44sm1376689ejb.220.2022.04.14.23.58.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 23:58:50 -0700 (PDT) Date: Fri, 15 Apr 2022 08:58:47 +0200 From: Andrea Parri To: "Michael Kelley (LINUX)" Cc: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Stefano Garzarella , David Miller , Jakub Kicinski , Paolo Abeni , "linux-hyperv@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH 5/6] Drivers: hv: vmbus: Accept hv_sock offers in isolated guests Message-ID: <20220415065847.GD2961@anparri> References: <20220413204742.5539-1-parri.andrea@gmail.com> <20220413204742.5539-6-parri.andrea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 > > @@ -976,17 +976,22 @@ find_primary_channel_by_offer(const struct > > vmbus_channel_offer_channel *offer) > > return channel; > > } > > > > -static bool vmbus_is_valid_device(const guid_t *guid) > > +static bool vmbus_is_valid_offer(const struct vmbus_channel_offer_channel *offer) > > { > > + const guid_t *guid = &offer->offer.if_type; > > u16 i; > > > > if (!hv_is_isolation_supported()) > > return true; > > > > + if (is_hvsock_offer(offer)) > > + return true; > > + > > for (i = 0; i < ARRAY_SIZE(vmbus_devs); i++) { > > if (guid_equal(guid, &vmbus_devs[i].guid)) > > return vmbus_devs[i].allowed_in_isolated; > > } > > + > > Spurious newline added? > > > return false; Intentionally added to visually separate the "hvsock", "vmbus_dev" and "default" blocks, patch seemed simple enough to try to merge in "style material" without incurring in the question. ;-) Newline removed. Thanks, Andrea