From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E65BAA04AB for ; Wed, 6 Nov 2019 14:44:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B1FA81C1B1; Wed, 6 Nov 2019 14:44:36 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id A663D1C1B1 for ; Wed, 6 Nov 2019 14:44:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573047875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A2H5Nhy1tat/9odpcUENN80ao6zWKRqcrtcZ1mJVJEs=; b=Jnwm4oxfFF/GbhMrNVwF1akjDPGEXAwtt7P6l9f0DpvCXSuG8yxykBrBqa2UJtbMIxzphX IsZe57RuFPSz9ERWvwQLmVbet5QEhInD8u61AgTaK0WI2cNeqG8L/yO4vuYAQwE+B3eGC3 cT1r6dE6eb0sW7VvaqcY/LZEpIvPkSg= Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-373-_bEOoMC4MviLO5vQkhn6dQ-1; Wed, 06 Nov 2019 08:44:32 -0500 Received: by mail-vk1-f200.google.com with SMTP id v188so5837982vkv.18 for ; Wed, 06 Nov 2019 05:44:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vfuBTA9oz0NJ9ytVu4sM9xqx+PIyGvPhuPpHp6rZorE=; b=VabrBQqUAF0g468UymdYtCqBhD6U9H6OK6G5xXwdOarHjKOpPJyTbE5TIZII7C8bim WL4BBhLrn51sNz1YNk6D9jxN3DEDWD21f18yhjLrtuoC167x9KkuKBqYbovZv9sqGuMI dTglD+mnt9+mw5fz3LyaYbET4MNNCpy/OvNdm1II1kmBEcxG26/jzNr1YVFk1dpCGXVE k6P3ga3Nt9rRMWE87i8xmkd6Ru3Zke3SgnVFSQNTNug4wJ+qtMnNwijCsPleRhSshZJW C6/EfvZBSsx4iWO0LxtnkUcLMpnGpleMQrJCGAWd+3vu19bHH6e/Br/HF2TwPX14M09M BK1A== X-Gm-Message-State: APjAAAUGzwM0AvB/DvWpapyXbTbVpJI2CIgouMbwFbtdkWNWZX+Z5MAZ DVDLx1sMSI/A7+oBNPFwEikM8zwuCiYGxWM0hxhmdpBERX9bCa2Ym3t+9Nv2l8PecsTjMQjIlxA 0U7JRuFdfMit6cAOI5ctNYFI= X-Received: by 2002:ab0:2716:: with SMTP id s22mr1264880uao.86.1573047871043; Wed, 06 Nov 2019 05:44:31 -0800 (PST) X-Google-Smtp-Source: APXvYqw3b1PP9A3Rg6ibiZ7pgh+n+TsOGDzowkWoYgsuw02Lf/6B2KXrOjcGV/+X7oUJ494qWQxEM6KxLw1EPoqkYVY= X-Received: by 2002:ab0:2716:: with SMTP id s22mr1264860uao.86.1573047870662; Wed, 06 Nov 2019 05:44:30 -0800 (PST) MIME-Version: 1.0 References: <9bfc4c6d563f29ca4ef5cca80e650928e51e5514.1572889140.git.anatoly.burakov@intel.com> In-Reply-To: From: David Marchand Date: Wed, 6 Nov 2019 14:44:19 +0100 Message-ID: To: Anatoly Burakov , Shahaf Shuler Cc: dev , "Damjan Marion (damarion)" , Thomas Monjalon , Dariusz Stojaczyk , dpdk stable X-MC-Unique: _bEOoMC4MviLO5vQkhn6dQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [PATCH] vfio: fix getting default container X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Mon, Nov 4, 2019 at 8:35 PM David Marchand w= rote: > > On Mon, Nov 4, 2019 at 6:41 PM Anatoly Burakov > 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@dpdk.org > > Signed-off-by: Anatoly Burakov > Reviewed-by: David Marchand Acked-by: Shahaf Shuler Applied with title "vfio: fix DMA mapping with default container" as discussed on irc. Thanks. -- David Marchand