[PATCH 3/7] vdpa: Extend routine to accept vdpa device name

2020-11-11 Thread Parav Pandit
In a subsequent patch, when user initiated command creates a vdpa device, the user chooses the name of the vdpa device. To support it, extend the device allocation API to consider this name specified by the caller driver. Split the device unregistration to device delete and device put so that devi

[PATCH 6/7] vdpa: Enable user to query vdpa device info

2020-11-11 Thread Parav Pandit
Enable user to query vdpa device information. $ vdpa dev add parentdev vdpasim type net name foo2 Show the newly created vdpa device by its name: $ vdpa dev show foo2 foo2: type network parentdev vdpasim vendor_id 0 max_vqs 2 max_vq_size 256 $ vdpa dev show foo2 -jp { "dev": { "foo2"

[PATCH 4/7] vdpa: Define vdpa parent device, ops and a netlink interface

2020-11-11 Thread Parav Pandit
To add one or more VDPA devices, define a parent device which allows adding or removing vdpa device. A parent device defines set of callbacks to manage vdpa devices. To begin with, it defines add and remove callbacks through which a user defined vdpa device can be added or removed. A unique paren

[PATCH 5/7] vdpa: Enable a user to add and delete a vdpa device

2020-11-11 Thread Parav Pandit
Add the ability to add and delete a vdpa device. Examples: Create a vdpa device of type network named "foo2" from the parent device vdpasim: $ vdpa dev add parentdev vdpasim type net name foo2 Delete the vdpa device after its use: $ vdpa dev del foo2 Signed-off-by: Parav Pandit Reviewed-by: El

[PATCH 7/7] vdpa/vdpa_sim: Enable user to create vdpasim net devices

2020-11-11 Thread Parav Pandit
Enable user to create vdpasim net simulate devices. Show vdpa parent device that supports creating, deleting vdpa devices. $ vdpa parentdev show vdpasim: supported_classes net $ vdpa parentdev show -jp { "show": { "vdpasim": { "supported_classes": { "n

[PATCH 2/7] vdpa: Use simpler version of ida allocation

2020-11-11 Thread Parav Pandit
vdpa doesn't have any specific need to define start and end range of the device index. Hence use the simper version of the ida allocator. Signed-off-by: Parav Pandit Reviewed-by: Eli Cohen Acked-by: Jason Wang --- drivers/vdpa/vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 1/7] vdpa: Add missing comment for virtqueue count

2020-11-11 Thread Parav Pandit
Add missing comment for number of virtqueue. Signed-off-by: Parav Pandit Reviewed-by: Eli Cohen Acked-by: Jason Wang --- include/linux/vdpa.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h index 30bc7a7223bb..0fefeb976877 100644 --- a/include/li

[PATCH 0/7] Introduce vdpa management tool

2020-11-11 Thread Parav Pandit
This patchset covers user requirements for managing existing vdpa devices, using a tool and its internal design notes for kernel drivers. Background and user requirements: -- (1) Currently VDPA device is created by driver when driver is loaded. However, user should

WorldCIST'21, Terceira Island, Azores | Deadline: November 22

2020-11-11 Thread ML
* CORE Ranking conference * Conference with a Google Scholar H5-Index = 19 * Proceedings published by Springer, in several books of the AISC series * Indexed in Scopus, WoS, DBLP, Ei-Compendex, etc. * Extended versions of best articles published in JCR/WoS/SCI journals ---

Re: [PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type

2020-11-11 Thread Thomas Zimmermann
Hi Am 10.11.20 um 16:27 schrieb Ruhl, Michael J: > > >> -Original Message- >> From: Thomas Zimmermann >> Sent: Tuesday, November 10, 2020 8:37 AM >> To: bske...@redhat.com; airl...@linux.ie; dan...@ffwll.ch; Ruhl, Michael J >> ; christian.koe...@amd.com >> Cc: nouv...@lists.freedesktop.

Re: [PATCH] vhost_vdpa: switch to vmemdup_user()

2020-11-11 Thread Stefano Garzarella
On Wed, Nov 11, 2020 at 09:14:48AM +0800, Tian Tao wrote: Replace opencoded alloc and copy with vmemdup_user() Signed-off-by: Tian Tao --- drivers/vhost/vdpa.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) Reviewed-by: Stefano Garzarella diff --git a/drivers/vhost/vdpa.c