[PATCH 1/2] Reduce vdpa initialization / startup overhead

2023-04-18 Thread peili . dev
From: Pei Li Currently, part of the vdpa initialization / startup process needs to trigger many ioctls per vq, which is very inefficient and causing unnecessary context switch between user mode and kernel mode. This patch creates an additional ioctl() command, namely VHOST_VDPA_GET_VRING_GROUP_B

[PATCH 2/2] Reduce vdpa initialization / startup overhead

2023-04-18 Thread peili . dev
From: Pei Li Currently, part of the vdpa initialization / startup process needs to trigger many ioctls per vq, which is very inefficient and causing unnecessary context switch between user mode and kernel mode. This patch creates an additional ioctl() command, namely VHOST_VDPA_SET_VRING_ENABLE_