[PATCH -next] vdpasim: remove unused variable 'ret'

2020-04-10 Thread YueHaibing
drivers/vdpa/vdpa_sim/vdpa_sim.c:92:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c

Re: [PATCH] vdpa-sim: depend on HAS_DMA

2020-04-10 Thread Geert Uytterhoeven
Hi Michael, On Sun, Apr 5, 2020 at 10:17 AM Michael S. Tsirkin wrote: > > set_dma_ops isn't available on all architectures: > > make ARCH=um > ... > >drivers/vdpa/vdpa_sim/vdpa_sim.c: In function 'vdpasim_create': > >> drivers/vdpa/vdpa_sim/vdpa_sim.c:324:2: error: implicit

Re: vhost: refine vhost and vringh kconfig

2020-04-10 Thread Geert Uytterhoeven
Hi Jason, On Fri, Apr 10, 2020 at 10:33 AM Jason Wang wrote: > On 2020/4/10 下午3:53, Geert Uytterhoeven wrote: > > On Thu, Apr 9, 2020 at 6:04 AM Linux Kernel Mailing List > > wrote: > >> Commit: 20c384f1ea1a0bc7320bc445c72dd02d2970d594 > >> Parent:

Re: vhost: refine vhost and vringh kconfig

2020-04-10 Thread Jason Wang
On 2020/4/10 下午3:53, Geert Uytterhoeven wrote: Hi Jason, On Thu, Apr 9, 2020 at 6:04 AM Linux Kernel Mailing List wrote: Commit: 20c384f1ea1a0bc7320bc445c72dd02d2970d594 Parent: 5a6b4cc5b7a1892a8d7f63d6cbac6e0ae2a9d031 Refname:refs/heads/master Web:

Re: [PATCH V9 8/9] vdpasim: vDPA device simulator

2020-04-10 Thread Jason Wang
On 2020/4/10 下午3:45, Geert Uytterhoeven wrote: Hi Jason, On Thu, Mar 26, 2020 at 3:07 PM Jason Wang 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

Re: vhost: refine vhost and vringh kconfig

2020-04-10 Thread Geert Uytterhoeven
Hi Jason, On Thu, Apr 9, 2020 at 6:04 AM Linux Kernel Mailing List wrote: > Commit: 20c384f1ea1a0bc7320bc445c72dd02d2970d594 > Parent: 5a6b4cc5b7a1892a8d7f63d6cbac6e0ae2a9d031 > Refname:refs/heads/master > Web: >

Re: [PATCH V9 8/9] vdpasim: vDPA device simulator

2020-04-10 Thread Geert Uytterhoeven
Hi Jason, On Thu, Mar 26, 2020 at 3:07 PM Jason Wang 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

Re: [PATCH] vdpa: allow a 32 bit vq alignment

2020-04-10 Thread Jason Wang
Cc Ling Shan. On 2020/4/10 上午4:28, Michael S. Tsirkin wrote: get_vq_align returns u16 now, but that's not enough for systems/devices with 64K pages. All callers assign it to a u32 variable anyway, so let's just change the return value type to u32. Cc: "Zhu, Lingshan" Reported-by: Arnd