Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
Pull virtio fixes from Michael Tsirkin: "Some minor bugfixes" * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: vhost/test: stop device before reset tools/virtio: xen stub tools/virtio: more stubs
This commit is contained in:
@@ -161,6 +161,7 @@ static int vhost_test_release(struct inode *inode, struct file *f)
|
||||
|
||||
vhost_test_stop(n, &private);
|
||||
vhost_test_flush(n);
|
||||
vhost_dev_stop(&n->dev);
|
||||
vhost_dev_cleanup(&n->dev);
|
||||
/* We do an extra flush before freeing memory,
|
||||
* since jobs can re-queue themselves. */
|
||||
@@ -237,6 +238,7 @@ static long vhost_test_reset_owner(struct vhost_test *n)
|
||||
}
|
||||
vhost_test_stop(n, &priv);
|
||||
vhost_test_flush(n);
|
||||
vhost_dev_stop(&n->dev);
|
||||
vhost_dev_reset_owner(&n->dev, umem);
|
||||
done:
|
||||
mutex_unlock(&n->dev.mutex);
|
||||
|
||||
@@ -29,4 +29,6 @@ enum dma_data_direction {
|
||||
#define dma_unmap_single(...) do { } while (0)
|
||||
#define dma_unmap_page(...) do { } while (0)
|
||||
|
||||
#define dma_max_mapping_size(...) SIZE_MAX
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef XEN_XEN_STUB_H
|
||||
#define XEN_XEN_STUB_H
|
||||
|
||||
#define xen_domain() 0
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user