]> Pileus Git - ~andy/linux/blobdiff - drivers/vhost/vhost.h
vhost: fix error handling in RESET_OWNER ioctl
[~andy/linux] / drivers / vhost / vhost.h
index 3a36712e0792b33eed87766fcf0344ddbb4564be..b58f4ae82cb8e1e912f83c88eeec1e82eb950d5d 100644 (file)
@@ -102,10 +102,7 @@ struct vhost_virtqueue {
        /* hdr is used to store the virtio header.
         * Since each iovec has >= 1 byte length, we never need more than
         * header length entries to store the header. */
-       struct iovec hdr[sizeof(struct virtio_net_hdr_mrg_rxbuf)];
        struct iovec *indirect;
-       size_t vhost_hlen;
-       size_t sock_hlen;
        struct vring_used_elem *heads;
        /* We use a kind of RCU to access private pointer.
         * All readers access it from worker, which makes it possible to
@@ -139,7 +136,8 @@ struct vhost_dev {
 
 long vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue **vqs, int nvqs);
 long vhost_dev_check_owner(struct vhost_dev *);
-long vhost_dev_reset_owner(struct vhost_dev *);
+struct vhost_memory *vhost_dev_reset_owner_prepare(void);
+void vhost_dev_reset_owner(struct vhost_dev *, struct vhost_memory *);
 void vhost_dev_cleanup(struct vhost_dev *, bool locked);
 void vhost_dev_stop(struct vhost_dev *);
 long vhost_dev_ioctl(struct vhost_dev *, unsigned int ioctl, void __user *argp);