All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] vhost: add vhost_test to Kconfig & Makefile
@ 2021-06-17  3:38 Cai Huoqing
  2022-01-06 12:24   ` Michael S. Tsirkin
  0 siblings, 1 reply; 3+ messages in thread
From: Cai Huoqing @ 2021-06-17  3:38 UTC (permalink / raw)
  To: mst, jasowang, leon; +Cc: kvm, virtualization, netdev, Cai Huoqing

When running vhost test, make it easier to config

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] vhost: add vhost_test to Kconfig & Makefile
  2021-06-17  3:38 [PATCH v2] vhost: add vhost_test to Kconfig & Makefile Cai Huoqing
@ 2022-01-06 12:24   ` Michael S. Tsirkin
  0 siblings, 0 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2022-01-06 12:24 UTC (permalink / raw)
  To: Cai Huoqing; +Cc: jasowang, leon, kvm, virtualization, netdev

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 <caihuoqing@baidu.com>

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] vhost: add vhost_test to Kconfig & Makefile
@ 2022-01-06 12:24   ` Michael S. Tsirkin
  0 siblings, 0 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2022-01-06 12:24 UTC (permalink / raw)
  To: Cai Huoqing; +Cc: netdev, kvm, leon, virtualization

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 <caihuoqing@baidu.com>

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

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-06 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17  3:38 [PATCH v2] vhost: add vhost_test to Kconfig & Makefile Cai Huoqing
2022-01-06 12:24 ` Michael S. Tsirkin
2022-01-06 12:24   ` Michael S. Tsirkin

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.