Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp668464rdg; Thu, 10 Aug 2023 15:53:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFh25dwJGQ2nX9nGsIIRm4ty96xEYicJDXDi10Khsv1hWlIUhMjuBACDmZSdCwfl2CvUXFl X-Received: by 2002:a05:6a21:3d89:b0:131:47f7:e811 with SMTP id bj9-20020a056a213d8900b0013147f7e811mr368375pzc.22.1691707981518; Thu, 10 Aug 2023 15:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691707981; cv=none; d=google.com; s=arc-20160816; b=UreXLzhUlwz2+fXHcVrP0CxqfM923e3NE4pjy8an2s2RPDc/ZIZsrlc+TzTywkhxcb qWf4wI7Z8p2+LIjCvzXmIjxP5hIQfYznmfasy15yai6p9WgnnWTCfE4IFYn5x/+jyhGo 2PiBjQYZFUBPJdJFaFOx+bZkCO8tiUoT2qf7MNr/Zrb5QpF1Uu5rMIoPHLRxuRl9yc6s eoJU9lFE8uSh4uhKBWRqvxVgY6CkpNmZDNAYgQyy297R5F+L7Fe+whd5qAbtXhkWjhfy yU4Dx8wmuVtpiFgrY7g7qoLpFKeWc2PnqElUzrN9jHJC2bu1xRGZkPhn3Xa5/dzbrxht Z3+A== 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=2HtcNk1A7Nq+3/V6wlbgltFs7j7KhU3JDIUkHEFT9ak=; fh=4FDzNmnkwZoxkPpQdospkpOe0wFhv1i3DiNhoHFguBk=; b=fbu1XU81hqSAnwH3MpxU8MhfXZwIb4tT2IRzcBn/Ab3kizSY2VqXL2TJOEtWE/nkuR EI9zFmTnM+kaEkDV9oEsrwED4f3n7DrXQbrLJvG79S7hPMAMdyMIdJQcUptIexspV+wV 58mTGwzuMNyHDtBZRXc/JSyYK7ayepRzSyF0sRLitH4QgmsfQlW35A31vaarDA9InCOf CPRO2Bw+H/+GFUA6f/ALLli6CTx8nAS3OnR7iPLcJIGfQBlI3jMjqbqL6mCOS6tz0K0r Xfsz6AwLE+5HewC4R9AZvI7VMRylw8prWR/FQ0f2+Ee2D4Y694816moSFT8KGf7t43QV tXIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DgYXhQNa; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h192-20020a636cc9000000b005638b026f6bsi2155824pgc.522.2023.08.10.15.52.49; Thu, 10 Aug 2023 15:53:01 -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=@redhat.com header.s=mimecast20190719 header.b=DgYXhQNa; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbjHJVnH (ORCPT + 99 others); Thu, 10 Aug 2023 17:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjHJVnG (ORCPT ); Thu, 10 Aug 2023 17:43:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6A0A2728 for ; Thu, 10 Aug 2023 14:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691703738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2HtcNk1A7Nq+3/V6wlbgltFs7j7KhU3JDIUkHEFT9ak=; b=DgYXhQNaXTFcSKkKxvrNJ/Z2kgbh9xhpxxykVQkFxFE/BZwBVj/CCxdG3PwsWVGiu9RV25 n6ttrXQuECOOhr/v2jKq4LCneqTgJP2QPOxedFtxv3F7+qES9XgSqCrsi+oFBRtiP/thAp 19dCqUcPiGIw0M7zS+EC6Yv2Km3D+Ns= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-198-wut8qPNyPhCP2juoJnjlwQ-1; Thu, 10 Aug 2023 17:42:16 -0400 X-MC-Unique: wut8qPNyPhCP2juoJnjlwQ-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-3fe4bda379fso9029555e9.1 for ; Thu, 10 Aug 2023 14:42:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691703735; x=1692308535; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2HtcNk1A7Nq+3/V6wlbgltFs7j7KhU3JDIUkHEFT9ak=; b=EddPQjvJcigqkfiegIKGEsAuZ5rHxuzmGlNnFPv+hLbj4tR6beIxcdKPnYlQD11zzj IsC7uvtng2KTPYKemnIJTFp8Wt+pwNfiuVllWzyqszZLgQ1QQBzmeQGC4rbl/IjV/B9Y QbXnrNxqb52JHTopWja/K8b62jWouHcwAqtL7gpgRXbrblzjKe+4eb683O8wMcnKLxod z8y/hyVg5Sjcq5SuP20tFQXE8f/wkGzaffb3b+JFloYuEt+tYRuyVTbk1h7mPHdG2USl yDfcsDtMhDIrGNuOKDwluyIS4fZjCDgQKZIF960sGg78ny2kHSh+ZciZtpfAxzyi7C7M l4cg== X-Gm-Message-State: AOJu0YztNwuEQ+s12y1kVDmu/ogQBPVjiu5lpA9FCI9ocpe9+xlI5DzM 9bbSiqjimghMqF4CwEhWwkhoE9jsxQdCIfWa5mKSXR0UYb6AHqlk6FJt4jFugM4eh+vhHPYFJ6i 1ZoZOZnHOhbEqp5VqCCIET184 X-Received: by 2002:a05:600c:218f:b0:3fc:186:284d with SMTP id e15-20020a05600c218f00b003fc0186284dmr107036wme.18.1691703735764; Thu, 10 Aug 2023 14:42:15 -0700 (PDT) X-Received: by 2002:a05:600c:218f:b0:3fc:186:284d with SMTP id e15-20020a05600c218f00b003fc0186284dmr107027wme.18.1691703735439; Thu, 10 Aug 2023 14:42:15 -0700 (PDT) Received: from redhat.com ([2.55.42.146]) by smtp.gmail.com with ESMTPSA id y9-20020a7bcd89000000b003fba6a0c881sm6129528wmj.43.2023.08.10.14.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 14:42:14 -0700 (PDT) Date: Thu, 10 Aug 2023 17:42:11 -0400 From: "Michael S. Tsirkin" To: Jakub Kicinski 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: <20230810174021-mutt-send-email-mst@kernel.org> References: <20230705100430.61927-1-maxime.coquelin@redhat.com> <20230810150347-mutt-send-email-mst@kernel.org> <20230810142949.074c9430@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810142949.074c9430@kernel.org> 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,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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, Aug 10, 2023 at 02:29:49PM -0700, Jakub Kicinski wrote: > 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. yes. is that a sufficient filter in your opinion? > Or you mean directly into the network?