Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1166131rwl; Fri, 4 Nov 2022 10:29:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6njVx16MzUQfzZIkjZ5hUvMY9R3bFvSf2kaEGmN5T9iveF7SrWXHTJyCbMJs5TbEpZP0cp X-Received: by 2002:a05:6a00:1a8f:b0:56d:f7c2:959 with SMTP id e15-20020a056a001a8f00b0056df7c20959mr16043656pfv.71.1667582976654; Fri, 04 Nov 2022 10:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667582976; cv=none; d=google.com; s=arc-20160816; b=o0HIs+d+qJMTZBWzIFO1++y/DsLb1nTSlNxlxwLcZYz9DgESMg/d86pAQ8rx1euG16 u/iFrRvVPrzEzT03o2emapf19bJlE4LXMFmC3zIycmrGzXkg0CS04BMarz5n63NRrDlx jZBMkew+toT70qC010wim0V9m7jKhsdYa5ua8fl+t8axvHFv8bJPtVBmXeu8ukN2EpCo LaxI5/b1R9DZHxJ4WU/0hovdmht7e/KjLOwYjR6VIvjZH4rJxr/ArUWR9jtKPE5YNNh4 vKQayqaWAPA4gVPJb/GRO6GSnZIjaJCbw84kguDH+DfBFtgao0oirofU7hYIgKUH8n/I sqkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature; bh=HCvHE0DMbnr2RqCoJjZiBj+XkM3E8wqqAKeIbRv61G8=; b=VHWYQar0X5jWE2gBBzPrVM4329LjD//c7epASEK6lklpaNo2bI55X/1Ub6YlJhuQd2 DzcRa1QFnMuo7qXe0p0KYosMrYYHYSjvo7ZvBO/rufhzbfY60MzQ0kZvjonfmtnj6g3h hFGVa2zRddKuWG+8H3kSW4tSwIJyu8OGKzMZS+byGv+6A5L1N9ztgUphH/TVjz2L9mWu r7OcF2e6AqZDY37jgl9kzh6o0aXN+aWAZtV/SscOObtR+go2gZhHIY0oaT3EmAW2ICdm AfnRnQAwuGpcoopOz0ZLR0L1Y0uJ9M7nkiDPL7pn6EdhhIZlKFw5pJW9fEHg8FsESBHW tlTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BUPv5aN5; 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 my8-20020a17090b4c8800b00202fbc97a02si4577024pjb.68.2022.11.04.10.29.23; Fri, 04 Nov 2022 10:29:36 -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=BUPv5aN5; 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 S230089AbiKDREQ (ORCPT + 96 others); Fri, 4 Nov 2022 13:04:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbiKDREM (ORCPT ); Fri, 4 Nov 2022 13:04:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47AF030F7F; Fri, 4 Nov 2022 10:04:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B9FAC622C2; Fri, 4 Nov 2022 17:04:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1DFBC433C1; Fri, 4 Nov 2022 17:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667581450; bh=02up0D8KxrG2mC+39uGRjUxfW9WYUdA/gqv2kDDTVZU=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=BUPv5aN5vyIvx3DJU39btf/Q6Ud/5RAknhdltYvX+hNVbd7s9Hw2MbNaUJPOJFkdu +vmy+l9+bFXexqllhxw2+pebVrFZiOrSvlzvYq3er0KLtx86cYRMUyE9LUGxrNKzOZ 5Gm+z2GDMoiTcmEGh61x/tLu1BU/P82w9VTg8tUAWHKnSLiyeiXYxvD3AT3PeW3yq5 LFR+8WhdA2SCl+MEP+OLIikUhyFM+MMnRv4bPqo8LGBFUQhufRRma8E7jPlySNZ55o WgIByYXfJI/htshalAGyZy7YgxhEQ3vKR5lyLH7GGF3qg3kLnaviXbE1w8ckurY/Vm zsvrRhAiXT8UA== Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 5588627C0054; Fri, 4 Nov 2022 13:04:08 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Fri, 04 Nov 2022 13:04:08 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvddugdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugeskhgvrhhnvghlrdhorhhgqeenucggtffrrg htthgvrhhnpedvveeigfetudegveeiledvgfevuedvgfetgeefieeijeejffeggeehudeg tdevheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddvkeehudejtddv gedqvdekjedttddvieegqdgrrhhnugeppehkvghrnhgvlhdrohhrghesrghrnhgusgdrug gv X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 479BEB603ED; Fri, 4 Nov 2022 13:04:07 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1087-g968661d8e1-fm-20221021.001-g968661d8 Mime-Version: 1.0 Message-Id: <36bb910c-4874-409b-ac71-d141cd1d8ecb@app.fastmail.com> In-Reply-To: References: <20220825134449.18803-1-harald.mommer@opensynergy.com> <20220827093909.ag3zi7k525k4zuqq@pengutronix.de> <40e3d678-b840-e780-c1da-367000724f69@opensynergy.com> Date: Fri, 04 Nov 2022 18:03:50 +0100 From: "Arnd Bergmann" To: "Jan Kiszka" , "Harald Mommer" , "Marc Kleine-Budde" , "Harald Mommer" Cc: virtio-dev@lists.oasis-open.org, linux-can@vger.kernel.org, Netdev , linux-kernel@vger.kernel.org, "Wolfgang Grandegger" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Dariusz Stojaczyk" , stratos-dev@op-lists.linaro.org Subject: Re: [virtio-dev] Re: [RFC PATCH 1/1] can: virtio: Initial virtio CAN driver. Content-Type: text/plain X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Fri, Nov 4, 2022, at 16:32, Jan Kiszka wrote: > On 03.11.22 14:55, Harald Mommer wrote: >> >> On 27.08.22 11:39, Marc Kleine-Budde wrote: >>> Is there an Open Source implementation of the host side of this >>> interface? >> there is neither an open source device nor is it currently planned. The >> device I'm developing is closed source. > > Likely not helpful long-term /wrt kernel QA - how should kernelci or > others even have a chance to test the driver? Keep in mind that you are > not proposing a specific driver for an Opensynergy hypervisor, rather > for the open and vendor-agnostic virtio spec. > > But QEMU already supports both CAN and virtio, thus should be relatively > easy to augment with this new device. Agreed, either hooking into the qemu support, or having a separate vhost-user backend that forwards data to the host stack would be helpful here, in particular to see how the flow control works. IIRC when we discussed virtio-can on the stratos list, one of the issues that was pointed out was filtering of frames for specific CAN IDs in the host socketcan for assigning individual IDs to separate guests. It would be good to understand whether a generic host implementation has the same problems, and what can be done in socketcan to help with that. Arnd