Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp961580pxb; Wed, 6 Apr 2022 05:24:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3Jz7wHIO9RZqWs+InzhKv1VXGwibm8mzI5WOT9GMlflkHgzjkpvAG1H70/CLI2zdyZqXv X-Received: by 2002:a05:6a00:a26:b0:4fd:f9dd:549c with SMTP id p38-20020a056a000a2600b004fdf9dd549cmr8607098pfh.42.1649247867478; Wed, 06 Apr 2022 05:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649247867; cv=none; d=google.com; s=arc-20160816; b=g9nlW1fRfruScTIptmiyEoKS0S46Hel3yHCqz/1zRsXm10PGSjHxt6oCXci1mkZdc0 Zpf0jLYYxXwEtf5XUBUvlvs/Bpie0MyqJP8nJmBV8fJl3IcdR6zOP0Mw4KmD2E/msvsl EvV7hlMaTGJENAyPKIhflqCRt1DWjwynIM3NkWBda8rvMDi5DdWCJZPhPScGo5M6VjUx 8cX5zrgO8NdIhnPmBS3fNfQEh52ySXXtyaVISkVUmNM2ckUrsAYiXqbihC5LMDnd6RdS ui6SAnyzaEI/KZwz7A3kpZRAMyTB08hN/TfVfXgceruW616P+5F0+JPKONheuHq/QQHu lmKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WhCHZK9GJJLMq21n9Wjs02V4Hy6iol3pV60QmFhYnXI=; b=Odq/L4vdFbyafIhrgISVi2Gm3XfVf5dal3nyyf3R3+KgdbKhEUjq5P5zD/gc27IJhS cxxzp1Bp3xzQoEVAS39a8jM4doWUISB66h1RtEpwLaRqE4uVn5J79ZsLTipyh8l759q9 /Fm+atV4EjE/G9uRmEDcgBZKO7TlGyY+0DcQ68NGe5HhI3jJWNRuDYsNV0kkC7RArt09 TmHMUn9g3NVI+6/bJmiQouJK+HSGh+TQHh/ODqsocubD+giZyKca8wMinSJ86kKSU7Vg zvwyDSgy2guusFFjJUXpQOcOiMIYlI/0tnaR6mLQJ6EUQD5D8CJ7+2CoTZdLGAZCPNF/ LnGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=jOu26AEg; 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=NONE dis=NONE) header.from=axis.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j13-20020a65558d000000b003729ecc3ae7si16651027pgs.2.2022.04.06.05.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:24:27 -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 (test mode) header.i=@axis.com header.s=axis-central1 header.b=jOu26AEg; 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=NONE dis=NONE) header.from=axis.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F3E99610938; Wed, 6 Apr 2022 04:33:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354210AbiDFAUT (ORCPT + 99 others); Tue, 5 Apr 2022 20:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443055AbiDEPix (ORCPT ); Tue, 5 Apr 2022 11:38:53 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7F8F143C7C; Tue, 5 Apr 2022 06:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1649166856; x=1680702856; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WhCHZK9GJJLMq21n9Wjs02V4Hy6iol3pV60QmFhYnXI=; b=jOu26AEgH52kLCEHGCDNClrCiuGQsqC0mMbV00LsCQ6D7yvqs5Dp0cZy optIlXUGOYK/V04EhtXgmp6AGk/51aFLQeuyzPywOKdv2JKXA+l+F6zE7 jxHOIV1w+04HJPidE7bujX1V1JGCLkwHL1iXL+GF9c51ejPvh7kJHrDJF sWsJXpEG7H3IcBsiHwqDNa1ca2VTQ5eAIIHcwcVTTvxCwHveoCzsrgoBD Qg4rKYHk/O7G0KuyvCJLe6mEPgEtYSv+lMmSdwpvvs1oz0dylwi73F+Ak 1fDOQjfbIzc4yDvOAyiXUKMXCl58iv6V6IbDYllLso+PQ6F552TycWKbq w==; Date: Tue, 5 Apr 2022 15:54:12 +0200 From: Vincent Whitchurch To: Johannes Berg CC: "linux-kernel@vger.kernel.org" , kernel , "devicetree@vger.kernel.org" , "linux-um@lists.infradead.org" , "shuah@kernel.org" , "brendanhiggins@google.com" , "linux-kselftest@vger.kernel.org" , "jic23@kernel.org" , "linux-iio@vger.kernel.org" , "lgirdwood@gmail.com" , "broonie@kernel.org" , "a.zummo@towertech.it" , "alexandre.belloni@bootlin.com" , "linux-rtc@vger.kernel.org" , "corbet@lwn.net" , "linux-doc@vger.kernel.org" Subject: Re: [RFC v1 01/10] roadtest: import libvhost-user from QEMU Message-ID: <20220405135412.GB28574@axis.com> References: <20220311162445.346685-1-vincent.whitchurch@axis.com> <20220311162445.346685-2-vincent.whitchurch@axis.com> <7f405d8d09a83954aa3411eff8b71ee687c7ec33.camel@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <7f405d8d09a83954aa3411eff8b71ee687c7ec33.camel@sipsolutions.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 On Thu, Mar 24, 2022 at 02:00:10PM +0100, Johannes Berg wrote: > On Fri, 2022-03-11 at 17:24 +0100, Vincent Whitchurch wrote: > > Import the libvhost-user from QEMU for use in the implementation of the > > virtio devices in the roadtest backend. > > So hm, I wonder if this is the sensible thing to do? > > Not that I mind importing qemu code, but: > > 1) the implementation is rather complex in some places, and has support > for a LOT of virtio/vhost-user features that are really not needed > in these cases, for performance etc. It's also close to 4k LOC. Is this really a problem given that the code is imported as-is? The intention is not to have to make a lot of local modifications to it in the kernel tree. The code is stable and presumably well-tested upstream, and upstream maintains it as a separate library (in the QEMU source tree though) to encourage reuse. > 2) the implementation doesn't support time-travel mode which might come > in handy True, but I don't see the external time-travel controller stuff being too useful for the kinds of tests this framework is targeting.