Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1347241imm; Sat, 4 Aug 2018 01:22:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdTjCwlP41ISGRZT/ANsrscpUZtKJvY7dWtv3jYdjL4sNODTIXurmoOfu9tph0izamltclN X-Received: by 2002:a63:e0b:: with SMTP id d11-v6mr6892741pgl.134.1533370952256; Sat, 04 Aug 2018 01:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533370952; cv=none; d=google.com; s=arc-20160816; b=E15N8hH0ewbrfeYDr0yncoYpiP6NxzfuLqLNLLyy1te96LAaZ2H5qJK2tlu2QKaHir EOHuDhVlg9u5N//bb41mS79FgrppSyhGZll8xPbb++vGA7OCNpK/y3+8ITk3i6S6FZDA W0hcjPIUJVfiL+H7+3+a7SsdwS+RnIqDZZK8GEAENLMuLwFYJ8EsR4Ei17rG2Bgm9kEp l2xOPgvLVGf26LJG8VhBhvKujCXHfal8CSQaSGCSgAq7Mpugm06lNkQNL0QlPaVbmXQV +NL+WeheQDrSd1WeTLYfj3H+0GmqVEOudXcff1YbUxf1/liFqnRuGMQ488MiXuKJg0aN yB7w== 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=Uml25wGYLkjpg9aNsn/Ka+LDmDT7cUM/OMuByV29RYs=; b=hYR1t296qFH9G1VW4g0qDbcXYGL59nleWlS4NrRi3aozXvWhSM4RutWony/SylP3xc yVnB5pXokW1OQobMKBHOxH/0L6X0lYufvoXNWQn70xr8p8akun5mL67kJF7k9CyB6bVp TURGeAUzOvl6xQzi2IsDGDYlATQrC/vse51x3i/aMHNFN7cumcCmuBYCygD+Xdb3uU+c dYl32HyTYLJhrbiR7l4RP5G8T8zJHAbb5ojipLku7S0YccuiN0oeOCk8F/1kKpskXqf+ 0rnZO/+oguHjadolw9kdU27fooN1L8YihvlzIc7r+H2NAxEKs3OhEf+6uX4LGXrasRO8 UmvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WSmdXWWl; 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 q145-v6si7725955pfq.315.2018.08.04.01.22.16; Sat, 04 Aug 2018 01:22:32 -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=WSmdXWWl; 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 S1726819AbeHDKVQ (ORCPT + 99 others); Sat, 4 Aug 2018 06:21:16 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:36630 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbeHDKVQ (ORCPT ); Sat, 4 Aug 2018 06:21:16 -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=Uml25wGYLkjpg9aNsn/Ka+LDmDT7cUM/OMuByV29RYs=; b=WSmdXWWlCIseVWNwwk0EUy3TC 2rN/5Qse9Yx3CNip1bdXJqTwrQfVlcm4CpEsA3mjHhMhhKUqk/LROlFAdFjDiBArBQ4siDRTpos3R qwwBOSg22EGPSATsDLHxyuLV1lWZWQ0XddHq3yvfWrMkL0DTRMbU7EgbmEqRFN+UISyM3nzb+5e3p rttChy9sthceXp63Z74xQqCX7Mj1dXc6c1shguLYwVgzkLE5El/zD4W+9LwWmu85f51s6x2z18y/y WOjTUIQtyn8mrgmgQE5Kq6JsVbdhSJeiml6F+Y5Vx3fUZm3mht7PtsSHsOWIrHR7yPbDVfWPdTHfH Q9MlvrQ1w==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1flroO-0003YB-Ig; Sat, 04 Aug 2018 08:21:20 +0000 Date: Sat, 4 Aug 2018 01:21:20 -0700 From: Christoph Hellwig To: Benjamin Herrenschmidt Cc: Christoph Hellwig , "Michael S. Tsirkin" , 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: <20180804082120.GB4421@infradead.org> References: <20180802182959-mutt-send-email-mst@kernel.org> <82ccef6ec3d95ee43f3990a4a2d0aea87eb45e89.camel@kernel.crashing.org> <20180802200646-mutt-send-email-mst@kernel.org> <20180802225738-mutt-send-email-mst@kernel.org> <20180803070507.GA1344@infradead.org> <20180803160246.GA13794@infradead.org> <22310f58605169fe9de83abf78b59f593ff7fbb7.camel@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22310f58605169fe9de83abf78b59f593ff7fbb7.camel@kernel.crashing.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 Fri, Aug 03, 2018 at 01:58:46PM -0500, Benjamin Herrenschmidt wrote: > You are saying something along the lines of "I don't like an > instruction in your ISA, let's not support your entire CPU architecture > in Linux". No. I'm saying if you can't describe your architecture in the virtio spec document it is bogus. > Our setup is not fucked. It makes a LOT of sense and it's a very > sensible design. It's hitting a problem due to a corner case oddity in > virtio bypassing the MMU, we've worked around such corner cases many > times in the past without any problem, I fail to see what the problem > is here. No matter if you like it or not (I don't!) virtio is defined to bypass dma translations, it is very clearly stated in the spec. It has some ill-defined bits to bypass it, so if you want the dma mapping API to be used you'll have to set that bit (in its original form, a refined form, or an entirely newly defined sane form) and make sure your hypersivors always sets it. It's not rocket science, just a little bit for work to make sure your setup is actually going to work reliably and portably. > We aren't going to cancel years of HW and SW development for our Maybe you should have actually read the specs you are claiming to implemented before spending all that effort.