[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b348cb04-3b5b-1a11-a4c5-4b05d31e88c0@redhat.com>
Date: Thu, 20 Feb 2020 13:39:39 +0800
From: Jason Wang <jasowang@...hat.com>
To: Randy Dunlap <rdunlap@...radead.org>, 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 2020/2/20 下午12:04, Randy Dunlap wrote:
> 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:
Thanks for the review, it's really helpful.
>
>> 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.
Yes, will fix.
Thanks
>
>> + help
>> + Generic IOTLB implementation for vhost and vringh.
>
Powered by blists - more mailing lists