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
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"
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
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
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
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
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
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
* 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
---
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.
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
11 matches
Mail list logo