Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4714422ima; Mon, 4 Feb 2019 23:30:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IbWN5D0Qbonv5g69uP30rKmUtVP9/lue1qxfgZud4Fgxha9jcORUqY3bCacUmpTW7aiBqBc X-Received: by 2002:a62:53c5:: with SMTP id h188mr3528030pfb.190.1549351800098; Mon, 04 Feb 2019 23:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549351800; cv=none; d=google.com; s=arc-20160816; b=WWIqo2cHnQxjhP1lX3g05Q6OLgdUk1/IkZHqbzysrfIaj29bokxOn21G2Tb7IAwoPF lvI315o78+SVFtGTiCsxLadst3t0Bl+LXfveWWzFAkYoO/UsKrp6RX04R4n7HWKrfEFo uzeYzyjzjSiiksegJNdTZL7VkweIL2nxJZQE0wA9URybvVFrlXfSKCvUmGRVWb6fQpwI uboKoJE7lsapy29tzeQE0pDOm9y6q5Vu8LOFXKoEuKVQn8UghYJZu8WxRaq0H9QLUJsF z+b3qlvUPmc/XOc/D0pKtKG3t5qus+hitMisXDgzGPoeiY8Jtr+Ed+Q3bjMfJSb9kT3X 0AFQ== 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=7qGDA+feqgv6AkTwzvsk7lbSBt0skp+IrkHTj6pNJ+U=; b=0FcC0zhY7GXl3RmaB+ybLWuiLKZ41jnXta2LmKmOpmQC7dOYbY/ObZT8z75pbc0oU/ rYA0HGFnv85RvGmxRCCZXPZoATdSZoX/wxvb1Gm4BrZWPiRiOAnTa1kCtzax68g2tbDp ti53jLrfQwgWXX/8x70SpCroXC2JT6AUU5crH5KAIxml1VY+H+azfy0z7kf9JBhyFWms uGD7jvoffK6SEFF1vNmemPpX168Ey3jJ02LG+Q/LX0H3WtCJ4YsHQ7kf0LG3GYxYOlnN 7Dg/rOUY1kRCLu10q3NRu/oNrdh2Clxh14c6NK3lpCbeMq911d/JS3h9lAR0Dl4v/saY yNrQ== 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 y73si2223474pgd.478.2019.02.04.23.29.44; Mon, 04 Feb 2019 23:30:00 -0800 (PST) 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 S1727812AbfBEHYJ (ORCPT + 99 others); Tue, 5 Feb 2019 02:24:09 -0500 Received: from verein.lst.de ([213.95.11.211]:52732 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfBEHYJ (ORCPT ); Tue, 5 Feb 2019 02:24:09 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 6EB4968D93; Tue, 5 Feb 2019 08:24:07 +0100 (CET) Date: Tue, 5 Feb 2019 08:24:07 +0100 From: Christoph Hellwig To: "Michael S. Tsirkin" Cc: Thiago Jung Bauermann , Christoph Hellwig , Jason Wang , virtualization@lists.linux-foundation.org, linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, David Gibson , Alexey Kardashevskiy , Paul Mackerras , Benjamin Herrenschmidt , Ram Pai , Jean-Philippe Brucker Subject: Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted Message-ID: <20190205072407.GA4311@lst.de> References: <87zhrj8kcp.fsf@morokweng.localdomain> <87womn8inf.fsf@morokweng.localdomain> <20190129134750-mutt-send-email-mst@kernel.org> <6c68f7f7-1b28-6eba-9b8b-2c32efac9701@redhat.com> <20190129213137-mutt-send-email-mst@kernel.org> <20190130074427.GA29516@lst.de> <875ztzxvw2.fsf@morokweng.localdomain> <20190204152416-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190204152416-mutt-send-email-mst@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 04, 2019 at 04:38:21PM -0500, Michael S. Tsirkin wrote: > It was designed to make, when set, as many guests as we can work > correctly, and it seems to be successful in doing exactly that. > > Unfortunately there could be legacy guests that do work correctly but > become slow. Whether trying to somehow work around that > can paint us into a corner where things again don't > work for some people is a question worth discussing. The other problem is that some qemu machines just throw passthrough devices and virtio devices on the same virtual PCI(e) bus, and have a common IOMMU setup for the whole bus / root port / domain. I think this is completely bogus, but unfortunately it is out in the field. Given that power is one of these examples I suspect that is what Thiago referes to. But in this case the answer can't be that we pile on hack ontop of another, but instead introduce a new qemu machine that separates these clearly, and make that mandatory for the secure guest support.