Is there any possibility that different queue has different memory
translation?
How about we use the memory region of the first queue discovered?


On 5/21/2015 3:50 PM, Ouyang Changchun wrote:
> QEMU sends separate commands orderly to set the memory layout for each queue
> in one virtio device, accordingly vhost need keep memory layout information
> for each queue of the virtio device.
>
> This also need adjust the interface a bit for function gpa_to_vva by
> introducing the queue index to specify queue of device to look up its
> virtual vhost address for the incoming guest physical address.
>
> Signed-off-by: Changchun Ouyang <changchun.ouyang at intel.com>
> ---
>  examples/vhost/main.c                         | 21 +++++-----
>  lib/librte_vhost/rte_virtio_net.h             | 10 +++--
>  lib/librte_vhost/vhost_cuse/virtio-net-cdev.c | 57 ++++++++++++++------------
>  lib/librte_vhost/vhost_rxtx.c                 | 21 +++++-----
>  lib/librte_vhost/vhost_user/virtio-net-user.c | 59 
> ++++++++++++++-------------
>  lib/librte_vhost/virtio-net.c                 | 26 +++++++-----
>  6 files changed, 106 insertions(+), 88 deletions(-)
>
>

Reply via email to