| 2cbe826e | 26-Oct-2021 |
Maxime Coquelin <[email protected]> |
vhost: remove notion of async descriptor
Now that IO vectors iterator have been simplified, the rte_vhost_async_desc struct only contains a pointer on the iterator array stored in the async metadata
vhost: remove notion of async descriptor
Now that IO vectors iterator have been simplified, the rte_vhost_async_desc struct only contains a pointer on the iterator array stored in the async metadata.
This patch removes it, and pass directly the iterators array pointer to the transfer_data callback. Doing that, we avoid declaring the descriptor array in the stack, and also avoid the cost of filling it.
Signed-off-by: Maxime Coquelin <[email protected]> Reviewed-by: Jiayu Hu <[email protected]>
show more ...
|
| 0af9f992 | 26-Oct-2021 |
Maxime Coquelin <[email protected]> |
vhost: remove useless fields in async iterator struct
Offset and count fields are unused and so can be removed. The offset field was actually in the Vhost example, but in a way that does not make se
vhost: remove useless fields in async iterator struct
Offset and count fields are unused and so can be removed. The offset field was actually in the Vhost example, but in a way that does not make sense.
Signed-off-by: Maxime Coquelin <[email protected]> Reviewed-by: Chenbo Xia <[email protected]> Reviewed-by: Jiayu Hu <[email protected]>
show more ...
|
| b9f23bee | 23-Jul-2021 |
Cheng Jiang <[email protected]> |
examples/vhost: handle memory hotplug for async vhost
When the guest memory is hotplugged, the vhost application which enables DMA acceleration must stop DMA transfers before the vhost re-maps the g
examples/vhost: handle memory hotplug for async vhost
When the guest memory is hotplugged, the vhost application which enables DMA acceleration must stop DMA transfers before the vhost re-maps the guest memory.
To accomplish that, we need to do these changes in the vhost sample: 1. add inflight packets count. 2. add vring_state_changed() callback. 3. add inflight packets clear process in destroy_device() and vring_state_changed().
Signed-off-by: Cheng Jiang <[email protected]> Reviewed-by: Maxime Coquelin <[email protected]>
show more ...
|