vhost: allow per device message handler
authorJason Wang <jasowang@redhat.com>
Thu, 26 Mar 2020 14:01:18 +0000 (22:01 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Apr 2020 16:06:26 +0000 (12:06 -0400)
commit792a4f2ed24fcdf0a1956e84fe2a71ada318ba7c
tree2e6c428495030f0118f14468fc2cdf7f6e649b29
parent20c384f1ea1a0bc7320bc445c72dd02d2970d594
vhost: allow per device message handler

This patch allow device to register its own message handler during
vhost_dev_init(). vDPA device will use it to implement its own DMA
mapping logic.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200326140125.19794-3-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c
drivers/vhost/scsi.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h
drivers/vhost/vsock.c