lkml.org 
[lkml]   [2020]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V9 8/9] vdpasim: vDPA device simulator
From
Date

On 2020/4/10 下午3:45, Geert Uytterhoeven wrote:
> Hi Jason,
>
> On Thu, Mar 26, 2020 at 3:07 PM Jason Wang <jasowang@redhat.com> wrote:
>> This patch implements a software vDPA networking device. The datapath
>> is implemented through vringh and workqueue. The device has an on-chip
>> IOMMU which translates IOVA to PA. For kernel virtio drivers, vDPA
>> simulator driver provides dma_ops. For vhost driers, set_map() methods
>> of vdpa_config_ops is implemented to accept mappings from vhost.
>>
>> Currently, vDPA device simulator will loopback TX traffic to RX. So
>> the main use case for the device is vDPA feature testing, prototyping
>> and development.
>>
>> Note, there's no management API implemented, a vDPA device will be
>> registered once the module is probed. We need to handle this in the
>> future development.
>>
>> Signed-off-by: Jason Wang <jasowang@redhat.com>
> This is now commit 2c53d0f64c06f458 ("vdpasim: vDPA device simulator").
>
>> --- a/drivers/virtio/vdpa/Kconfig
>> +++ b/drivers/virtio/vdpa/Kconfig
>> @@ -5,3 +5,22 @@ config VDPA
>> Enable this module to support vDPA device that uses a
>> datapath which complies with virtio specifications with
>> vendor specific control path.
>> +
>> +menuconfig VDPA_MENU
>> + bool "VDPA drivers"
>> + default n
> *
> * VDPA drivers
> *
> VDPA drivers (VDPA_MENU) [N/y/?] (NEW) ?
>
> There is no help available for this option.
> Symbol: VDPA_MENU [=n]
> Type : bool
> Defined at drivers/vdpa/Kconfig:9
> Prompt: VDPA drivers
> Location:
> -> Device Drivers
>
> I think this deserves a help text, so users know if they want to enable this
> option or not.


Will add a help text for this.


>
> I had a quick look, but couldn't find the meaning of "vdpa" in the whole kernel
> source tree.


The meaning was explained in the commit log of
961e9c84077f6c8579d7a628cbe94a675cb67ae4 and help text for CONFIG_VDPA.

Thanks


>
> Thanks!
>
>> +
>> +if VDPA_MENU
>> +
>> +config VDPA_SIM
>> + tristate "vDPA device simulator"
>> + depends on RUNTIME_TESTING_MENU
>> + select VDPA
>> + select VHOST_RING
>> + default n
>> + help
>> + vDPA networking device simulator which loop TX traffic back
>> + to RX. This device is used for testing, prototyping and
>> + development of vDPA.
>> +
>> +endif # VDPA_MENU
> Gr{oetje,eeting}s,
>
> Geert
>

\
 
 \ /
  Last update: 2020-04-10 10:25    [W:0.059 / U:1.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site