diff options
author | Jason Wang <jasowang@redhat.com> | 2020-03-26 22:01:18 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-04-01 12:06:26 -0400 |
commit | 792a4f2ed24fcdf0a1956e84fe2a71ada318ba7c (patch) | |
tree | 2e6c428495030f0118f14468fc2cdf7f6e649b29 /drivers/vhost/vsock.c | |
parent | 20c384f1ea1a0bc7320bc445c72dd02d2970d594 (diff) | |
download | linux-stable-792a4f2ed24fcdf0a1956e84fe2a71ada318ba7c.tar.gz linux-stable-792a4f2ed24fcdf0a1956e84fe2a71ada318ba7c.tar.bz2 linux-stable-792a4f2ed24fcdf0a1956e84fe2a71ada318ba7c.zip |
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>
Diffstat (limited to 'drivers/vhost/vsock.c')
-rw-r--r-- | drivers/vhost/vsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c index c2d7d57e98cf..97669484a3f6 100644 --- a/drivers/vhost/vsock.c +++ b/drivers/vhost/vsock.c @@ -621,7 +621,7 @@ static int vhost_vsock_dev_open(struct inode *inode, struct file *file) vhost_dev_init(&vsock->dev, vqs, ARRAY_SIZE(vsock->vqs), UIO_MAXIOV, VHOST_VSOCK_PKT_WEIGHT, - VHOST_VSOCK_WEIGHT); + VHOST_VSOCK_WEIGHT, NULL); file->private_data = vsock; spin_lock_init(&vsock->send_pkt_list_lock); |