[dpdk-dev] [PATCH 2/3] vhost: fix vring addr handling during live migration

Maxime Coquelin maxime.coquelin at redhat.com
Fri Sep 27 09:54:39 CEST 2019



On 8/19/19 1:34 PM, Tiwei Bie wrote:
> When live migration starts, QEMU will set ring addrs again for
> each virtqueue. In this case, we should try to translate ring
> addrs after we invalidating the ring, otherwise virtqueues can
> be enabled with the addrs untranslated. Besides, also leverage
> the access_ok flag in non-IOMMU case to prevent the data path
> accessing invalidated virtqueues.
> 
> Fixes: 5a4933e56be4 ("vhost: postpone ring address translations at kick time only")
> Cc: stable at dpdk.org
> 
> Reported-by: Yilong Lv <lvyilong.lyl at alibaba-inc.com>
> Signed-off-by: Tiwei Bie <tiwei.bie at intel.com>
> ---
>  lib/librte_vhost/vhost.c      |  3 +--
>  lib/librte_vhost/vhost_user.c | 12 ++++++++++--
>  2 files changed, 11 insertions(+), 4 deletions(-)
> 


Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list