Skip to content
Commit a127c5bb authored by Jason Wang's avatar Jason Wang Committed by Michael S. Tsirkin
Browse files

vhost-vdpa: fix backend feature ioctls



Commit 653055b9 ("vhost-vdpa: support get/set backend features")
introduces two malfunction backend features ioctls:

1) the ioctls was blindly added to vring ioctl instead of vdpa device
   ioctl
2) vhost_set_backend_features() was called when dev mutex has already
   been held which will lead a deadlock

This patch fixes the above issues.

Cc: Eli Cohen <elic@nvidia.com>
Reported-by: default avatarZhu Lingshan <lingshan.zhu@intel.com>
Fixes: 653055b9 ("vhost-vdpa: support get/set backend features")
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200907104343.31141-1-jasowang@redhat.com


Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 71c548c2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment