Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4346972imm; Mon, 6 Aug 2018 23:19:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfdVGlddHNE34uX25VeVWDuGVhEdXdLXcakvQs/7kU+Xf6yEQiLpQUsyjhNexaKzV4DusYY X-Received: by 2002:a63:9311:: with SMTP id b17-v6mr17359053pge.261.1533622781316; Mon, 06 Aug 2018 23:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533622781; cv=none; d=google.com; s=arc-20160816; b=a6aXftTwO2b+jyUP9cbaqEir//pE6is4xaQUXwTdIAmCm7a9ygxYZ//9QNwe2fjsC/ xMtDwZo2dRkBQqyHky7+fJU5CobJllMb5JVIOH+DTXBWEwwK+ovWkOdIrvoMLw+K4Rt6 4D0UCcL97gVGZXvlGyzNvI658tr32BdYWlVSdMYxjrKQ7YjP7vezjQdGaf5uqPn0+xFw FaBgEjm/WI1Z6IxFk6jrzxc6iUJ/Bxx2pPaNRJOP15dIKcC1YkK/Qah6O+ZzzOkWETQm c2mpDZ+pl6aFlWcUUaKDI3jBeQ5euoFAG4P+QeCyN8weZsQXtM41mpsA3nP9A3cxwK4/ Yf8w== 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:arc-authentication-results; bh=JL9sovPWEf8yrTpdq2Lic9cCDW4790FNP2sPj3/GabA=; b=KrqKbrNI1pVYY7qgIjppasKmvHQdRXFF7rmcsEfxgoqMwacanV0GNXbEpXRUi5hRoy kdHsXffUNy5kAZLMl5KNyK6tGv9PQVibjWn5vSegB8rgwOpko/ugPXuFCoD9q0772yjP VxV85aT5gXVkZ3GP279UNqba9WM3pJuz9btLJXmcRBzacdMlDhdGlTGsc4+gqxd7YSz2 bAa5i7UjG0djgx2d/PLkFCr+j8cELV/EcG8AxMp/lumXj9XJ+RgK/sQ/o4MGUc4Rclq5 Xy385eMsv7poz8p6i0CiScYV9fWNyY/TCKcI9UMEdiGrBOq9BzBI4hsfkYMMyYAwdrA2 7kTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="lnHFra/+"; 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 x22-v6si526983pfh.84.2018.08.06.23.19.26; Mon, 06 Aug 2018 23:19:41 -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="lnHFra/+"; 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 S2388546AbeHGIbF (ORCPT + 99 others); Tue, 7 Aug 2018 04:31:05 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38450 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387588AbeHGIbF (ORCPT ); Tue, 7 Aug 2018 04:31:05 -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=JL9sovPWEf8yrTpdq2Lic9cCDW4790FNP2sPj3/GabA=; b=lnHFra/+rUwS8DqHhhjF7tAKm JOtWOrWeL0UCodvEcbomlKlNOSZFan1tnMyXwY7LZ/BsPACnboETyYBOWMGx+AYuXLi5AIaiQc2Rl 3QJv6NhvuIiQdz8eaTzcIaMi9hyMMThha65U6O5fcPwkvelibQcaGJ3JtiRfyGfWE235mzbrvES5K 0whBpc3gjZ3E1FDs93yDPpcpOqvp6tMCg0rBFp8I/mDWtT9Mh8txhVUxW8ej6ozEn+9SO3FuiAxql Ct2DzyOnpPUAYv42gZ1WAC7nVRx5vMnSTk3gWFVONnMm+kHbVu2k05/Lh3xILPNxtOBqZiawm00BU P6qWl5e4A==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmvJv-0003TB-48; Tue, 07 Aug 2018 06:18:15 +0000 Date: Mon, 6 Aug 2018 23:18:14 -0700 From: Christoph Hellwig To: "Michael S. Tsirkin" Cc: Benjamin Herrenschmidt , Christoph Hellwig , Will Deacon , Anshuman Khandual , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, aik@ozlabs.ru, robh@kernel.org, joe@perches.com, elfring@users.sourceforge.net, david@gibson.dropbear.id.au, jasowang@redhat.com, mpe@ellerman.id.au, linuxram@us.ibm.com, haren@linux.vnet.ibm.com, paulus@samba.org, srikar@linux.vnet.ibm.com, robin.murphy@arm.com, jean-philippe.brucker@arm.com, marc.zyngier@arm.com Subject: Re: [RFC 0/4] Virtio uses DMA API for all devices Message-ID: <20180807061814.GC32709@infradead.org> References: <20180803220443-mutt-send-email-mst@kernel.org> <051fd78e15595b414839fa8f9d445b9f4d7576c6.camel@kernel.crashing.org> <20180805031046-mutt-send-email-mst@kernel.org> <20180806164106-mutt-send-email-mst@kernel.org> <20180806233024-mutt-send-email-mst@kernel.org> <0967fc30001323e6e38ed12c8dba8ee3d1aa13f5.camel@kernel.crashing.org> <20180807002857-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180807002857-mutt-send-email-mst@kernel.org> 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 Tue, Aug 07, 2018 at 12:46:34AM +0300, Michael S. Tsirkin wrote: > Well we have the RFC for that - the switch to using DMA ops unconditionally isn't > problematic itself IMHO, for now that RFC is blocked > by its perfromance overhead for now but Christoph says > he's trying to remove that for direct mappings, > so we should hopefully be able to get there in X weeks. The direct calls to dma_direct_ops aren't going to help you with legacy virtio, given that virtio is specified to deal with physical addresses, while dma-direct is not in many cases. It would however help with the case where qemu always sets the platform dma flag, as we'd avoid the indirect calls for that.