Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2493205imm; Mon, 10 Sep 2018 01:54:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZFzWwF4FpQxuGGFdjLpMdVyHUOcDMF2x0+sfKeHwFCQ4ogHUi+KwLHy0q7GOecduUecUmj X-Received: by 2002:a17:902:4a0c:: with SMTP id w12-v6mr20655803pld.289.1536569685527; Mon, 10 Sep 2018 01:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536569685; cv=none; d=google.com; s=arc-20160816; b=RwZjHfFZfXgy1R8yBa9mES28se0tXeqqQJBMoXfUB/AWJ3a1INEIgcQsIqmAUGH79D rprTBk2305lnT2L4jKS/2edr4fyXpigOKrAenOwgMQNrIwc6Yt1DAzmbFopIsyGRVtgc JkU16PNm90JQSyTMx2WV4+Yv+epM6oIKXtfS6UMAoSKHUAk62ceH7Nrpb2WuoNe36p8K BvYr7bCseaTCCRMc6hbjiihtYbc7COIZLotiWkje4R7UHJhg/IER4VPdy6o2YyNwN3Ra tfuT/uPuiMtMv+umvhAZC+biqdsjqDA7BkM+UOzFrLZTQnQasrUD4i/p+vdmwAwLqe9r tIZQ== 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; bh=gRflt+JxG7C7osLlMV1gCBbBENCLW/exqxf17leqkA0=; b=VC7SCmK+afGHJlJ5BSZwvVPVPSsRIuqa7YxtTsz47DkjSrTBqJVw3Y/EZC+C6NRrsY dV9LVnaxZAptzqGK7ZML7UprCeFMOW5zZOHhZ1/IIGw1jHu/3jzmmJdxSbT2KfGIxrt+ REnHezAdtZI2wBtRmH2PJuJxY0GKMl8rCj90LGJ2aQM2S/lsuKyDXutEmJ6e8aTI3/K+ Wbd8fJ3N3rhUwsqMB5SOfMKLBI0wA2Dikw83nJ6j6BLdXXyNOOFC4zOEZ6hgdLXu/qbW /YKzgnhGm1YIrSTQkzmerym40VA1T75ERjZMzwGVLcvUVIqaDptuFwBNjkS2hChd7Sfj 5D3g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8-v6si15950363pgu.519.2018.09.10.01.54.29; Mon, 10 Sep 2018 01:54:45 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727657AbeIJNqW (ORCPT + 99 others); Mon, 10 Sep 2018 09:46:22 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41330 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726148AbeIJNqW (ORCPT ); Mon, 10 Sep 2018 09:46:22 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1945981663CE; Mon, 10 Sep 2018 08:53:22 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-66.ams2.redhat.com [10.36.116.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id C9F5E63F62; Mon, 10 Sep 2018 08:53:17 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C88A64FD7D; Mon, 10 Sep 2018 10:53:16 +0200 (CEST) Date: Mon, 10 Sep 2018 10:53:16 +0200 From: Gerd Hoffmann To: Christoph Hellwig Cc: Jiandi An , brijesh.singh@amd.com, srikar@linux.vnet.ibm.com, "Michael S. Tsirkin" , Benjamin Herrenschmidt , Will Deacon , virtualization@lists.linux-foundation.org, paulus@samba.org, elfring@users.sourceforge.net, Anshuman Khandual , robh@kernel.org, jean-philippe.brucker@arm.com, mpe@ellerman.id.au, thomas.lendacky@amd.com, marc.zyngier@arm.com, linuxram@us.ibm.com, david@gibson.dropbear.id.au, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, joe@perches.com, jiandi.an@amd.com, robin.murphy@arm.com, haren@linux.vnet.ibm.com Subject: Re: [RFC 0/4] Virtio uses DMA API for all devices Message-ID: <20180910085316.yzjbvoohqhdng2vb@sirius.home.kraxel.org> References: <2103ecfe52d23cec03f185d08a87bfad9c9d82b5.camel@kernel.crashing.org> <20180808063158.GA2474@infradead.org> <4b596883892b5cb5560bef26fcd249e7107173ac.camel@kernel.crashing.org> <20180808123036.GA2525@infradead.org> <20180808232210-mutt-send-email-mst@kernel.org> <98eb367ce322ad84baa31e3c7beffc4a42be8458.camel@kernel.crashing.org> <20180809054013.GA20507@infradead.org> <20180910061947.GA30666@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180910061947.GA30666@infradead.org> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 10 Sep 2018 08:53:22 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 10 Sep 2018 08:53:22 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'kraxel@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > this to set the VIRTIO_F_IOMMU_PLATFORM flag. But for example > > QEMU has the use of iommu_platform attribute disabled for virtio-gpu > > device. So would also like to move towards not having to specify > > the VIRTIO_F_IOMMU_PLATFORM flag. > > Specifying VIRTIO_F_IOMMU_PLATFORM is the right thing for your > platform given that you can't directly use physical addresses. > Please fix qemu so that virtio-gpu works with VIRTIO_F_IOMMU_PLATFORM. This needs both host and guest side changes btw. Guest side patch is in drm-misc (a3b815f09bb8) and should land in the next merge window. Host side patches are here: https://git.kraxel.org/cgit/qemu/log/?h=sirius/virtio-gpu-iommu Should also land in the next qemu version. cheers, Gerd