From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D72EC433EF for ; Tue, 1 Mar 2022 11:43:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234612AbiCALoV (ORCPT ); Tue, 1 Mar 2022 06:44:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232601AbiCALoV (ORCPT ); Tue, 1 Mar 2022 06:44:21 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5843054BF3; Tue, 1 Mar 2022 03:43:40 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 5C51F68AFE; Tue, 1 Mar 2022 12:43:35 +0100 (CET) Date: Tue, 1 Mar 2022 12:43:35 +0100 From: Christoph Hellwig To: Andrew Cooper Cc: Christoph Hellwig , "iommu@lists.linux-foundation.org" , "x86@kernel.org" , Anshuman Khandual , Tom Lendacky , Konrad Rzeszutek Wilk , Stefano Stabellini , Boris Ostrovsky , Juergen Gross , Joerg Roedel , David Woodhouse , Lu Baolu , Robin Murphy , "linux-arm-kernel@lists.infradead.org" , "xen-devel@lists.xenproject.org" , "linux-ia64@vger.kernel.org" , "linux-mips@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-riscv@lists.infradead.org" , "linux-s390@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "tboot-devel@lists.sourceforge.net" , "linux-pci@vger.kernel.org" Subject: Re: [PATCH 08/12] x86: centralize setting SWIOTLB_FORCE when guest memory encryption is enabled Message-ID: <20220301114335.GA2881@lst.de> References: <20220301105311.885699-1-hch@lst.de> <20220301105311.885699-9-hch@lst.de> <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-hyperv@vger.kernel.org On Tue, Mar 01, 2022 at 11:39:29AM +0000, Andrew Cooper wrote: > This isn't really "must".  The guest is perfectly capable of sharing > memory with the hypervisor. > > It's just that for now, bounce buffering is allegedly faster, and the > simple way of getting it working. Yeah, I guess you щould just share/unshare on demand. But given that this isn't implemented it is a must in the current kernel. But if you want a different wording suggest one and I'll put it in. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Date: Tue, 01 Mar 2022 11:43:35 +0000 Subject: Re: [PATCH 08/12] x86: centralize setting SWIOTLB_FORCE when guest memory encryption is enabled Message-Id: <20220301114335.GA2881@lst.de> List-Id: References: <20220301105311.885699-1-hch@lst.de> <20220301105311.885699-9-hch@lst.de> <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> In-Reply-To: <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Andrew Cooper Cc: Christoph Hellwig , "iommu@lists.linux-foundation.org" , "x86@kernel.org" , Anshuman Khandual , Tom Lendacky , Konrad Rzeszutek Wilk , Stefano Stabellini , Boris Ostrovsky , Juergen Gross , Joerg Roedel , David Woodhouse , Lu Baolu , Robin Murphy , "linux-arm-kernel@lists.infradead.org" , "xen-devel@lists.xenproject.org" , "linux-ia64@vger.kernel.org" , "linux-mips@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-riscv@lists.infradead.org" , "linux-s390@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "tboot-devel@lists.sourceforge.net" , "linux-pci@vger.kernel.org" On Tue, Mar 01, 2022 at 11:39:29AM +0000, Andrew Cooper wrote: > This isn't really "must".  The guest is perfectly capable of sharing > memory with the hypervisor. > > It's just that for now, bounce buffering is allegedly faster, and the > simple way of getting it working. Yeah, I guess you щould just share/unshare on demand. But given that this isn't implemented it is a must in the current kernel. But if you want a different wording suggest one and I'll put it in. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0751C433F5 for ; Tue, 1 Mar 2022 11:43:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 811488128C; Tue, 1 Mar 2022 11:43:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N0c3zdKOGvgU; Tue, 1 Mar 2022 11:43:43 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id 76DFF81289; Tue, 1 Mar 2022 11:43:43 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 58392C0077; Tue, 1 Mar 2022 11:43:43 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 55E17C001A for ; Tue, 1 Mar 2022 11:43:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 410ED414E2 for ; Tue, 1 Mar 2022 11:43:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mHYvM0m5uswu for ; Tue, 1 Mar 2022 11:43:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by smtp4.osuosl.org (Postfix) with ESMTPS id 607D34034D for ; Tue, 1 Mar 2022 11:43:41 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 5C51F68AFE; Tue, 1 Mar 2022 12:43:35 +0100 (CET) Date: Tue, 1 Mar 2022 12:43:35 +0100 From: Christoph Hellwig To: Andrew Cooper Subject: Re: [PATCH 08/12] x86: centralize setting SWIOTLB_FORCE when guest memory encryption is enabled Message-ID: <20220301114335.GA2881@lst.de> References: <20220301105311.885699-1-hch@lst.de> <20220301105311.885699-9-hch@lst.de> <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: "linux-hyperv@vger.kernel.org" , "x86@kernel.org" , "linux-ia64@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-riscv@lists.infradead.org" , Christoph Hellwig , "linux-s390@vger.kernel.org" , Stefano Stabellini , Konrad Rzeszutek Wilk , "tboot-devel@lists.sourceforge.net" , "xen-devel@lists.xenproject.org" , David Woodhouse , Tom Lendacky , Anshuman Khandual , Boris Ostrovsky , "linux-arm-kernel@lists.infradead.org" , Juergen Gross , "linuxppc-dev@lists.ozlabs.org" , "linux-mips@vger.kernel.org" , "iommu@lists.linux-foundation.org" , Robin Murphy X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" T24gVHVlLCBNYXIgMDEsIDIwMjIgYXQgMTE6Mzk6MjlBTSArMDAwMCwgQW5kcmV3IENvb3BlciB3 cm90ZToKPiBUaGlzIGlzbid0IHJlYWxseSAibXVzdCIuwqAgVGhlIGd1ZXN0IGlzIHBlcmZlY3Rs eSBjYXBhYmxlIG9mIHNoYXJpbmcKPiBtZW1vcnkgd2l0aCB0aGUgaHlwZXJ2aXNvci4KPiAKPiBJ dCdzIGp1c3QgdGhhdCBmb3Igbm93LCBib3VuY2UgYnVmZmVyaW5nIGlzIGFsbGVnZWRseSBmYXN0 ZXIsIGFuZCB0aGUKPiBzaW1wbGUgd2F5IG9mIGdldHRpbmcgaXQgd29ya2luZy4KClllYWgsIEkg Z3Vlc3MgeW91INGJb3VsZCBqdXN0IHNoYXJlL3Vuc2hhcmUgb24gZGVtYW5kLiAgQnV0IGdpdmVu IHRoYXQKdGhpcyBpc24ndCBpbXBsZW1lbnRlZCBpdCBpcyBhIG11c3QgaW4gdGhlIGN1cnJlbnQg a2VybmVsLiAgQnV0IGlmCnlvdSB3YW50IGEgZGlmZmVyZW50IHdvcmRpbmcgc3VnZ2VzdCBvbmUg YW5kIEknbGwgcHV0IGl0IGluLgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fXwppb21tdSBtYWlsaW5nIGxpc3QKaW9tbXVAbGlzdHMubGludXgtZm91bmRhdGlv bi5vcmcKaHR0cHM6Ly9saXN0cy5saW51eGZvdW5kYXRpb24ub3JnL21haWxtYW4vbGlzdGluZm8v aW9tbXU= From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43D3CC433FE for ; Tue, 1 Mar 2022 11:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dbx9KTlte/F4Qkr7fmEfndqhbzPgV9mwtH3Eu26vwwQ=; b=0wL6r/7BmUbvnH mX7BdCZK6ofnnknLJQ+pJTsVHp8qfLf0vHm+g77/3ASIriyemOpa2nN3FJEYI/rvErTI1kGqSToJs fapx6qpHXizX2SB7zwza2qVMxgKTFM+5EAiJG3yrfRHzaF3t1jHXe/TjnjF0l1xJCxAGWDL93wh8B dzNloPZ4d7D2V7Oe3VhJNiRr4cpC0zlYPNFbgFK7W4sEB+qBPJKGNXQhU3iMJGk6lCKRtbldQyC2V J0PwaLnaI8Vrhxyz1Abbl6e12+tq17qkP8r2e+rb2sHE704NYXZUiJrkasHWnX6D1MWq4o75hxmMl K0z6luWUGBPdmPNgMTlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP0v1-00GSoI-Kj; Tue, 01 Mar 2022 11:43:51 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP0up-00GSjp-Gc; Tue, 01 Mar 2022 11:43:40 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id 5C51F68AFE; Tue, 1 Mar 2022 12:43:35 +0100 (CET) Date: Tue, 1 Mar 2022 12:43:35 +0100 From: Christoph Hellwig To: Andrew Cooper Cc: Christoph Hellwig , "iommu@lists.linux-foundation.org" , "x86@kernel.org" , Anshuman Khandual , Tom Lendacky , Konrad Rzeszutek Wilk , Stefano Stabellini , Boris Ostrovsky , Juergen Gross , Joerg Roedel , David Woodhouse , Lu Baolu , Robin Murphy , "linux-arm-kernel@lists.infradead.org" , "xen-devel@lists.xenproject.org" , "linux-ia64@vger.kernel.org" , "linux-mips@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-riscv@lists.infradead.org" , "linux-s390@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "tboot-devel@lists.sourceforge.net" , "linux-pci@vger.kernel.org" Subject: Re: [PATCH 08/12] x86: centralize setting SWIOTLB_FORCE when guest memory encryption is enabled Message-ID: <20220301114335.GA2881@lst.de> References: <20220301105311.885699-1-hch@lst.de> <20220301105311.885699-9-hch@lst.de> <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220301_034339_733525_715D783B X-CRM114-Status: GOOD ( 13.79 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org T24gVHVlLCBNYXIgMDEsIDIwMjIgYXQgMTE6Mzk6MjlBTSArMDAwMCwgQW5kcmV3IENvb3BlciB3 cm90ZToKPiBUaGlzIGlzbid0IHJlYWxseSAibXVzdCIuwqAgVGhlIGd1ZXN0IGlzIHBlcmZlY3Rs eSBjYXBhYmxlIG9mIHNoYXJpbmcKPiBtZW1vcnkgd2l0aCB0aGUgaHlwZXJ2aXNvci4KPiAKPiBJ dCdzIGp1c3QgdGhhdCBmb3Igbm93LCBib3VuY2UgYnVmZmVyaW5nIGlzIGFsbGVnZWRseSBmYXN0 ZXIsIGFuZCB0aGUKPiBzaW1wbGUgd2F5IG9mIGdldHRpbmcgaXQgd29ya2luZy4KClllYWgsIEkg Z3Vlc3MgeW91INGJb3VsZCBqdXN0IHNoYXJlL3Vuc2hhcmUgb24gZGVtYW5kLiAgQnV0IGdpdmVu IHRoYXQKdGhpcyBpc24ndCBpbXBsZW1lbnRlZCBpdCBpcyBhIG11c3QgaW4gdGhlIGN1cnJlbnQg a2VybmVsLiAgQnV0IGlmCnlvdSB3YW50IGEgZGlmZmVyZW50IHdvcmRpbmcgc3VnZ2VzdCBvbmUg YW5kIEknbGwgcHV0IGl0IGluLgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX18KbGludXgtcmlzY3YgbWFpbGluZyBsaXN0CmxpbnV4LXJpc2N2QGxpc3RzLmlu ZnJhZGVhZC5vcmcKaHR0cDovL2xpc3RzLmluZnJhZGVhZC5vcmcvbWFpbG1hbi9saXN0aW5mby9s aW51eC1yaXNjdgo= From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3DB9C433F5 for ; Tue, 1 Mar 2022 11:44:11 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4K7FlF39nzz3c2P for ; Tue, 1 Mar 2022 22:44:09 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lst.de (client-ip=213.95.11.211; helo=verein.lst.de; envelope-from=hch@lst.de; receiver=) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4K7Fkk0705z2yph for ; Tue, 1 Mar 2022 22:43:41 +1100 (AEDT) Received: by verein.lst.de (Postfix, from userid 2407) id 5C51F68AFE; Tue, 1 Mar 2022 12:43:35 +0100 (CET) Date: Tue, 1 Mar 2022 12:43:35 +0100 From: Christoph Hellwig To: Andrew Cooper Subject: Re: [PATCH 08/12] x86: centralize setting SWIOTLB_FORCE when guest memory encryption is enabled Message-ID: <20220301114335.GA2881@lst.de> References: <20220301105311.885699-1-hch@lst.de> <20220301105311.885699-9-hch@lst.de> <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-hyperv@vger.kernel.org" , "x86@kernel.org" , "linux-ia64@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-riscv@lists.infradead.org" , Christoph Hellwig , "linux-s390@vger.kernel.org" , Stefano Stabellini , Joerg Roedel , Konrad Rzeszutek Wilk , "tboot-devel@lists.sourceforge.net" , "xen-devel@lists.xenproject.org" , David Woodhouse , Tom Lendacky , Anshuman Khandual , Boris Ostrovsky , "linux-arm-kernel@lists.infradead.org" , Juergen Gross , "linuxppc-dev@lists.ozlabs.org" , "linux-mips@vger.kernel.org" , "iommu@lists.linux-foundation.org" , Robin Murphy , Lu Baolu Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Mar 01, 2022 at 11:39:29AM +0000, Andrew Cooper wrote: > This isn't really "must".  The guest is perfectly capable of sharing > memory with the hypervisor. > > It's just that for now, bounce buffering is allegedly faster, and the > simple way of getting it working. Yeah, I guess you щould just share/unshare on demand. But given that this isn't implemented it is a must in the current kernel. But if you want a different wording suggest one and I'll put it in. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 04854C433F5 for ; Tue, 1 Mar 2022 11:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gEAtzIeTMsJEbcJuZs2jryuHufrUV4NwTWn4QGx4Dpk=; b=m3Vcijqqc9HKbr rmB+J7A841GyAhaeTae4Ye5HQBaW2Sf2ab27+a1YtPnOV3Bbt0O5w4n+fxSBt5xFru0ujCE6eG1Ww 73D1afrFeX7B72d8GlxA+hSg1Nki4/Zubm/Xe7btXoFda2WgtStyUcoF4ZYhLZ8YZCXA+AP0IZ0SE E6A0NBGdK/rK0suabaJ00SxMyr1Xu+jEf/tFBhypq8z8vnJi4XKyjUGN1l9IaWmNVHILL8u9GG7eb zvx+qF7WFudfWj88pfR4Cz0BEBzAbbpvWAfzeU+jmEfxZetlgsYcnwfqbfxG2KFQqyJQSSCpEca1M WsMEecEmo2uAwPTHM2wA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP0ut-00GSkm-3J; Tue, 01 Mar 2022 11:43:43 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP0up-00GSjp-Gc; Tue, 01 Mar 2022 11:43:40 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id 5C51F68AFE; Tue, 1 Mar 2022 12:43:35 +0100 (CET) Date: Tue, 1 Mar 2022 12:43:35 +0100 From: Christoph Hellwig To: Andrew Cooper Cc: Christoph Hellwig , "iommu@lists.linux-foundation.org" , "x86@kernel.org" , Anshuman Khandual , Tom Lendacky , Konrad Rzeszutek Wilk , Stefano Stabellini , Boris Ostrovsky , Juergen Gross , Joerg Roedel , David Woodhouse , Lu Baolu , Robin Murphy , "linux-arm-kernel@lists.infradead.org" , "xen-devel@lists.xenproject.org" , "linux-ia64@vger.kernel.org" , "linux-mips@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-riscv@lists.infradead.org" , "linux-s390@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "tboot-devel@lists.sourceforge.net" , "linux-pci@vger.kernel.org" Subject: Re: [PATCH 08/12] x86: centralize setting SWIOTLB_FORCE when guest memory encryption is enabled Message-ID: <20220301114335.GA2881@lst.de> References: <20220301105311.885699-1-hch@lst.de> <20220301105311.885699-9-hch@lst.de> <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8e623a11-d809-4fab-401c-2ce609a9fc14@citrix.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220301_034339_733525_715D783B X-CRM114-Status: GOOD ( 13.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org T24gVHVlLCBNYXIgMDEsIDIwMjIgYXQgMTE6Mzk6MjlBTSArMDAwMCwgQW5kcmV3IENvb3BlciB3 cm90ZToKPiBUaGlzIGlzbid0IHJlYWxseSAibXVzdCIuwqAgVGhlIGd1ZXN0IGlzIHBlcmZlY3Rs eSBjYXBhYmxlIG9mIHNoYXJpbmcKPiBtZW1vcnkgd2l0aCB0aGUgaHlwZXJ2aXNvci4KPiAKPiBJ dCdzIGp1c3QgdGhhdCBmb3Igbm93LCBib3VuY2UgYnVmZmVyaW5nIGlzIGFsbGVnZWRseSBmYXN0 ZXIsIGFuZCB0aGUKPiBzaW1wbGUgd2F5IG9mIGdldHRpbmcgaXQgd29ya2luZy4KClllYWgsIEkg Z3Vlc3MgeW91INGJb3VsZCBqdXN0IHNoYXJlL3Vuc2hhcmUgb24gZGVtYW5kLiAgQnV0IGdpdmVu IHRoYXQKdGhpcyBpc24ndCBpbXBsZW1lbnRlZCBpdCBpcyBhIG11c3QgaW4gdGhlIGN1cnJlbnQg a2VybmVsLiAgQnV0IGlmCnlvdSB3YW50IGEgZGlmZmVyZW50IHdvcmRpbmcgc3VnZ2VzdCBvbmUg YW5kIEknbGwgcHV0IGl0IGluLgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX18KbGludXgtYXJtLWtlcm5lbCBtYWlsaW5nIGxpc3QKbGludXgtYXJtLWtlcm5l bEBsaXN0cy5pbmZyYWRlYWQub3JnCmh0dHA6Ly9saXN0cy5pbmZyYWRlYWQub3JnL21haWxtYW4v bGlzdGluZm8vbGludXgtYXJtLWtlcm5lbAo=