From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33769C433F5 for ; Thu, 6 Jan 2022 12:24:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238780AbiAFMYy (ORCPT ); Thu, 6 Jan 2022 07:24:54 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:23991 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238598AbiAFMYy (ORCPT ); Thu, 6 Jan 2022 07:24:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641471893; 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=0uPOPPljcCRT5JnCSjBYTsAZ9QvLUTF6yXLYqezm/jk=; b=TRiXqEUxE7KuA99lKmqzrqDNxkNScZCWtrXHJ5qdEN3IgQU2/Z+45eaRWHxwO0FRXamXEj PJEDiNefTlhZ8x5WRkGSg6x0K8iZEBj287/POrc1Rp1+pnD8MO8YSiVLUgkGH2eNeoMF0F dBeTdhs5r+ovRH6e3Pg47cESHf7UNKU= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-185-CRIWEeGUNDSv45OOz7yK8Q-1; Thu, 06 Jan 2022 07:24:52 -0500 X-MC-Unique: CRIWEeGUNDSv45OOz7yK8Q-1 Received: by mail-wr1-f69.google.com with SMTP id w25-20020adf8bd9000000b001a255212b7cso1172894wra.18 for ; Thu, 06 Jan 2022 04:24:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0uPOPPljcCRT5JnCSjBYTsAZ9QvLUTF6yXLYqezm/jk=; b=sg1O/t9nDum8t74fCEB3kTbQK5rY6YmTsTqmmzohULmvpFRHK+VfvRIJlKfCQz1fZ8 YTg1I5JP8sbSBNM3i90cMqe1f1m4sz3PFhiEl+DDyaxO9tSDKnTdyjsV4HgZcF6AYDYh qqx2qfLgUuulZELt1n5/mAVueXGLsxTMJaYWaIK7cVr8D4ZnU8TqFfA2/JUH51rsu8ID 3U3wAEElITpYJ+066kBhgPbVFqoZ/d+xrtBbxfHYJLGlBGLMZqknpIsSjK93bpVzzi9W L8dxCjUyGSbLA1/JkbX7X2TRTNmLREBFS2kk5BkjMYujXyJWRtN/Ut6OII60w5+W9Pah t2Xg== X-Gm-Message-State: AOAM533dnJsrCu8Vnp0hdEi+m96J5ztvNwbzx+Xb4mtD5I5A8MYPctYO AQ49NT9FSxQynUcrbROSCz/JEWtgkIhslp+SXFgg+Cj6tHN7HJf+1B9kqLJBxkkxujC0JedcnUU g7dtxmKPqsf8+ X-Received: by 2002:adf:f904:: with SMTP id b4mr31756839wrr.457.1641471890971; Thu, 06 Jan 2022 04:24:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcnYl5f7mjbdHhw5BDaaDbej/KBrzommpeO6kEVNqKU1TlflODCHM/SPqrxpiLKr97ZxWBog== X-Received: by 2002:adf:f904:: with SMTP id b4mr31756826wrr.457.1641471890799; Thu, 06 Jan 2022 04:24:50 -0800 (PST) Received: from redhat.com ([2a03:c5c0:207e:991b:6857:5652:b903:a63b]) by smtp.gmail.com with ESMTPSA id l8sm1945393wrv.25.2022.01.06.04.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 04:24:49 -0800 (PST) Date: Thu, 6 Jan 2022 07:24:47 -0500 From: "Michael S. Tsirkin" To: Cai Huoqing Cc: jasowang@redhat.com, leon@kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org Subject: Re: [PATCH v2] vhost: add vhost_test to Kconfig & Makefile Message-ID: <20220106072352-mutt-send-email-mst@kernel.org> References: <20210617033844.1107-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210617033844.1107-1-caihuoqing@baidu.com> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, Jun 17, 2021 at 11:38:44AM +0800, Cai Huoqing wrote: > When running vhost test, make it easier to config > > Signed-off-by: Cai Huoqing I'd stick this under Kernel Testing and Coverage or something like this. The point being we don't want this in release kernels by mistake. > --- > drivers/vhost/Kconfig | 11 +++++++++++ > drivers/vhost/Makefile | 3 +++ > 2 files changed, 14 insertions(+) > > diff --git a/drivers/vhost/Kconfig b/drivers/vhost/Kconfig > index 587fbae06182..ac2bffd6a501 100644 > --- a/drivers/vhost/Kconfig > +++ b/drivers/vhost/Kconfig > @@ -61,6 +61,17 @@ config VHOST_VSOCK > To compile this driver as a module, choose M here: the module will be called > vhost_vsock. > > +config VHOST_TEST > + tristate "vhost virtio-test driver" > + depends on EVENTFD > + select VHOST > + help > + This kernel module can be loaded in the host kernel to test vhost function > + with tools/virtio-test. > + > + To compile this driver as a module, choose M here: the module will be called > + vhost_test. > + > config VHOST_VDPA > tristate "Vhost driver for vDPA-based backend" > depends on EVENTFD > diff --git a/drivers/vhost/Makefile b/drivers/vhost/Makefile > index f3e1897cce85..cf31c1f2652d 100644 > --- a/drivers/vhost/Makefile > +++ b/drivers/vhost/Makefile > @@ -8,6 +8,9 @@ vhost_scsi-y := scsi.o > obj-$(CONFIG_VHOST_VSOCK) += vhost_vsock.o > vhost_vsock-y := vsock.o > > +obj-$(CONFIG_VHOST_TEST) += vhost_test.o > +vhost_test-y := test.o > + > obj-$(CONFIG_VHOST_RING) += vringh.o > > obj-$(CONFIG_VHOST_VDPA) += vhost_vdpa.o > -- > 2.22.0