Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp651049rdg; Thu, 10 Aug 2023 15:04:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOxKhoe8VwM17UxuBKmesgT2gjvaOTLhd9Qx2l2wHVMNkng8QuRk++fYdHLUVPx/43FrLO X-Received: by 2002:aa7:c0cc:0:b0:523:ba10:d795 with SMTP id j12-20020aa7c0cc000000b00523ba10d795mr240268edp.11.1691705081882; Thu, 10 Aug 2023 15:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691705081; cv=none; d=google.com; s=arc-20160816; b=Qw5TFTaq2Vini4B3OJ3m+Cq5wh48ds9sIceIvFc8ryDX24XLU32NRNkwSTl1bJGN4c JsOK3j12GvmPimI+4giS7oNbCde9BCBAxGy2FVCWD3HDOFyyTDveStA3B3DdhvCNcLxN iOW54MFTOf3UL2loFWCu6S8DAx6a6bStluRAEMs40b03QM3Bk3tMnl5k1VCCLmM6f0p5 /gswHiMmfqxaSDnKGZdH6vr0fdxnAhZo3nTJD0qS5kgD/rm05B/QT9hRnp0inr01nGzN Cwyt7i1863XBcOFVUT32+uPZ2zt2KNFRd3VNh1ygXM/+7xo+Yh7oBy1pxOAvOlDChCEZ 31vw== 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=Dr/jzV6xkDiFfVW82ahZjbz69mSXNNbSueBpvQCdYno=; fh=D9eUsgpb5hu7jc7cZRLTi8uWTnbPVfl47u4AbJiILZA=; b=mCJ/CaUarclmOHtnySBXXvsH3+KC4AQ1UVOyP0NNa7p1swMjrVhaUust3v5EAIuya8 LtbWYYcXW5vn4OReJxyLEMfel/2O0gzC+G/xpPqebIlJeH+Ct4AJHt/PCVHvjmPEO/yu b/tcUsd49UznmeaZj7Q7Apo0A8scgbHXiAcXbSJTjS30Ur0iubu61fueVQGu2vQrMZ7M xcMf8g+Ergk6Vh44IcluaL1LcYvGixo8gvz6FUqL4tLaTTPEEuJpfWKn6/VYYBhf8+G/ uUP1GR8QSMvSNDK2QmDPKM5o3+dB/MGU0xbVraOHXhc/nORUCUMCBg5n1D4EvUnT7Kxj yehQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kr4fT1MZ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r22-20020aa7cfd6000000b00523384b2e83si2103001edy.56.2023.08.10.15.03.59; Thu, 10 Aug 2023 15:04:41 -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=@kernel.org header.s=k20201202 header.b=Kr4fT1MZ; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbjHJV3w (ORCPT + 99 others); Thu, 10 Aug 2023 17:29:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjHJV3v (ORCPT ); Thu, 10 Aug 2023 17:29:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 572E526A0 for ; Thu, 10 Aug 2023 14:29:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D6BB364669 for ; Thu, 10 Aug 2023 21:29:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9BDBC433C7; Thu, 10 Aug 2023 21:29:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691702990; bh=udij2PLbfirwon6in/VcXMGaiWAROe2LPcfk4aF2xiA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Kr4fT1MZ5n4GcU6trzHtMM5Y0K2DmSAq6NFe0l/WM2mtlZQTgFAYtRe7GiNfmHtki GkMwXKRH29jk22YBx5KtKeMnebZaxeX6+GM35fEtCbSX0ToaJy2HXrRz7ZvWHo/ADf HiFtf8j9CS3CqUNg2LzSSzalFMq/aG6x4NkCc+gVxJJKSKo7xBvgoXdBS2wzdyFfHV ESvT848fAvMkyl3rMEKWJZYchVB/JBlBSmEAlUGPbHHsG163YyagOEVG9HW+FASyzU P83eyNvkLm4TBsrlRGOO+G1y78XpBvTN4RLSA05q4FNQwqJMSMXKKkOJk1Ezxwpb8j fqMNoWQC9exYQ== Date: Thu, 10 Aug 2023 14:29:49 -0700 From: Jakub Kicinski To: "Michael S. Tsirkin" Cc: Maxime Coquelin , xieyongji@bytedance.com, jasowang@redhat.com, david.marchand@redhat.com, lulu@redhat.com, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, xuanzhuo@linux.alibaba.com, eperezma@redhat.com Subject: Re: [PATCH v3 0/3] vduse: add support for networking devices Message-ID: <20230810142949.074c9430@kernel.org> In-Reply-To: <20230810150347-mutt-send-email-mst@kernel.org> References: <20230705100430.61927-1-maxime.coquelin@redhat.com> <20230810150347-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 On Thu, 10 Aug 2023 15:04:27 -0400 Michael S. Tsirkin wrote: > Another question is that with this userspace can inject > packets directly into net stack. Should we check CAP_NET_ADMIN > or such? Directly into the stack? I thought VDUSE is vDPA in user space, meaning to get to the kernel the packet has to first go thru a virtio-net instance. Or you mean directly into the network?