Commit 044e4b09 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

vhost/test: fix up after API change

Pass a flag to request kernel thread use.

Fixes: 01fcb1cb ("vhost: allow device that does not depend on vhost worker")
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 544fc7db
......@@ -120,7 +120,7 @@ static int vhost_test_open(struct inode *inode, struct file *f)
vqs[VHOST_TEST_VQ] = &n->vqs[VHOST_TEST_VQ];
n->vqs[VHOST_TEST_VQ].handle_kick = handle_vq_kick;
vhost_dev_init(dev, vqs, VHOST_TEST_VQ_MAX, UIO_MAXIOV,
VHOST_TEST_PKT_WEIGHT, VHOST_TEST_WEIGHT, NULL);
VHOST_TEST_PKT_WEIGHT, VHOST_TEST_WEIGHT, true, NULL);
f->private_data = n;
......
Markdown is supported
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