Received: by 10.213.65.68 with SMTP id h4csp2397028imn; Thu, 5 Apr 2018 14:21:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+3Yyp9keqhNe36R8hjSlDMU82iz8AaUWyOpo3XUjMfTUC+jerRkpH0CZHJprSZ+rSQJcqP X-Received: by 10.98.69.142 with SMTP id n14mr18224832pfi.42.1522963269799; Thu, 05 Apr 2018 14:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522963269; cv=none; d=google.com; s=arc-20160816; b=slUqS7EhT3qOxS2+leWn45ujH90HBS31LBKL3dArFDZEA7RdvJh2EY6CCUcL/a40TS hC4m/hupVmYCFKkiRTeD2BP7UNCtkkgr4j24FPVhfBwbGjtIXKHjafIL/cFLA8QWVryk yYt6cFuj0PLD+xrQhRKHextymAtU9VFKLCYC9hzvOiBnVw1ByjnljUy/hDcmQFAll/u6 mijg+R/eEKnkSUqu0hbKnO12O4uLZZGYLoE5iIsMGXz+OU4i7r8fAn2lbaDYrxuTttvL sw2OBgtIPnN/WNyy729+ZnE3453UvrIM8cokAzRiMUkkhr7ZRYd8nB62H36UkkPIePhz JfBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=gPAoqNIdl9lNCncnNpqDXXJ6HEUSikwLMjKnCokOQLs=; b=Cz11Iw2EMCTGgxS/lkTqtiE6+/KweZK3CRL87VBDZ1IjQhBeTzD4p7zC+Bhn4Jq8yY K2LxOiXOHVDyV/O73fLkgZSkbmLeIAxhFpDq723opBvd6bmBU0yPgkNs/KCR9Gns+PhB Voa+jT08R3Nl6wwxTbx+F/uB3HU4xALBanvWgmZlq5F78VPc7c8osSqm9LOfNHVD284Y GlIqEy9PCrY4ZivWiKEMQ3BLzYqjChAm8BULv8z89JOqLQzxXfZPPK3A7e5GUA7UoNp/ 8cnl/SFyX7uJCgwsQFRnaKYEP2O69GdJAWaS7+B0ovDynwsCrWO3BLxHMPERahiZTXGf 4M2Q== ARC-Authentication-Results: i=1; mx.google.com; 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 h3-v6si6637416plh.385.2018.04.05.14.20.46; Thu, 05 Apr 2018 14:21:09 -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; 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 S1751523AbeDEVTV (ORCPT + 99 others); Thu, 5 Apr 2018 17:19:21 -0400 Received: from gate.crashing.org ([63.228.1.57]:46991 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726AbeDEVTU (ORCPT ); Thu, 5 Apr 2018 17:19:20 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id w35LIXJ9000462; Thu, 5 Apr 2018 16:18:35 -0500 Message-ID: <1522963113.21446.211.camel@kernel.crashing.org> Subject: Re: [RFC] virtio: Use DMA MAP API for devices without an IOMMU From: Benjamin Herrenschmidt To: "Michael S. Tsirkin" Cc: Anshuman Khandual , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, robh@kernel.org, aik@ozlabs.ru, jasowang@redhat.com, joe@perches.com, linuxppc-dev@lists.ozlabs.org, elfring@users.sourceforge.net, david@gibson.dropbear.id.au Date: Fri, 06 Apr 2018 07:18:33 +1000 In-Reply-To: <20180405213042-mutt-send-email-mst@kernel.org> References: <20180405105631.9514-1-khandual@linux.vnet.ibm.com> <3e1b113b-79ca-b700-5be9-10c66d74aabe@linux.vnet.ibm.com> <20180405175326-mutt-send-email-mst@kernel.org> <1522940983.21446.205.camel@kernel.crashing.org> <20180405213042-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 (3.26.6-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-04-05 at 21:34 +0300, Michael S. Tsirkin wrote: > > In this specific case, because that would make qemu expect an iommu, > > and there isn't one. > > > I think that you can set iommu_platform in qemu without an iommu. No I mean the platform has one but it's not desirable for it to be used due to the performance hit. Cheers, Ben. > > > Anshuman, you need to provide more background here. I don't have time > > right now it's late, but explain about the fact that this is for a > > specific type of secure VM which has only a limited pool of (insecure) > > memory that can be shared with qemu, so all IOs need to bounce via that > > pool, which can be achieved by using swiotlb. > > > > Note: this isn't urgent, we can discuss alternative approaches, this is > > just to start the conversation. > > > > Cheers, > > Ben.