Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1439030pxb; Tue, 17 Aug 2021 11:43:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ1LCp8roAK0mRVzGjRFjBWydUBB88771m57FVE/cyYzfU/NM82UNTxIJHko3nCk9B5Cal X-Received: by 2002:a17:906:580c:: with SMTP id m12mr5576468ejq.32.1629225788843; Tue, 17 Aug 2021 11:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629225788; cv=none; d=google.com; s=arc-20160816; b=q1Qnv2cPiYxkI84EN5382SfrYn8gbjJqGU8QmDxr3WTiqzX7fxKDMr+X10T+fcbc3q Wk4Kq6dUSMc7RJa+KsqTrA9PneVr7Vr3GJiFI9sZsYwuj6DcHsBxFuKNUB7eERStGq51 zGc6Kbxlk1kcUbRTBEfc3kiMZJi0RN87tWU7Jwtx4ee8zmtvzGqj60hW0iK7TCPEau4R EExVssUuR205UYPprYkoeirb+D/qNg5BD3mpzmY/lCjQ6hSq4OQopgrUM7GK53XVlQro +QPqtAm9CGJseZuvLjcNcwnyZhnd1Xy3u+P6hBM4sEjGIzP3HaYDkrb8lLcDRTuSmZHU XAvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Mu7m9OE8hn1eHLfYx7oR23r8CwsnkSOMYvXVJDRjbMo=; b=jyQtIwv/J+69V9k1bJF9FYEe2H+Tq8HIRsTeNeVMjabUKin4t7rIctRVOjxHhOjef1 pHjSWdCQ1+BvHXdQzFGZrqyJg5LaxvfSCm2jhPeH0jJrxSi1s2A7TfnvEuKvD2JSJF27 OKXMXI1aaEuMCjCO5fxysXb5/9Hh/8Py6HRxXXR0hcetGDahwCsFlRvDjfGrG6z6WMYg VB4gT+hnKostWjdYbttiJ+2hwKbmrbGnPhmMyaPkcon0TdOrV51GZCIHkQR3g5m4JMyk RaQ+r6n1BrHLhevzexdYBHdGWupuZYYv8wxDYc1sBVGqW2K4lSsLHUIiv8rcmK9ZWBjc Cs1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=I0qn6AUt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ar8si3058712ejc.257.2021.08.17.11.42.43; Tue, 17 Aug 2021 11:43:08 -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=@alien8.de header.s=dkim header.b=I0qn6AUt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233165AbhHQSlP (ORCPT + 99 others); Tue, 17 Aug 2021 14:41:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbhHQSlM (ORCPT ); Tue, 17 Aug 2021 14:41:12 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F575C061764; Tue, 17 Aug 2021 11:40:39 -0700 (PDT) Received: from zn.tnic (p200300ec2f1175006a73053df3c19379.dip0.t-ipconnect.de [IPv6:2003:ec:2f11:7500:6a73:53d:f3c1:9379]) (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 5B4271EC0559; Tue, 17 Aug 2021 20:40:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1629225632; 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=Mu7m9OE8hn1eHLfYx7oR23r8CwsnkSOMYvXVJDRjbMo=; b=I0qn6AUtEVXgq+V687xy+eoUAd1bpv5rKJDshiFHYS5MZFxF4r/5JMhtSlefZeCCRNhZCw YCIZph50OY4OxP9BWaP4TzteGBvXxj1EaRigmP2l55c3iIKVOwY+/ax6ZOb0eEr0z4M9DO lHw8eOJZ8O/qYS8rn+WSUtQk3/ye1V4= Date: Tue, 17 Aug 2021 20:41:16 +0200 From: Borislav Petkov To: Tom Lendacky Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-graphics-maintainer@vmware.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org, Brijesh Singh , Joerg Roedel , Andi Kleen , Sathyanarayanan Kuppuswamy , Tianyu Lan , Thomas Gleixner , Ingo Molnar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Will Deacon , Joerg Roedel Subject: Re: [PATCH v2 05/12] x86/sme: Replace occurrences of sme_active() with prot_guest_has() Message-ID: References: <2996b1c8-1ea1-0e56-3aad-08b46fc207f0@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2996b1c8-1ea1-0e56-3aad-08b46fc207f0@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 17, 2021 at 09:46:58AM -0500, Tom Lendacky wrote: > I'm ok with letting the TDX folks make changes to these calls to be SME or > SEV specific, if necessary, later. Yap, exactly. Let's add the specific stuff only when really needed. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette