[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <61d64892-ce77-3e86-acb8-a49679fc0047@infradead.org>
Date: Wed, 19 Feb 2020 20:04:10 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: Jason Wang <jasowang@...hat.com>, mst@...hat.com,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org
Cc: tiwei.bie@...el.com, jgg@...lanox.com, maxime.coquelin@...hat.com,
cunming.liang@...el.com, zhihong.wang@...el.com,
rob.miller@...adcom.com, xiao.w.wang@...el.com,
haotian.wang@...ive.com, lingshan.zhu@...el.com,
eperezma@...hat.com, lulu@...hat.com, parav@...lanox.com,
kevin.tian@...el.com, stefanha@...hat.com, hch@...radead.org,
aadam@...hat.com, jiri@...lanox.com, shahafs@...lanox.com,
hanand@...inx.com, mhabets@...arflare.com
Subject: Re: [PATCH V3 1/5] vhost: factor out IOTLB
On 2/19/20 7:56 PM, Jason Wang wrote:
> This patch factors out IOTLB into a dedicated module in order to be
> reused by other modules like vringh. User may choose to enable the
> automatic retiring by specifying VHOST_IOTLB_FLAG_RETIRE flag to fit
> for the case of vhost device IOTLB implementation.
>
> Signed-off-by: Jason Wang <jasowang@...hat.com>
> ---
> MAINTAINERS | 1 +
> drivers/vhost/Kconfig | 7 ++
> drivers/vhost/Makefile | 2 +
> drivers/vhost/net.c | 2 +-
> drivers/vhost/vhost.c | 221 +++++++++++-------------------------
> drivers/vhost/vhost.h | 36 ++----
> drivers/vhost/vhost_iotlb.c | 171 ++++++++++++++++++++++++++++
> include/linux/vhost_iotlb.h | 45 ++++++++
> 8 files changed, 304 insertions(+), 181 deletions(-)
> create mode 100644 drivers/vhost/vhost_iotlb.c
> create mode 100644 include/linux/vhost_iotlb.h
>
Hi,
Sorry if you have gone over this previously:
> diff --git a/drivers/vhost/Kconfig b/drivers/vhost/Kconfig
> index 3d03ccbd1adc..eef634ff9a6e 100644
> --- a/drivers/vhost/Kconfig
> +++ b/drivers/vhost/Kconfig
> @@ -36,6 +36,7 @@ config VHOST_VSOCK
>
> config VHOST
> tristate
> + select VHOST_IOTLB
> ---help---
> This option is selected by any driver which needs to access
> the core of vhost.
> @@ -54,3 +55,9 @@ config VHOST_CROSS_ENDIAN_LEGACY
> adds some overhead, it is disabled by default.
>
> If unsure, say "N".
> +
> +config VHOST_IOTLB
> + tristate
> + default m
"default m" should not be needed. Just make whatever needs it select it.
> + help
> + Generic IOTLB implementation for vhost and vringh.
--
~Randy
Powered by blists - more mailing lists