vdpa_sim: set vringh notify callback
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 15 Dec 2020 14:42:52 +0000 (15:42 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Dec 2020 21:14:29 +0000 (16:14 -0500)
commitb240491b7a48028fb67e5377ffd1be21e9260c4e
tree5bd3e9f014756d0688a9fdcb7961334fbf89914c
parentc124a95e304bc5d37144e2fff6e52bb904d41810
vdpa_sim: set vringh notify callback

Instead of calling the vq callback directly, we can leverage the
vringh_notify() function, adding vdpasim_vq_notify() and setting it
in the vringh notify callback.

Suggested-by: Jason Wang <jasowang@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20201215144256.155342-15-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim.c