Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp336885ybe; Tue, 3 Sep 2019 23:59:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoEcT8+7shu5pFK+jJN69zBw25Ye/ThYJeh0jPLCOYh1eyBQKjucCqvlZT3EWrwDQ41w2x X-Received: by 2002:a17:902:8348:: with SMTP id z8mr40117229pln.38.1567580385572; Tue, 03 Sep 2019 23:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567580385; cv=none; d=google.com; s=arc-20160816; b=zlwytqqVHN6MwOALSpNFJwvjCGIFir8WNY7rWHcgAd/JgFkErbTsXvV+GMxor9XqJI hpL2L8MwJ0+Vvk643621mmwwApNV6GnRO4AfTY7Zqqn3/kd4N+4wdMou1MGDBR1CjMxA 4L2Wt0YZMqO0tOwvL8tNflY0m28jAr52j50QwC25YGiHX21cyr1Abpvd/nW/TMc18f+6 OFt1LjTOWGMwb9PyxHZyipruC0blDuWdBFeyqLOT3yi8ESsg44lZElevGT4zHKkvau6i Wm5rcYNDHbGkaJWl1VCkCc89mXAQkrVG18VJS7VU0BRB282ngIFsZ/b7bJgo2GmdVzDT W73g== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LwxsS++pYvYblfLkOvFV+VfFX2yFAI6VKMZ/fTRcumY=; b=md3KZHrrfp83hTl/fo9OViK5f0ACGTJAeAtdUcdWyIS3oXeGCvW26G/Uf9eXD2Ipz1 5HvP2thvKsEdT8WeZ9iqOrqQvasxcKa5POJJ2kB65Laze0mB5Egf+NgjjHknxCqiqeNU 6oPr/58UQPFEQ3lwYX5M45DRL0noCf8VIwNe7MvBbWPOjJXTWk0/lVBsSKl6T1kZnnBL nGsvoXkN5CPIj3YebxKup0y/7VTFKUsU/GnUxUChNyprWcY1U7hJ34vSkFWblotwHayT 9BwBYNWBJnNf5txNdR/MHO5ZK7yjWDYFeueoFeQLn/1qONZmAXbvVOpU16ULO+a+nWWd TXhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="ot/W1SSw"; 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 p10si4712434plq.320.2019.09.03.23.59.29; Tue, 03 Sep 2019 23:59: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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="ot/W1SSw"; 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 S1728974AbfIDG6b (ORCPT + 99 others); Wed, 4 Sep 2019 02:58:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55106 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728698AbfIDG6a (ORCPT ); Wed, 4 Sep 2019 02:58:30 -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-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To: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=LwxsS++pYvYblfLkOvFV+VfFX2yFAI6VKMZ/fTRcumY=; b=ot/W1SSwfpc+eEBLUwAWhlt4SU dXKCWlxEfLxw0dPp4+dAG3suK8kkl1aMP1YZNCrET86T5X1Z+Ku6FHG0bozaXjHNPiRDyjV4IICPz j3v+usgopnYGFXFRpFXvyy2wvfx1+NNZZnP3sBiJrBbSV8HiAmLAmQ2PP8F3yOGrgtAGkJ1GKP2BR JcxNKlyRl7gMZEiCIhXKsiR0yJ9lMwbbzde1AqTZ+ZcW3q2Nsn8Pw4dRzaRO2JlmTL25LIFTyIM62 7NopOya774u8tCEd3TaWGy2sPCRp1mpITKM/uescjcuaCmps8LqF7bqU4Jt1XW63JS6U9TNT1bgzY lgw6o6zQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1i5PFH-0000kA-OD; Wed, 04 Sep 2019 06:58:23 +0000 Date: Tue, 3 Sep 2019 23:58:23 -0700 From: Christoph Hellwig To: Thomas =?iso-8859-1?Q?Hellstr=F6m_=28VMware=29?= Cc: Christoph Hellwig , dri-devel@lists.freedesktop.org, pv-drivers@vmware.com, linux-graphics-maintainer@vmware.com, linux-kernel@vger.kernel.org, Thomas Hellstrom , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Heiko Carstens , Christian Borntraeger , Tom Lendacky , Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: [PATCH v2 1/4] x86/mm: Export force_dma_unencrypted Message-ID: <20190904065823.GA31794@infradead.org> References: <20190903131504.18935-1-thomas_os@shipmail.org> <20190903131504.18935-2-thomas_os@shipmail.org> <20190903134627.GA2951@infradead.org> <20190903162204.GB23281@infradead.org> <558f1224-d157-5848-1752-1430a5b3947e@shipmail.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <558f1224-d157-5848-1752-1430a5b3947e@shipmail.org> User-Agent: Mutt/1.11.4 (2019-03-13) 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, Sep 03, 2019 at 10:46:18PM +0200, Thomas Hellstr?m (VMware) wrote: > What I mean with "from an engineering perspective" is that drivers would end > up with a non-trivial amount of code supporting purely academic cases: > Setups where software rendering would be faster than gpu accelerated, and > setups on platforms where the driver would never run anyway because the > device would never be supported on that platform... And actually work on cases you previously called academic and which now matter to you because your employer has a suddent interest in SEV. Academic really is in the eye of the beholder (and of those who pay the bills). > That is not really true. The dma API can't handle faulting of coherent pages > which is what this series is really all about supporting also with SEV > active. To handle the case where we move graphics buffers or send them to > swap space while user-space have them mapped. And the only thing we need to support the fault handler is to add an offset to the dma_mmap_* APIs. Which I had planned to do for Christian (one of the few grapics developers who actually tries to play well with the rest of the kernel instead of piling hacks over hacks like many others) anyway, but which hasn't happened yet. > Still, I need a way forward and my questions weren't really answered by > this. This is pretty demanding. If you "need" a way forward just work with all the relevant people instead of piling ob local hacks.