Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2905171pxb; Fri, 8 Oct 2021 18:50:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+9avThiaZFffarn/dHLhSZXyGpEsCRGMVrmEbHPWuK57KJOL0DOUZsGJm1GPLMPPeCiGT X-Received: by 2002:a17:906:919:: with SMTP id i25mr8284906ejd.171.1633744245116; Fri, 08 Oct 2021 18:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633744245; cv=none; d=google.com; s=arc-20160816; b=YaFlOSBicWgVal0eSY8W98Rw+s88145YtNTVvcBdTf+H3JzqbYsbRXx3b7U0ucsFOM IDkgPL160FIsOuB18Q9ZLbSalM4atfpodmOlubPbXLZhgV/0eER8hM5NH6OdCXg3Jw28 ZN+qKovHPckAVWtgf3W1KPQ3HSFxbfM55hyMWywxc5fmf97kWs/c3UnkzfIOGU1TIfby g1hUo8oIGe1nCrw2FqipHOpsbJstmamuuxUFFS8eOuY65jyP7sVaG61Bq1jxeQ32kUXU UO9cbwYA2m4bJdVls5a2GN7jTtGN6ef0XOmM5nb1utRCZ67dEvlZ6KUcyQVG5LtsP4No UMoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=8Yhlfpn88xGUZ0D2UsU9ZR1KIwe5CGURq7DLgR1hrBY=; b=jgNDCKO+uqp1BEWm9Fy1vDCGuRW1YvFRgNkavtFWo3Q1R+BVfaC6t8DAvhwtp/7XbX Fzxj+9Vtlju29gBfqKGbze1Vjtl6vQym8XEhFe/snde73j4ccZeKjHNJTKIC4X14lw2m RNydU9BcObd2mGRsqa1ymF9H+s9q18HZz6rCr/mdBTyovq6v0DDKr8qrS32x+BSEdfKh ISxIPMpQLgqrwdLjsaasMv8Y/SAvDpzpQcYcYUCxj/vzBckd03fgCKR5Rp564EqDjuJ4 RcVyAjNF3p585DkvHL/xoc5gS2b2LREZ5lcypGjMyRs2w4qlZHnz3dbeKDygqGx5XJcx Ws6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1Z6zSdy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si1434618ejw.289.2021.10.08.18.50.21; Fri, 08 Oct 2021 18:50:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1Z6zSdy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244074AbhJIBrb (ORCPT + 99 others); Fri, 8 Oct 2021 21:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232063AbhJIBra (ORCPT ); Fri, 8 Oct 2021 21:47:30 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33A1BC061570; Fri, 8 Oct 2021 18:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=8Yhlfpn88xGUZ0D2UsU9ZR1KIwe5CGURq7DLgR1hrBY=; b=1Z6zSdy4U1cnEgkDHFifc+XY8Y GlewY7KjyFBbKH64naXeI41ZeCK2wzbxmLYn8tQReOLUCKAfWokngJdgXzG2kZqfZuukHe0LzGSem /fWn4TtGInc4xujKU9lhTWQmbcOyZPdRobBXzgyYqQiz2V+LCqXMtthT6T+ZQAyQo3oPf9aPdoOkJ XKCfcDJy3GwQcs5wemBALdUGapmhhOQ0Ws+MHquNKSKXMDSnM/RxQhR8WlIXhEXmTBWm/wLd+hHF0 AGJlpBT1b3CurBjVkXBwVF3uizzCjn8R7aZLHlbBj649FMdFXEGzDXcQrpB78Kj/tCgGw8zSXNsVA Vnnceg4Q==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZ1QW-004Rhr-Nh; Sat, 09 Oct 2021 01:45:28 +0000 Subject: Re: [PATCH v5 16/16] x86/tdx: Add cmdline option to force use of ioremap_host_shared To: Kuppuswamy Sathyanarayanan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Bjorn Helgaas , Richard Henderson , Thomas Bogendoerfer , James E J Bottomley , Helge Deller , "David S . Miller" , Arnd Bergmann , Jonathan Corbet , "Michael S . Tsirkin" , Paolo Bonzini , David Hildenbrand , Andrea Arcangeli , Josh Poimboeuf Cc: Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , x86@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, virtualization@lists.linux-foundation.org References: <20211009003711.1390019-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009003711.1390019-17-sathyanarayanan.kuppuswamy@linux.intel.com> From: Randy Dunlap Message-ID: <7b4c3e3e-09e4-3bf8-6e23-77892fb6df02@infradead.org> Date: Fri, 8 Oct 2021 18:45:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211009003711.1390019-17-sathyanarayanan.kuppuswamy@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/8/21 5:37 PM, Kuppuswamy Sathyanarayanan wrote: > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 91ba391f9b32..0af19cb1a28c 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -2076,6 +2076,18 @@ > 1 - Bypass the IOMMU for DMA. > unset - Use value of CONFIG_IOMMU_DEFAULT_PASSTHROUGH. > > + ioremap_force_shared= [X86_64, CCG] > + Force the kernel to use shared memory mappings which do > + not use ioremap_host_shared/pcimap_host_shared to opt-in > + to shared mappings with the host. This feature is mainly > + used by a confidential guest when enabling new drivers > + without proper shared memory related changes. Please note > + that this option might also allow other non explicitly > + enabled drivers to interact with the host in confidential > + guest, which could cause other security risks. This option > + will also cause BIOS data structures to be shared with the > + host, which might open security holes. Hi, This cmdline option text should have a little bit more info. Just as an example/template: acpi_apic_instance= [ACPI, IOAPIC] Format: 2: use 2nd APIC table, if available 1,0: use 1st APIC table default: 0 So what is expected after the "=" sign?... thanks. -- ~Randy