Commit 3b1f00ac authored by Linus Torvalds's avatar Linus Torvalds

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
parents 8625732e 245cdd9f
...@@ -161,6 +161,7 @@ static int vhost_test_release(struct inode *inode, struct file *f) ...@@ -161,6 +161,7 @@ static int vhost_test_release(struct inode *inode, struct file *f)
vhost_test_stop(n, &private); vhost_test_stop(n, &private);
vhost_test_flush(n); vhost_test_flush(n);
vhost_dev_stop(&n->dev);
vhost_dev_cleanup(&n->dev); vhost_dev_cleanup(&n->dev);
/* We do an extra flush before freeing memory, /* We do an extra flush before freeing memory,
* since jobs can re-queue themselves. */ * since jobs can re-queue themselves. */
...@@ -237,6 +238,7 @@ static long vhost_test_reset_owner(struct vhost_test *n) ...@@ -237,6 +238,7 @@ static long vhost_test_reset_owner(struct vhost_test *n)
} }
vhost_test_stop(n, &priv); vhost_test_stop(n, &priv);
vhost_test_flush(n); vhost_test_flush(n);
vhost_dev_stop(&n->dev);
vhost_dev_reset_owner(&n->dev, umem); vhost_dev_reset_owner(&n->dev, umem);
done: done:
mutex_unlock(&n->dev.mutex); mutex_unlock(&n->dev.mutex);
......
...@@ -29,4 +29,6 @@ enum dma_data_direction { ...@@ -29,4 +29,6 @@ enum dma_data_direction {
#define dma_unmap_single(...) do { } while (0) #define dma_unmap_single(...) do { } while (0)
#define dma_unmap_page(...) do { } while (0) #define dma_unmap_page(...) do { } while (0)
#define dma_max_mapping_size(...) SIZE_MAX
#endif #endif
#ifndef XEN_XEN_STUB_H
#define XEN_XEN_STUB_H
#define xen_domain() 0
#endif
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