Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp473684yba; Fri, 3 May 2019 05:30:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWPwjJ24Rfmou/YMX+Biuk38bEadSWrDelAlR0JFpc2DQS1xj8TjgzQl7VXYJ4xsix53rq X-Received: by 2002:a62:128a:: with SMTP id 10mr9096804pfs.225.1556886625984; Fri, 03 May 2019 05:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556886625; cv=none; d=google.com; s=arc-20160816; b=YSVajjxneoDuHkh2bTRNgaTPaNwB4duUNKY4QM/2UXY1afHAaqZImoyP/Oa3AKGkiQ aaPkGr8VH1q1au8swg9Lh6fOCNXLedv5w3pOlGuSrbjo+UN0QHA7qikVEkVnLa7LCOfc Mh7l88LRdvuDBpIlERsZOxWkl7+rd3xn2Ikg8dEgJLF1/p3R0r7IEzGfCnq4T9De/i+e fpGj8rj2Zj4gprD55RBJRGh9X1nCunooC3h/NOThrohZ9blRArY73QpARrodhBOCNOfp P9GUWbN+xHOsajjWPzu78f+FXA1O7mEjzfHia3MQkVNfJxMpw/2TlwrnQ+Q+WvkldWzA Bx0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=v4iIVCgbPpVINMcoD8zLnWlww4NXBXy4bT54BBiY754=; b=XU7n58hZa+rFw1gx3RDeKtzHpnaWq7wZ7mr1xNdJSW6APk4nLwb40UVNmYpZXqAnjv xc5n1RCgKPctBae1QEm5ww4JaZr7SF4x0B2ovCWVWu3NlJBqJyYtb6eY3Q8x+NP9Y89D iFZGlaE9D3jpkR4loy9GBMj9GyBXNYolnXTjX0PyAYT06UnJeTE8bjyNSZ4ffStz6K5/ kwyFh5vh+74UR/iRZaFSKeRt1qv9vgr0wyyY6xZtsOzQ98bMrf6TTDIF3fzpRRPZrYMM 6J0D/cvBOHN5NWww2tdaSaH6lIMBToy54JqQYbGZRHUu57nMAqwsFKOr/91cGoso/RqG Cu/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lS5qyt80; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si1952196pgv.115.2019.05.03.05.30.09; Fri, 03 May 2019 05:30:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lS5qyt80; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727789AbfECM3Q (ORCPT + 99 others); Fri, 3 May 2019 08:29:16 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33618 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbfECM3O (ORCPT ); Fri, 3 May 2019 08:29:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=v4iIVCgbPpVINMcoD8zLnWlww4NXBXy4bT54BBiY754=; b=lS5qyt80Q7feOHrLTFeRIBJF8 3nonvZ5GZbuvDBcmHzEbEAybp2SCkM4KzraDjAUUKpz8yfgzbnqTEH/cAmoPTMeIwAGbIAomz71IB 3PXUmFbYyM/szp4FHMDwwyhoo0WJR48rL4a1y4ReS+JZRtoNCbwbjn3pHTOcCkg92FaNEcXXreuKQ /QKhFgDupKtezZ6g4lkx+zPbE+ERO5ruf9xG44/DomFfXfpvrKSbCVKlNb491et2FCl+LRtIrp69G zGxCdvFpNCLNYdaqlI5pddqw0itAIH4mqcNHzJYYySZWN9OEcgRmcss1yDMvWjO3MZIqRpnuA6q5C Jvgabpcqw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hMXJG-0003b5-O2; Fri, 03 May 2019 12:29:02 +0000 Date: Fri, 3 May 2019 05:29:02 -0700 From: Christoph Hellwig To: Maxim Levitsky Cc: linux-nvme@lists.infradead.org, Fam Zheng , Keith Busch , Sagi Grimberg , kvm@vger.kernel.org, "David S . Miller" , Greg Kroah-Hartman , Liang Cunming , Wolfram Sang , linux-kernel@vger.kernel.org, Kirti Wankhede , Jens Axboe , Alex Williamson , John Ferlan , Mauro Carvalho Chehab , Paolo Bonzini , Liu Changpeng , "Paul E . McKenney " , Amnon Ilan , Christoph Hellwig , Nicolas Ferre , Jens Axboe Subject: Re: [PATCH v2 06/10] nvme/core: add mdev interfaces Message-ID: <20190503122902.GA5081@infradead.org> References: <20190502114801.23116-1-mlevitsk@redhat.com> <20190502114801.23116-7-mlevitsk@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190502114801.23116-7-mlevitsk@redhat.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 02, 2019 at 02:47:57PM +0300, Maxim Levitsky wrote: > If the mdev device driver also sets the > NVME_F_MDEV_DMA_SUPPORTED, the mdev core will > dma map all the guest memory into the nvme device, > so that nvme device driver can use dma addresses as passed > from the mdev core driver We really need a proper block layer interface for that so that uring or the nvme target can use pre-mapping as well.