From: Leon Romanovsky <leon@kernel.org>
To: Cai Huoqing <caihuoqing@baidu.com>
Cc: virtualization@lists.linux-foundation.org, kvm@vger.kernel.org,
mst@redhat.com
Subject: Re: [PATCH] vhost: add vhost_test to Kconfig & Makefile
Date: Wed, 16 Jun 2021 16:06:52 +0300 [thread overview]
Message-ID: <YMn3bGIhrMEzguP7@unreal> (raw)
In-Reply-To: <20210616120734.1050-1-caihuoqing@baidu.com>
On Wed, Jun 16, 2021 at 08:07:34PM +0800, Cai Huoqing wrote:
> When running vhost test, make it easier to config
>
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
> ---
> drivers/vhost/Kconfig | 12 ++++++++++++
> drivers/vhost/Makefile | 3 +++
> 2 files changed, 15 insertions(+)
>
> diff --git a/drivers/vhost/Kconfig b/drivers/vhost/Kconfig
> index 587fbae06182..c93c12843a6f 100644
> --- a/drivers/vhost/Kconfig
> +++ b/drivers/vhost/Kconfig
> @@ -61,6 +61,18 @@ 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
> + default n
You don't need to write explicitly "default n". "No" is already default.
Thanks
> + 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
>
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
WARNING: multiple messages have this Message-ID (diff)
From: Leon Romanovsky <leon@kernel.org>
To: Cai Huoqing <caihuoqing@baidu.com>
Cc: mst@redhat.com, jasowang@redhat.com, kvm@vger.kernel.org,
virtualization@lists.linux-foundation.org
Subject: Re: [PATCH] vhost: add vhost_test to Kconfig & Makefile
Date: Wed, 16 Jun 2021 16:06:52 +0300 [thread overview]
Message-ID: <YMn3bGIhrMEzguP7@unreal> (raw)
In-Reply-To: <20210616120734.1050-1-caihuoqing@baidu.com>
On Wed, Jun 16, 2021 at 08:07:34PM +0800, Cai Huoqing wrote:
> When running vhost test, make it easier to config
>
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
> ---
> drivers/vhost/Kconfig | 12 ++++++++++++
> drivers/vhost/Makefile | 3 +++
> 2 files changed, 15 insertions(+)
>
> diff --git a/drivers/vhost/Kconfig b/drivers/vhost/Kconfig
> index 587fbae06182..c93c12843a6f 100644
> --- a/drivers/vhost/Kconfig
> +++ b/drivers/vhost/Kconfig
> @@ -61,6 +61,18 @@ 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
> + default n
You don't need to write explicitly "default n". "No" is already default.
Thanks
> + 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
>
next prev parent reply other threads:[~2021-06-16 13:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-16 12:07 [PATCH] vhost: add vhost_test to Kconfig & Makefile Cai Huoqing
2021-06-16 13:06 ` Leon Romanovsky [this message]
2021-06-16 13:06 ` Leon Romanovsky
2022-01-06 12:23 ` Michael S. Tsirkin
2022-01-06 12:23 ` Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YMn3bGIhrMEzguP7@unreal \
--to=leon@kernel.org \
--cc=caihuoqing@baidu.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.