lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210617033844.1107-1-caihuoqing@baidu.com>
Date:   Thu, 17 Jun 2021 11:38:44 +0800
From:   Cai Huoqing <caihuoqing@...du.com>
To:     <mst@...hat.com>, <jasowang@...hat.com>, <leon@...nel.org>
CC:     <kvm@...r.kernel.org>, <virtualization@...ts.linux-foundation.org>,
        <netdev@...r.kernel.org>, Cai Huoqing <caihuoqing@...du.com>
Subject: [PATCH v2] vhost: add vhost_test to Kconfig & Makefile

When running vhost test, make it easier to config

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ