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 F3B83A046B for ; Tue, 23 Jul 2019 20:48:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C30EA1C0BC; Tue, 23 Jul 2019 20:48:36 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by dpdk.org (Postfix) with ESMTP id 8F9B91C0B9; Tue, 23 Jul 2019 20:48:35 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 69E05698; Tue, 23 Jul 2019 14:48:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 23 Jul 2019 14:48:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=qIkAATbJUj5/fq0yWbSYXcCDeNBOM8sQBkAVdAN1Nk4=; b=k/Xt71nIAWip Q72lBePtubiyHTvZIuAn4vn2OZ3ioV1SyXyaKJEa/NN6EakBafmhEsqKO3t/plkM 4n5lhIxciszWbJjExgN8cFti5oBCJl3E4TfI+QYCrvRCEk24/HynUn7To8qk1RSU 7OG5TYQArmsli8ng1LuOLfUFUkACXJE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=qIkAATbJUj5/fq0yWbSYXcCDeNBOM8sQBkAVdAN1N k4=; b=oLs9Dqg1YqEbxLYQVt0wpI3kh5rN9xRs3tRxjh+5YHSlunR5U9nd2PUqF DoVR6bZAD59GxlAHBCEA+W1b2B2fxJI03R1Fi9ll1ERFgknaPbo0xS06+8NNgLwk y+sas8rjdzr9avUNrMhIKqIAK5CqQNxN8DNaSAIkFMzHFqfZtWgDo/xQtYW8TUyD wCP1gUg+p4tJ4PiHV9Ak1RxqF3bHKnaXOzxOtEaocl4qqzL6w2/NyPDKnXusTA7c M4UNvxotFhKlU44mPVntAxwypldroF7Sh/1zDrOLP6VL9N8LbGMqZhcbUsyB3wOr vKq9LmemGAdLW4te9v0jYTimUsXcg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrjeekgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeelfedrvdefrdduleekrdekleenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhm rghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (89.198.23.93.rev.sfr.net [93.23.198.89]) by mail.messagingengine.com (Postfix) with ESMTPA id 74FFB380086; Tue, 23 Jul 2019 14:48:32 -0400 (EDT) From: Thomas Monjalon To: "Burakov, Anatoly" Cc: dev@dpdk.org, "Sirvys, Andrius" , "stable@dpdk.org" Date: Tue, 23 Jul 2019 20:48:29 +0200 Message-ID: <7688828.KmXcIydMgP@xps> In-Reply-To: <49C20589590A5F43815A562C49658C1E70EAE427@irsmsx105.ger.corp.intel.com> References: <6ee9d8ddb5de3b2de880ad42c37b012888a6facd.1563876069.git.anatoly.burakov@intel.com> <49C20589590A5F43815A562C49658C1E70EAE427@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] vfio: use contiguous mapping for IOVA as VA mode 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" 23/07/2019 12:30, Sirvys, Andrius: > When using IOVA as VA mode, there is no need to map segments page by page. This normally isn't a problem, but it becomes one when attempting to use DPDK in no-huge mode, where VFIO subsystem simply runs out of space to store mappings. > > Fix this for x86 by triggering different callbacks based on whether IOVA as VA mode is enabled. > > Fixes: 73a639085938 ("vfio: allow to map other memory regions") > Cc: stable@dpdk.org > > Signed-off-by: Anatoly Burakov > > Tested-by: Andrius Sirvys Applied, thanks