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 10ED1C64EC4 for ; Thu, 9 Mar 2023 14:37:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231869AbjCIOhn (ORCPT ); Thu, 9 Mar 2023 09:37:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231868AbjCIOhC (ORCPT ); Thu, 9 Mar 2023 09:37:02 -0500 Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 023FAF63B2 for ; Thu, 9 Mar 2023 06:36:49 -0800 (PST) Received: from 8bytes.org (p5b006afb.dip0.t-ipconnect.de [91.0.106.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id D346522612F; Thu, 9 Mar 2023 15:36:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1678372607; bh=YEVQxyXVIWhtxmM89JVtDEvi45tG9UXS9RSbGs8FK7k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xCatCVjyEy4xQJHvjjbD2l9cMxXCXww3G7LEduHxM1vfuSPjxWRZg2kYog+LA0Wnk bAJrDbNQKKKbVV0Z3qrDvbqaZrCPE641s9105ZPbxhOLLA4uIfNZgZhLveaHzUOoFw ttR8WZFVJf9vZNlw8vQ43LUzsdU0ovlLOyu3NwD5+Kto4lKnZRokXfwpAcfsrYqMAC xXNHm1ZsKNVrU9YJK+NO1cvqS4pfNCf1VyYdeJ/BF9ebc7KhCajE0fNygY9zIJkQNd utNI0fJbSTdI1Y1uWTaEyB1W1JZ1HJUUfwT7eEkvsINHZcyAsOmlj/fCs7Q8UetRov 2n+MpjSTBe+gQ== Date: Thu, 9 Mar 2023 15:36:45 +0100 From: =?iso-8859-1?Q?J=F6rg_R=F6del?= To: Tom Lendacky Cc: Borislav Petkov , David Woodhouse , Dave Hansen , "Michael Kelley (LINUX)" , Sean Christopherson , "hpa@zytor.com" , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "luto@kernel.org" , "peterz@infradead.org" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "lpieralisi@kernel.org" , "robh@kernel.org" , "kw@linux.com" , "bhelgaas@google.com" , "arnd@arndb.de" , "hch@lst.de" , "m.szyprowski@samsung.com" , "robin.murphy@arm.com" , "brijesh.singh@amd.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "dave.hansen@linux.intel.com" , Tianyu Lan , "kirill.shutemov@linux.intel.com" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "ak@linux.intel.com" , "isaku.yamahata@intel.com" , "dan.j.williams@intel.com" , "jane.chu@oracle.com" , "tony.luck@intel.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-arch@vger.kernel.org" , "iommu@lists.linux.dev" Subject: Re: [PATCH v5 06/14] x86/ioremap: Support hypervisor specified range to map as encrypted Message-ID: References: <255249f2-47af-07b7-d9d9-9edfdd108348@intel.com> <20230306215104.GEZAZgSPa4qBBu9lRd@fat_crate.local> <20230309115937.GAZAnKKRef99EwOu/S@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 09, 2023 at 08:19:58AM -0600, Tom Lendacky wrote: > I believe Joerg added that key for performance reasons, since it is used on > the exception path and can avoid all the calls to cc_platform_has(). I think > that key should stay. Yes, that is right. The key is mainly for the NMI entry path which can be performance relevant in some situations. For SEV-ES some special handling is needed there to re-enable NMIs and adjust the #VC stack in case it was raised on the VC-handlers entry path. Regards, Joerg