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 8A0CDA04AB; Wed, 6 Nov 2019 14:44:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E77A31C1B7; Wed, 6 Nov 2019 14:44:36 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id D43851C1B3 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-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-8-Q9nocw5sMeSGvEuIOL0PxQ-1; Wed, 06 Nov 2019 08:44:32 -0500 Received: by mail-vk1-f197.google.com with SMTP id x1so10726961vkc.19 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=PWca+tRNDhlDjRaIw+amjWYMQsrDvd3WVplSz3r+VnDgeM1Jxinuo5THSmNPg64m2s O4KlsFCu3z0JflUOz+P4r+x6Efw5/MhpHO8/LCCqmZJrT9Rza6XTZnIlamrbIbmxCNx2 +n8mJI0FE9IMqXRo3vRHawFjiEKo6zkleXiZ6W6aLfF8IwcVUoU/YvLG9aj1YsXKmBDy PjI8hOmx3ZrqXZ51Os4eaBnkWKnLzBPenSZthvbVpCffrM7SHHXTdGXTPwWTfp/cjUdj haUoufx+yvvvTPwgPKZz75ge63BGWNNJL7P83urHk5wHpBeHgn9e+GSr+7N2+u+AC1J1 JXXw== X-Gm-Message-State: APjAAAVS43ZcIEDz27V5LZkA87v2jFlM8jYNiN/mjdFwL/EqFRDogX7Y igxWDPP183bzAUtwqaglTZ6dpXviNv/bJ/H2Nq0xpAhepzYtlCgQoCUae94YqdihK/zhnuckbMA oqxgxglJt/GHfORqaEdE= X-Received: by 2002:ab0:2716:: with SMTP id s22mr1264877uao.86.1573047871042; 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: Q9nocw5sMeSGvEuIOL0PxQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH] vfio: fix getting default container X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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