[dpdk-stable] [PATCH] vfio: fix getting default container

David Marchand david.marchand at redhat.com
Wed Nov 6 14:44:19 CET 2019


On Mon, Nov 4, 2019 at 8:35 PM David Marchand <david.marchand at redhat.com> wrote:
>
> On Mon, Nov 4, 2019 at 6:41 PM Anatoly Burakov
> <anatoly.burakov at intel.com> wrote:
> >
> > When requesting DMA mapping to default container, we are meant to
> > supply the RTE_VFIO_DEFAULT_CONTAINER_FD value, however this is
> > not handled correctly by get_vfio_cfg_by_container_fd(), because
> > it only looks at actual fd values and does not check for this
> > special case.
> >
> > Fix it to return default container if the fd requested is the
> > special RTE_VFIO_DEFAULT_CONTAINER_FD value.
> >

Fixes: 4106d89a18f8 ("vfio: allow DMA map to the default container")
Cc: stable at dpdk.org

> > Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> Reviewed-by: David Marchand <david.marchand at redhat.com>
Acked-by: Shahaf Shuler <shahafs at mellanox.com>

Applied with title "vfio: fix DMA mapping with default container" as
discussed on irc.
Thanks.


--
David Marchand



More information about the stable mailing list