Skip to contentSkip to conversation

vhost: stop device before updating public vring data

PATCH NAK Tomasz Kulasek 3 participants 6 messages Mar 5, 2018 – Mar 7, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vhost: stop device before updating public vring data

For now DPDK assumes that callfd, kickfd and last_idx are being set just once during vring initialization and device cannot be running while DPDK receives SET_VRING_KICK, SET_VRING_CALL and SET_VRING_BASE messages. However, that assumption is wrong. For Vhost SCSI messages might arrive at any point of time, possibly multiple times, one after another.

QEMU issues SET_VRING_CALL once during device initialization, then again during device start. The second message will close previous callfd, which is still being used by the user-implementation of vhost device. This results in writing to invalid (closed) callfd.

Other messages like SET_FEATURES, SET_VRING_ADDR etc also will change internal state of VQ or device. To prevent race condition device should also be stopped before updateing vring data.

---
 lib/librte_vhost/vhost_user.c | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
lib/librte_vhost/vhost_user.c +40 -0
index 65ee33919..3895e6edd 100644
@@ -172,6 +172,10 @@ vhost_user_set_features(struct virtio_net *dev, uint64_t features)
 
 		if (dev->notify_ops->features_changed)
 			dev->notify_ops->features_changed(dev->vid, features);
+		else {
+			dev->flags &= ~VIRTIO_DEV_RUNNING;
+			dev->notify_ops->destroy_device(dev->vid);
+		}
 	}
 
 	dev->features = features;
@@ -487,6 +491,12 @@ vhost_user_set_vring_addr(struct virtio_net **pdev, VhostUserMsg *msg)
 	if (dev->mem == NULL)
 		return -1;
 
+	/* Remove from the data plane. */
+	if (dev->flags & VIRTIO_DEV_RUNNING) {
+		dev->flags &= ~VIRTIO_DEV_RUNNING;
+		dev->notify_ops->destroy_device(dev->vid);
+	}
+
 	/* addr->index refers to the queue index. The txq 1, rxq is 0. */
 	vq = dev->virtqueue[msg->payload.addr.index];
 
@@ -517,6 +527,12 @@ static int
 vhost_user_set_vring_base(struct virtio_net *dev,
 			  VhostUserMsg *msg)
 {
+	/* Remove from the data plane. */
+	if (dev->flags & VIRTIO_DEV_RUNNING) {
+		dev->flags &= ~VIRTIO_DEV_RUNNING;
+		dev->notify_ops->destroy_device(dev->vid);
+	}
+
 	dev->virtqueue[msg->payload.state.index]->last_used_idx  =
 			msg->payload.state.num;
 	dev->virtqueue[msg->payload.state.index]->last_avail_idx =
@@ -796,6 +812,12 @@ vhost_user_set_vring_call(struct virtio_net *dev, struct VhostUserMsg *pmsg)
 	struct vhost_vring_file file;
 	struct vhost_virtqueue *vq;
 
+	/* Remove from the data plane. */
+	if (dev->flags & VIRTIO_DEV_RUNNING) {
+		dev->flags &= ~VIRTIO_DEV_RUNNING;
+		dev->notify_ops->destroy_device(dev->vid);
+	}
+
 	file.index = pmsg->payload.u64 & VHOST_USER_VRING_IDX_MASK;
 	if (pmsg->payload.u64 & VHOST_USER_VRING_NOFD_MASK)
 		file.fd = VIRTIO_INVALID_EVENTFD;
@@ -818,6 +840,12 @@ vhost_user_set_vring_kick(struct virtio_net **pdev, struct VhostUserMsg *pmsg)
 	struct vhost_virtqueue *vq;
 	struct virtio_net *dev = *pdev;
 
+	/* Remove from the data plane. */
+	if (dev->flags & VIRTIO_DEV_RUNNING) {
+		dev->flags &= ~VIRTIO_DEV_RUNNING;
+		dev->notify_ops->destroy_device(dev->vid);
+	}
+
 	file.index = pmsg->payload.u64 & VHOST_USER_VRING_IDX_MASK;
 	if (pmsg->payload.u64 & VHOST_USER_VRING_NOFD_MASK)
 		file.fd = VIRTIO_INVALID_EVENTFD;
@@ -959,6 +987,12 @@ vhost_user_set_protocol_features(struct virtio_net *dev,
 	if (protocol_features & ~VHOST_USER_PROTOCOL_FEATURES)
 		return;
 
+	/* Remove from the data plane. */
+	if (dev->flags & VIRTIO_DEV_RUNNING) {
+		dev->flags &= ~VIRTIO_DEV_RUNNING;
+		dev->notify_ops->destroy_device(dev->vid);
+	}
+
 	dev->protocol_features = protocol_features;
 }
 
@@ -981,6 +1015,12 @@ vhost_user_set_log_base(struct virtio_net *dev, struct VhostUserMsg *msg)
 		return -1;
 	}
 
+	/* Remove from the data plane. */
+	if (dev->flags & VIRTIO_DEV_RUNNING) {
+		dev->flags &= ~VIRTIO_DEV_RUNNING;
+		dev->notify_ops->destroy_device(dev->vid);
+	}
+
 	size = msg->payload.log.mmap_size;
 	off  = msg->payload.log.mmap_offset;
 	RTE_LOG(INFO, VHOST_CONFIG,
Signature · 1 line
2.14.1
#1 lore raw

Hi Tomasz,

Quoted 15 lines · Tomasz Kulasek

For now DPDK assumes that callfd, kickfd and last_idx are being set just once during vring initialization and device cannot be running while DPDK receives SET_VRING_KICK, SET_VRING_CALL and SET_VRING_BASE messages. However, that assumption is wrong. For Vhost SCSI messages might arrive at any point of time, possibly multiple times, one after another.

QEMU issues SET_VRING_CALL once during device initialization, then again during device start. The second message will close previous callfd, which is still being used by the user-implementation of vhost device. This results in writing to invalid (closed) callfd.

Other messages like SET_FEATURES, SET_VRING_ADDR etc also will change internal state of VQ or device. To prevent race condition device should also be stopped before updateing vring data.

Quoted 6 lines
---
  lib/librte_vhost/vhost_user.c | 40 ++++++++++++++++++++++++++++++++++++++++
  1 file changed, 40 insertions(+)

In last release, we have introduced a per-virtqueue lock to protect vring handling against asynchronous device changes.

I think that would solve the issue you are facing, but you would need to export the VQs locking functions to the vhost-user lib API to be able to use it.

I don't think your current patch is the right solution anyway, because it destroys the device in case we don't want it to remain alive, like set_log_base, or set_features when only the logging feature gets enabled.

Cheers,
Maxime

#2 lore raw
Quoted 40 lines

-----Original Message-----
From: Maxime Coquelin [mailto:[email protected]]
Sent: Tuesday, March 6, 2018 5:27 PM
To: Kulasek, TomaszX <[email protected]>; [email protected]
Cc: Verkamp, Daniel <[email protected]>; Harris, James R <[email protected]>; Wodkowski, PawelX <[email protected]>; [email protected]; Stojaczyk, DariuszX <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] vhost: stop device before updating public vring data

Hi Tomasz,

Quoted 15 lines · Tomasz Kulasek

For now DPDK assumes that callfd, kickfd and last_idx are being set just once during vring initialization and device cannot be running while DPDK receives SET_VRING_KICK, SET_VRING_CALL and SET_VRING_BASE messages. However, that assumption is wrong. For Vhost SCSI messages might arrive at any point of time, possibly multiple times, one after another.

QEMU issues SET_VRING_CALL once during device initialization, then again during device start. The second message will close previous callfd, which is still being used by the user-implementation of vhost device. This results in writing to invalid (closed) callfd.

Other messages like SET_FEATURES, SET_VRING_ADDR etc also will change internal state of VQ or device. To prevent race condition device should also be stopped before updateing vring data.

Quoted 5 lines
---
  lib/librte_vhost/vhost_user.c | 40

++++++++++++++++++++++++++++++++++++++++

Quoted 1 line
  1 file changed, 40 insertions(+)

In last release, we have introduced a per-virtqueue lock to protect vring handling against asynchronous device changes.

Quoted 8 lines

I think that would solve the issue you are facing, but you would need to export the VQs locking functions to the vhost-user lib API to be able to use it.

I don't think your current patch is the right solution anyway, because it destroys the device in case we don't want it to remain alive, like set_log_base, or set_features when only the logging feature gets enabled.

Please correct me if I can't see something obvious, but how this lock protect against eg SET_MEM_TABLE message? Current flow you are thinking of is:

DPDK vhost-user thread
1.1. vhost_user_lock_all_queue_pairs()
1.2. vhost_user_set_mem_table()
1.3. vhost_user_unlock_all_queue_pairs()

BACKEND: virito-net:
2.1. rte_spinlock_lock(&vq->access_lock);
2.2. Process vrings and copy all data
2.3. rte_spinlock_unlock(&vq->access_lock);

Yes, it will synchronize access to virtio_net structure but what if the BACKEND is in zero copy mode and/or pass buffers to physical device? The request will not end in 2.2 and you unmap the memory regions in the middle of request. Even worse, the physical device will just abort the request but BACKEND can segfault or write random memory because BACKEND try to use invalid memory address (retrieved at request start).

To use this per-virtqueue lock:
1. the lock need to be held from request start to the end - but this can starve DPDK vhost-user thread as there might be many request on-the-fly and when one is done the new one might be started.
2. Becouse we don't know if something changed between requst start and request end BACKEND need walk through all descriptors chain at the request end and do the rte_vhost_gpa_to_vva() again.

The SET_MEM_TABLE is most obvious message but the same is true for other like VHOST_IOTLB_INVALIDATE or SET_FEATURES.

Pawel

Quoted 3 lines

Cheers,
Maxime

#3 lore raw
Quoted 62 lines · PawelX
Quoted 40 lines

-----Original Message-----
From: Maxime Coquelin [mailto:[email protected]]
Sent: Tuesday, March 6, 2018 5:27 PM
To: Kulasek, TomaszX <[email protected]>; [email protected]
Cc: Verkamp, Daniel <[email protected]>; Harris, James R <[email protected]>; Wodkowski, PawelX <[email protected]>; [email protected]; Stojaczyk, DariuszX <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] vhost: stop device before updating public vring data

Hi Tomasz,

Quoted 15 lines · Tomasz Kulasek

For now DPDK assumes that callfd, kickfd and last_idx are being set just once during vring initialization and device cannot be running while DPDK receives SET_VRING_KICK, SET_VRING_CALL and SET_VRING_BASE messages. However, that assumption is wrong. For Vhost SCSI messages might arrive at any point of time, possibly multiple times, one after another.

QEMU issues SET_VRING_CALL once during device initialization, then again during device start. The second message will close previous callfd, which is still being used by the user-implementation of vhost device. This results in writing to invalid (closed) callfd.

Other messages like SET_FEATURES, SET_VRING_ADDR etc also will change internal state of VQ or device. To prevent race condition device should also be stopped before updateing vring data.

Quoted 5 lines
---
   lib/librte_vhost/vhost_user.c | 40

++++++++++++++++++++++++++++++++++++++++

Quoted 1 line
   1 file changed, 40 insertions(+)

In last release, we have introduced a per-virtqueue lock to protect vring handling against asynchronous device changes.

Quoted 8 lines

I think that would solve the issue you are facing, but you would need to export the VQs locking functions to the vhost-user lib API to be able to use it.

I don't think your current patch is the right solution anyway, because it destroys the device in case we don't want it to remain alive, like set_log_base, or set_features when only the logging feature gets enabled.

Please correct me if I can't see something obvious, but how this lock protect against eg SET_MEM_TABLE message? Current flow you are thinking of is:

DPDK vhost-user thread
1.1. vhost_user_lock_all_queue_pairs()
1.2. vhost_user_set_mem_table()
1.3. vhost_user_unlock_all_queue_pairs()

BACKEND: virito-net:
2.1. rte_spinlock_lock(&vq->access_lock);
2.2. Process vrings and copy all data
2.3. rte_spinlock_unlock(&vq->access_lock);

Quoted 6 lines

Yes, it will synchronize access to virtio_net structure but what if the BACKEND is in zero copy mode and/or pass buffers to physical device? The request will not end in 2.2 and you unmap the memory regions in the middle of request. Even worse, the physical device will just abort the request but BACKEND can segfault or write random memory because BACKEND try to use invalid memory address (retrieved at request start).

Right, it doesn't work with zero-copy.

Quoted 10 lines

To use this per-virtqueue lock:
1. the lock need to be held from request start to the end - but this can starve DPDK vhost-user thread as there might be many request on-the-fly and when one is done the new one might be started.
2. Becouse we don't know if something changed between requst start and request end BACKEND need walk through all descriptors chain at the request end and do the rte_vhost_gpa_to_vva() again.

The SET_MEM_TABLE is most obvious message but the same is true for other like VHOST_IOTLB_INVALIDATE or SET_FEATURES.

SET_FEATURE should never be sent as soon as the device is started, except to enable logging.

For VHOST_IOTLB_INVALIDATE, the solution might be to have a ref counter per entry, and to only remove it for the cache once it is zero and send the reply-ack tothe master once this is done. But the cost would be huge as with large entries, a lot of threads might increment/decrement the same variable so there will be contention.

For all other cases, like SET_MEM_TABLE, maybe the solution is to disable/enable all the queues using the existing ops.
The application or library would have to take care that no guest buffers are in the wild before returning from the disable.

Do you think that would work?

Cheers,
Maxime

Quoted 5 lines

Pawel

Quoted 3 lines

Cheers,
Maxime

#4 lore raw
Quoted 117 lines

-----Original Message-----
From: Maxime Coquelin [mailto:[email protected]]
Sent: Wednesday, March 7, 2018 11:09 AM
To: Wodkowski, PawelX <[email protected]>; Kulasek, TomaszX <[email protected]>; [email protected]
Cc: Verkamp, Daniel <[email protected]>; Harris, James R <[email protected]>; [email protected]; Stojaczyk, DariuszX <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] vhost: stop device before updating public vring data

Quoted 9 lines · PawelX
Quoted 9 lines

-----Original Message-----
From: Maxime Coquelin [mailto:[email protected]]
Sent: Tuesday, March 6, 2018 5:27 PM
To: Kulasek, TomaszX <[email protected]>; [email protected]
Cc: Verkamp, Daniel <[email protected]>; Harris, James R <[email protected]>; Wodkowski, PawelX <[email protected]>; [email protected]; Stojaczyk, DariuszX <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] vhost: stop device before updating public

vring

Quoted 8 lines
Quoted 8 lines

data

Hi Tomasz,

Quoted 3 lines · Tomasz Kulasek

For now DPDK assumes that callfd, kickfd and last_idx are being set just once during vring initialization and device cannot be running while DPDK receives SET_VRING_KICK, SET_VRING_CALL and SET_VRING_BASE

messages.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

However, that assumption is wrong. For Vhost SCSI messages might arrive at any point of time, possibly multiple times, one after another.

QEMU issues SET_VRING_CALL once during device initialization, then again during device start. The second message will close previous callfd, which is still being used by the user-implementation of vhost device. This results in writing to invalid (closed) callfd.

Other messages like SET_FEATURES, SET_VRING_ADDR etc also will

change

Quoted 18 lines
Quoted 18 lines
Quoted 8 lines

internal state of VQ or device. To prevent race condition device should also be stopped before updateing vring data.

---
   lib/librte_vhost/vhost_user.c | 40

++++++++++++++++++++++++++++++++++++++++

Quoted 1 line
   1 file changed, 40 insertions(+)

In last release, we have introduced a per-virtqueue lock to protect vring handling against asynchronous device changes.

I think that would solve the issue you are facing, but you would need to export the VQs locking functions to the vhost-user lib API to be able to use it.

Quoted 6 lines
Quoted 4 lines

I don't think your current patch is the right solution anyway, because it destroys the device in case we don't want it to remain alive, like set_log_base, or set_features when only the logging feature gets enabled.

Please correct me if I can't see something obvious, but how this lock protect

against eg

Quoted 7 lines

SET_MEM_TABLE message? Current flow you are thinking of is:

DPDK vhost-user thread
1.1. vhost_user_lock_all_queue_pairs()
1.2. vhost_user_set_mem_table()
1.3. vhost_user_unlock_all_queue_pairs()

Quoted 6 lines

BACKEND: virito-net:
2.1. rte_spinlock_lock(&vq->access_lock);
2.2. Process vrings and copy all data
2.3. rte_spinlock_unlock(&vq->access_lock);

Yes, it will synchronize access to virtio_net structure but what if the BACKEND

is in

Quoted 3 lines

zero copy mode and/or pass buffers to physical device? The request will not end in 2.2 and you unmap the memory regions in the middle of request. Even worse, the physical device will just abort the request but BACKEND can

segfault

Quoted 1 line

or write random memory because BACKEND try to use invalid memory

address

Quoted 1 line

(retrieved at request start).

Right, it doesn't work with zero-copy.

Quoted 2 lines

To use this per-virtqueue lock:
1. the lock need to be held from request start to the end - but this can starve

DPDK

Quoted 1 line

vhost-user thread as there might be many request on-the-fly and when one is

done

Quoted 2 lines

the new one might be started.
2. Becouse we don't know if something changed between requst start and

request end

Quoted 1 line

BACKEND need walk through all descriptors chain at the request end and do

the

Quoted 3 lines

rte_vhost_gpa_to_vva() again.

The SET_MEM_TABLE is most obvious message but the same is true for other

like

Quoted 1 line

VHOST_IOTLB_INVALIDATE or SET_FEATURES.

SET_FEATURE should never be sent as soon as the device is started, except to enable logging.

For VHOST_IOTLB_INVALIDATE, the solution might be to have a ref counter per entry, and to only remove it for the cache once it is zero and send the reply-ack tothe master once this is done. But the cost would be huge as with large entries, a lot of threads might increment/decrement the same variable so there will be contention.

Quoted 6 lines

For all other cases, like SET_MEM_TABLE, maybe the solution is to disable/enable all the queues using the existing ops.
The application or library would have to take care that no guest buffers are in the wild before returning from the disable.

Do you think that would work?

What kind of ops can be used to reliably disable all queues and inform backend what changed beside new_device/destroy_device? Those informations are very well hidden inside vhost.c and vhost-user.c files.

I think we need new set of ops/callbacks in vhost_device_ops struct that let the backend decide how to behave in response on certain messages like SET_MEM_TABLE.

Also I would propose to revert the a3688046995f "vhost: protect active rings from async ring changes" and replace it by behavior of this patch. I see now that this patch need to handle other cases like VHOST_USER_IOTLB_MSG but until we have new set of callbacks I think this is only reliable and fast solution.

Pawel

Quoted 9 lines

Cheers,
Maxime

Quoted 5 lines

Pawel

Quoted 3 lines

Cheers,
Maxime

#5 lore raw
Quoted 122 lines · PawelX
Quoted 122 lines

-----Original Message-----
From: Maxime Coquelin [mailto:[email protected]]
Sent: Wednesday, March 7, 2018 11:09 AM
To: Wodkowski, PawelX <[email protected]>; Kulasek, TomaszX <[email protected]>; [email protected]
Cc: Verkamp, Daniel <[email protected]>; Harris, James R <[email protected]>; [email protected]; Stojaczyk, DariuszX <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] vhost: stop device before updating public vring data

Quoted 9 lines · PawelX
Quoted 9 lines

-----Original Message-----
From: Maxime Coquelin [mailto:[email protected]]
Sent: Tuesday, March 6, 2018 5:27 PM
To: Kulasek, TomaszX <[email protected]>; [email protected]
Cc: Verkamp, Daniel <[email protected]>; Harris, James R <[email protected]>; Wodkowski, PawelX <[email protected]>; [email protected]; Stojaczyk, DariuszX <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] vhost: stop device before updating public

vring

Quoted 8 lines
Quoted 8 lines

data

Hi Tomasz,

Quoted 3 lines · Tomasz Kulasek

For now DPDK assumes that callfd, kickfd and last_idx are being set just once during vring initialization and device cannot be running while DPDK receives SET_VRING_KICK, SET_VRING_CALL and SET_VRING_BASE

messages.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

However, that assumption is wrong. For Vhost SCSI messages might arrive at any point of time, possibly multiple times, one after another.

QEMU issues SET_VRING_CALL once during device initialization, then again during device start. The second message will close previous callfd, which is still being used by the user-implementation of vhost device. This results in writing to invalid (closed) callfd.

Other messages like SET_FEATURES, SET_VRING_ADDR etc also will

change

Quoted 18 lines
Quoted 18 lines
Quoted 8 lines

internal state of VQ or device. To prevent race condition device should also be stopped before updateing vring data.

---
    lib/librte_vhost/vhost_user.c | 40

++++++++++++++++++++++++++++++++++++++++

Quoted 1 line
    1 file changed, 40 insertions(+)

In last release, we have introduced a per-virtqueue lock to protect vring handling against asynchronous device changes.

I think that would solve the issue you are facing, but you would need to export the VQs locking functions to the vhost-user lib API to be able to use it.

Quoted 6 lines
Quoted 4 lines

I don't think your current patch is the right solution anyway, because it destroys the device in case we don't want it to remain alive, like set_log_base, or set_features when only the logging feature gets enabled.

Please correct me if I can't see something obvious, but how this lock protect

against eg

Quoted 7 lines

SET_MEM_TABLE message? Current flow you are thinking of is:

DPDK vhost-user thread
1.1. vhost_user_lock_all_queue_pairs()
1.2. vhost_user_set_mem_table()
1.3. vhost_user_unlock_all_queue_pairs()

Quoted 6 lines

BACKEND: virito-net:
2.1. rte_spinlock_lock(&vq->access_lock);
2.2. Process vrings and copy all data
2.3. rte_spinlock_unlock(&vq->access_lock);

Yes, it will synchronize access to virtio_net structure but what if the BACKEND

is in

Quoted 3 lines

zero copy mode and/or pass buffers to physical device? The request will not end in 2.2 and you unmap the memory regions in the middle of request. Even worse, the physical device will just abort the request but BACKEND can

segfault

Quoted 1 line

or write random memory because BACKEND try to use invalid memory

address

Quoted 1 line

(retrieved at request start).

Right, it doesn't work with zero-copy.

Quoted 2 lines

To use this per-virtqueue lock:
1. the lock need to be held from request start to the end - but this can starve

DPDK

Quoted 1 line

vhost-user thread as there might be many request on-the-fly and when one is

done

Quoted 2 lines

the new one might be started.
2. Becouse we don't know if something changed between requst start and

request end

Quoted 1 line

BACKEND need walk through all descriptors chain at the request end and do

the

Quoted 3 lines

rte_vhost_gpa_to_vva() again.

The SET_MEM_TABLE is most obvious message but the same is true for other

like

Quoted 1 line

VHOST_IOTLB_INVALIDATE or SET_FEATURES.

SET_FEATURE should never be sent as soon as the device is started, except to enable logging.

For VHOST_IOTLB_INVALIDATE, the solution might be to have a ref counter per entry, and to only remove it for the cache once it is zero and send the reply-ack tothe master once this is done. But the cost would be huge as with large entries, a lot of threads might increment/decrement the same variable so there will be contention.

For all other cases, like SET_MEM_TABLE, maybe the solution is to disable/enable all the queues using the existing ops.
The application or library would have to take care that no guest buffers are in the wild before returning from the disable.

Quoted 5 lines
Quoted 1 line

Do you think that would work?

What kind of ops can be used to reliably disable all queues and inform backend what changed beside new_device/destroy_device? Those informations are very well hidden inside vhost.c and vhost-user.c files.

(struct vhost_device_ops).vring_state_changed()

When a queue is disabled, I think we can expect the application won't use its resources anymore.

Quoted 3 lines

I think we need new set of ops/callbacks in vhost_device_ops struct that let the backend decide how to behave in response on certain messages like SET_MEM_TABLE.

Yes, we can think of extending the API with new ops if vring_state_change is not enough.

Quoted 4 lines

Also I would propose to revert the a3688046995f "vhost: protect active rings from async ring changes" and replace it by behavior of this patch. I see now that this patch need to handle other cases like VHOST_USER_IOTLB_MSG but until we have new set of callbacks I think this is only reliable and fast solution.

Nack, we won't destroy the device every time we receive a vhost-user request.

And for reverting the patch you propose, it won't happen as long as we don't have a viable alternative, and as long as the applications like OVS won't use it.

This patch fixes real issues faced by the user, like live migration with multiple queues or memory hotplug. The problem is that it does not take zero-copy case into account.

Maxime

Quoted 11 lines

Pawel

Quoted 9 lines

Cheers,
Maxime

Quoted 5 lines

Pawel

Quoted 3 lines

Cheers,
Maxime