Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1311079ybe; Thu, 5 Sep 2019 13:33:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyf/8aDjiwuvuZ10GzIo2PGq6+T8aLAks3jkwHIg++rMKJsIochoLhaKc35LgDXOgvL6sT1 X-Received: by 2002:a17:902:ac98:: with SMTP id h24mr5641124plr.27.1567715603859; Thu, 05 Sep 2019 13:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567715603; cv=none; d=google.com; s=arc-20160816; b=Jt/gqD+qvayUTZRlYULa8kDtfs4LWcskHuM7IhY3P7B6h3SdM1SOYGEpdBbegqrJBh lTS5QDl82oLlCHU9bbpXutm6+U1Keo+93ypINfraYelxD3UYG5TWlvlLVWpVQuO0JadI CnL+fpGTnFkBx42vUGLbA3J5BXi0ImSMtynXv3p7stT6EwY2Tg7nPFmCvlvzCys93dDR EBM9F9W7Tz4buT617jW6Zgx6vCHfmL1PtwKPML9BLTei9NyHmQhywBNULang0z++YHLt iBHU0dUkZX/eex+UE+gYIE/Ot3tB8Yehgaf4c9/erZ1qbFrDwkKLCIq8d9Fy5FqgVzv2 ZSOg== 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=4QFZgq5+nT5oEr4DTI39fauvfzjjEc39wNO2ExmrIoY=; b=vcCfAKBWnXMEpkA0IHBbNtaZPddR5I0KqoadG2nsixCL5Q+bnAuNgCov7qtR0ySxBb K3DFwvC+rxhzTJJkEWRLzKB+tHuWLzl6z9fmQHtilQk6yI6emFoBF/R3Ng6/aNASHIHw uK6y/9d6GvOBzODGqiFZBe+JfKxu7B6r4/Rgpvw1ncPRj8H1PNVJonZoXKF7JTd+vx2f RJ5mAm04N6rHtY4DZ2BD93wNIMbp4yLk99eL8qKr50mul6vOW+8rfkrqQYK9uop3e+2A Kt4qoeNNBR7jOcDG6EOLR3I+HroKChsHdqS3frd12t2yT7NkCH/b1yuCP4PKUS++fFAj H6/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KODwrZv8; 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 90si2042025plf.311.2019.09.05.13.32.55; Thu, 05 Sep 2019 13:33:23 -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=KODwrZv8; 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 S2388090AbfIEPYm (ORCPT + 99 others); Thu, 5 Sep 2019 11:24:42 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54672 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731938AbfIEPYl (ORCPT ); Thu, 5 Sep 2019 11:24:41 -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=4QFZgq5+nT5oEr4DTI39fauvfzjjEc39wNO2ExmrIoY=; b=KODwrZv8ccEHHsY0uJ8BlzfL7B UtpzVL7jqpuJ/FUxOYe76sI9fzucF0D+jEeZLiKxfGCeaDdRMzOTVYMNFezcEQgqu6rLLB15GAgZ7 i7zy+Ofc81azhr5CM7Ok4MaxAXe9T4po8hU44gXx4TnEfneNYMPLBsUEshutsy2pZtKadP6/8evoP 2boIUWC6cOGOYlDBdDS/6pvDSBD+yjZ/aYcjp99wUThEcBL3UbgEbVYsektsu9sMYhplkMwZvlorD xeg+mx6QuduxJr/65Dwb8NStJbN07JEWKhTTRfkclF6lYh4TS4myY7SeGZuhw2GiMOt3bXTMNiSAS AHjrlKPA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1i5tck-0004zu-5S; Thu, 05 Sep 2019 15:24:38 +0000 Date: Thu, 5 Sep 2019 08:24:38 -0700 From: Christoph Hellwig To: Thomas =?iso-8859-1?Q?Hellstr=F6m_=28VMware=29?= Cc: Dave Hansen , linux-kernel@vger.kernel.org, x86@kernel.org, pv-drivers@vmware.com, Thomas Hellstrom , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Christoph Hellwig , Christian =?iso-8859-1?Q?K=F6nig?= , Marek Szyprowski , Tom Lendacky Subject: Re: [RFC PATCH 1/2] x86: Don't let pgprot_modify() change the page encryption bit Message-ID: <20190905152438.GA18286@infradead.org> References: <20190905103541.4161-1-thomas_os@shipmail.org> <20190905103541.4161-2-thomas_os@shipmail.org> <608bbec6-448e-f9d5-b29a-1984225eb078@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Thu, Sep 05, 2019 at 05:21:24PM +0200, Thomas Hellstr?m (VMware) wrote: > On 9/5/19 4:15 PM, Dave Hansen wrote: > > Hi Thomas, > > > > Thanks for the second batch of patches! These look much improved on all > > fronts. > > Yes, although the TTM functionality isn't in yet. Hopefully we won't have to > bother you with those though, since this assumes TTM will be using the dma > API. Please take a look at dma_mmap_prepare and dma_mmap_fault in this branch: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-mmap-improvements they should allow to fault dma api pages in the page fault handler. But this is totally hot off the press and not actually tested for the last few patches. Note that I've also included your two patches from this series to handle SEV.