Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp495523pxj; Thu, 3 Jun 2021 11:43:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4F+7Jw507icYmipOd8/EsFgirxQva/5uxMUh0tRg7qdHGMrMsO/UrGpggAd7y571mik5P X-Received: by 2002:a05:6402:42c1:: with SMTP id i1mr888362edc.62.1622745813531; Thu, 03 Jun 2021 11:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622745813; cv=none; d=google.com; s=arc-20160816; b=eogtACftaouuPzMO/DiVHXWJbayDeez+dfi7qLzMcOl/2WM+loFYj3rdjr+haGwSKh DElP9LQ++vFoVNuoY71j7n7s2vbDC5cx+vdHprDq6bztPMdJRSGeQRB6JmfpmhD9OB8O aWjzrHMp9PawGnP1XVDmKBf8GhK84XGYjAf4AYWECTn9J4ekyuernEyojoxVNhKdr3+y 7MBopxcVf3cJvzrcgVVF9lZeAQ++aFL4cxvy4TQ6QPp2joTjF25QO1wlX+mbAQ/RvObI lA1vB9fyZnGnjkcBnpuhpnG6bV3kMsRZ1CJyrrRZXRFerNcdGPwZ/UyQGSgQZlQiStiw a92Q== 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=psd+ZC8Co6XkZKgFq1VAPYa0k/9qp4aEkZyphaqsnvk=; b=kmRdevNhvytKwskA9Fi6I5rKS0Ey89AyPNs1E8Zz+ZGth1uGtumpv9LpscN2+WkQos xI2gf+XeSl23JLf8lFzln9Nnb3FPELvBFVvqx3xXiKex9WUZDCYyW0x66EpTN/f1fE4x aOuOr2eUdqHW4l79ATRqnorcyl8FX/qWa8FNPo/IzF4ODBPFyp+R6OvxneCX9uL52glk Njv8Y5u04OE9EecfEhrKb2qDn9ZlDarZknx8ugNtpGhqtz3hqOhbJwvC+UnAO5lptmaj cvsKX185ChCO1ZjSAM3IQ7n5wyXB7pwbFNcVu0rWOEio05ublc6fFq3/4KGumMZXowL1 9IyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PquDu7gf; 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 r13si2895942eds.77.2021.06.03.11.43.07; Thu, 03 Jun 2021 11:43:33 -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=PquDu7gf; 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 S229656AbhFCSn1 (ORCPT + 99 others); Thu, 3 Jun 2021 14:43:27 -0400 Received: from mail.skyhub.de ([5.9.137.197]:45860 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbhFCSn0 (ORCPT ); Thu, 3 Jun 2021 14:43:26 -0400 Received: from zn.tnic (p200300ec2f13850043af4c4d530a3258.dip0.t-ipconnect.de [IPv6:2003:ec:2f13:8500:43af:4c4d:530a:3258]) (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 CD6D71EC04A6; Thu, 3 Jun 2021 20:41:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1622745700; 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=psd+ZC8Co6XkZKgFq1VAPYa0k/9qp4aEkZyphaqsnvk=; b=PquDu7gfhoilzg0av43yBAR9Bl/foF8OonwQEIidmP7ibOdlCb8NsTAgDoJXfaA36xJ9jv O/+8gvcM88eeQwaUGnomw1XPrwQqOeCA933ygZGNnLLOCt003HqEvVTiuIfKpJ3hk5XYc9 gIKLKqqQC2gNq5nBg8a2Ubc/2csR7XM= Date: Thu, 3 Jun 2021 20:41:40 +0200 From: Borislav Petkov To: "Kuppuswamy, Sathyanarayanan" Cc: Peter Zijlstra , Andy Lutomirski , Dave Hansen , Tony Luck , Andi Kleen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Dan Williams , Raj Ashok , Sean Christopherson , linux-kernel@vger.kernel.org, Tom Lendacky Subject: Re: [RFC v2-fix-v2 1/1] x86: Introduce generic protected guest abstraction Message-ID: References: <20210527042356.3983284-2-sathyanarayanan.kuppuswamy@linux.intel.com> <20210601211417.2177598-1-sathyanarayanan.kuppuswamy@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 Sathya, please trim your mails when you reply, like I've done in this reply. Thx. On Thu, Jun 03, 2021 at 11:33:53AM -0700, Kuppuswamy, Sathyanarayanan wrote: > I assume this file will get compiled for both SEV and SME cases. Yap. > Since you are checking for AMD vendor ID, why not use amd_protected_guest_has()? Because, as Sean already told you, we should either stick to the technologies: TDX or SEV or to the vendors: Intel or AMD - but not either or. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette