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 6707EA0589; Fri, 27 Mar 2020 11:13:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3EF721C029; Fri, 27 Mar 2020 11:13:26 +0100 (CET) Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by dpdk.org (Postfix) with ESMTP id 92EFE1BFD7 for ; Fri, 27 Mar 2020 11:13:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585304004; 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=WCw5UMd2BhzmbNcbZ8iEZ+sFtcrtvC8tI5s4OYQ2xz4=; b=dORlMSj0fJnZrZsNl7yjvoRimqtlCnu2TXTemQP6RAw8UXv8jz13bAdj+FWVgRkN3doGxY Hjh0nXWBoIZRkWn1h20CEOA5/iIkoLnatTiM2R30+c+ni6OZE44VdIg+ftBEnlqBWxU82M 5v7k9q81YsqWSgeu47NQv71d7UHXP98= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-15-1xqwRFlXNv2swYKzhg76fw-1; Fri, 27 Mar 2020 06:13:21 -0400 X-MC-Unique: 1xqwRFlXNv2swYKzhg76fw-1 Received: by mail-ua1-f70.google.com with SMTP id e17so3601414uar.2 for ; Fri, 27 Mar 2020 03:13:21 -0700 (PDT) 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=/IOVBx769Y7Z9qS4L5NIKxAmE8Mf8uYy1uFaTfurrEY=; b=DZ7qubDCpz8bDNEVxQABlZbHBS/GHSbz4nc0dTxoQqyDjqyrixrdmSsSs8FcJIJvde anYbHJ/kwvxetETu9hZJHeIozJ2YbJj7lWuoQVT6n4Ne7eUwaLVbSPO4OgadFLJQN3PY cBJtJFYuJbE0y6voNc8QorF/6DHp2vseyEMpfiIc3Q6eS03kBasquhF6j/A9zY/SIT8Z QubGMYngyH6nckpGcgiLY2WwUwL+HkxpEJzXtm8hsaa0lcmoFoDXAbuzksavKumySf09 41or2KK905pYrmOlnk7unvL4QxoAWJSwIM0W2GT8hEiS+zkc4u/ye7+iwWOV6Mltl2o+ CvFw== X-Gm-Message-State: ANhLgQ2oZnlF4IhQNqH3XAtoWNKXJxgdIbs0WWPFxLmXat7efiL1QoLX Ka4tXEE876bRRvXMQS3QEejRPUsPsUMr2eZhvg0F22y2VZ7wPFLHpMCXyFTZL223bf73vr7h1UN diyR6T+sKQB8MGEIpztQ= X-Received: by 2002:a67:2c81:: with SMTP id s123mr9915653vss.198.1585304000700; Fri, 27 Mar 2020 03:13:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv/JE2VjnUI4Xj2A3BZtjnAo2eFslQ9y1p2we71b63BsDymw3vid1sJT1ixU+eaq3vu14OrO7NA7U9GQEVXy+E= X-Received: by 2002:a67:2c81:: with SMTP id s123mr9915635vss.198.1585304000348; Fri, 27 Mar 2020 03:13:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Marchand Date: Fri, 27 Mar 2020 11:13:09 +0100 Message-ID: To: Anatoly Burakov Cc: dev , "Kinsella, Ray" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH] vfio: map contiguous areas in one go 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 Tue, Feb 25, 2020 at 2:25 PM Anatoly Burakov wrote: > > Currently, when we are creating DMA mappings for memory that's > either external or is backed by hugepages in IOVA as PA mode, we > assume that each page is necessarily discontiguous. This may not > actually be the case, especially for external memory, where the > user is able to create their own IOVA table and make it > contiguous. This is a problem because VFIO has a limited number > of DMA mappings, and it does not appear to concatenate them and > treats each mapping as separate, even when they cover adjacent > areas. > > Fix this so that we always map contiguous memory in a single > chunk, as opposed to mapping each segment separately. > > Signed-off-by: Anatoly Burakov Applied, thanks. --=20 David Marchand