Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp709174pxb; Wed, 20 Jan 2021 19:28:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTp1fzXoT6WyI3vGs6qjwyT8Is8XKl0uGCjHuFOX49eN/oejo88i6rIT8GR6iFjkdCGiqB X-Received: by 2002:a05:6402:158:: with SMTP id s24mr9857798edu.19.1611199715635; Wed, 20 Jan 2021 19:28:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611199715; cv=none; d=google.com; s=arc-20160816; b=y85PL4amoIzBwU6LCiOmAtGD40Ff5gB6HuUbdXnVuwfx46l0Wxj0lIIMZsd44evQYB +aY7urAcLwi0awHkC1XAeVGUZvStgOEbynsCtRHPq5i7784tSxOdyLdRppbOTms6o7iD /Q32oh2oaHaXpQKSJ95Z2HHBw1aD/f9ctYHVLj926rGHqB0zm5sxKr4Zq+iyKcOCTdjJ 4ib/bjcPzQaaGSpMiSxIpZdEDDiWP/nCnx5MY2Dgu8+fkTthe8hdD0ANRSDEW5y2Yy+1 e4B5C2vMXNaAXcSJxpFHy9jClV3FNxrwI9AIiSdjFnj76sokAtU2vtHMfcmvtQfpz8Gl H90Q== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=iw3G0gg+mS6v54nlZIr3BY26I73JWUXNNIzMZnAM41s=; b=DmN/CYHyOEP1rZEfCVjZ8dC/96/6vF2kE7gmxVWTg7hKwGuNpP77D4YQ+U49U8gKss irQcMilwAnEQfPTpVEa1ncgqPZDwppwww7XXmWsrwXh6ERoQWTKSyo8M9mewO29cvJLV NIOvn1wV0qhKtuw+avDx4Ly9Ho5CRNU2bsC+GaSjnqHiSQojDRc7JqBiwzdnA6IblJED kT6EWPiUJ2uWRLdwdmuKODgRzfqHVW4WNtzXWCGJftXema8QZ+afQxctbxu39bdIxhSM jiU3BbtPWpbkIUiX2igp/MrsA27xV7bnJ3YMAW/sQ9br2aVhgSdFRKZlBNEe5AcLbUMa MOjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jRGf9nBy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca8si1579357edb.365.2021.01.20.19.28.12; Wed, 20 Jan 2021 19:28:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jRGf9nBy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733107AbhAUBmX (ORCPT + 99 others); Wed, 20 Jan 2021 20:42:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:47838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729774AbhAUB1p (ORCPT ); Wed, 20 Jan 2021 20:27:45 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9576823716; Thu, 21 Jan 2021 01:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611192406; bh=4eL8N5dvRrAeayCnGxz6XFCZIC6kgq3KA5G44fN+5ps=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jRGf9nByd+awwtEpSrsNHs/u8wepelVitMbyoJPo6+0yHRYm7KAzeHEQ5i56IqlQC 3iUTYXICddVpycHNjPfoi3bfesDKJx6w9+8dXgbxDIuCHmaZcuwR7GTuPlh2G0AhxP RstytMCAwr9F00zhd/MHzEimtE4MT+PMUbbby8e6zFoQ96jTuv2L7q/zMrKp5dfYo6 y0+a44T5Wcz1RO4CeujctBch0L5BByl5t8sP4z7MzvUgtxqrpnmMqqku+V1u/ZFiRY LOmMtQ+OXvzUS3kHrwKEz8Eo1kXurAqOp5kBetn9jF4Ls1VOwUdJ8v9Mh/NXdlHbsa 6s3wuHDC6NAWw== Date: Wed, 20 Jan 2021 17:26:44 -0800 From: Jakub Kicinski To: "Andrea Parri (Microsoft)" Cc: linux-kernel@vger.kernel.org, "K . Y . Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Michael Kelley , Tianyu Lan , Saruhan Karademir , Juan Vazquez , linux-hyperv@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org Subject: Re: [PATCH 4/4] hv_netvsc: Restrict configurations on isolated guests Message-ID: <20210120172644.746656b6@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210119175841.22248-5-parri.andrea@gmail.com> References: <20210119175841.22248-1-parri.andrea@gmail.com> <20210119175841.22248-5-parri.andrea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Jan 2021 18:58:41 +0100 Andrea Parri (Microsoft) wrote: > Restrict the NVSP protocol version(s) that will be negotiated with the > host to be NVSP_PROTOCOL_VERSION_61 or greater if the guest is running > isolated. Moreover, do not advertise the SR-IOV capability and ignore > NVSP_MSG_4_TYPE_SEND_VF_ASSOCIATION messages in isolated guests, which > are not supposed to support SR-IOV. This reduces the footprint of the > code that will be exercised by Confidential VMs and hence the exposure > to bugs and vulnerabilities. > > Signed-off-by: Andrea Parri (Microsoft) > Cc: "David S. Miller" > Cc: Jakub Kicinski > Cc: netdev@vger.kernel.org Nothing exciting here from networking perspective, so: Acked-by: Jakub Kicinski