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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CCCFC433F5 for ; Tue, 28 Sep 2021 13:18:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4825B611BD for ; Tue, 28 Sep 2021 13:18:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240871AbhI1NUe (ORCPT ); Tue, 28 Sep 2021 09:20:34 -0400 Received: from mail.skyhub.de ([5.9.137.197]:44230 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240669AbhI1NUd (ORCPT ); Tue, 28 Sep 2021 09:20:33 -0400 Received: from zn.tnic (p200300ec2f13b20058b29c6ae6f5cd57.dip0.t-ipconnect.de [IPv6:2003:ec:2f13:b200:58b2:9c6a:e6f5:cd57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8E4641EC06F0; Tue, 28 Sep 2021 15:18:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1632835132; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=LjcqAr6iC5eAZQwo8NZC/xi/L1XaohYMz5bx+mVoIPM=; b=LobFhPA/kuaLJzh1ln3hzQmeEEf9bDCR/ekZM07TTqfUTgWHGQtRC7c+GxzMNk6vC7nNXp m7qXnk0OBnqqBFJAMRRkEuLPUfo23UvStV7pOc4Vuid6dkdQqYatiuz8vnIog6EkvXFXCj rSW6GTWFxLI6QXsXv/4QyokHieCRNpI= Date: Tue, 28 Sep 2021 15:18:46 +0200 From: Borislav Petkov To: Joerg Roedel Cc: "Kuppuswamy, Sathyanarayanan" , Thomas Gleixner , Ingo Molnar , x86@kernel.org, Paolo Bonzini , Juergen Gross , Deep Shah , VMware Inc , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 04/11] x86/tdx: Add protected guest support for TDX guest Message-ID: References: <20210903172812.1097643-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210903172812.1097643-5-sathyanarayanan.kuppuswamy@linux.intel.com> <20fc6806-0c46-15d6-930b-6b4e90dfee6d@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 03:04:36PM +0200, Joerg Roedel wrote: > Yes, but distributions will enable this in their default configs, so the > function call will happen on every Intel machine, even on bare-metal. The result of whether the guest is a TDX needs to be cached and queried instead anyway: https://lkml.kernel.org/r/YVL4ZUGhfsh1QfRX@zn.tnic -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette