Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp853680pxb; Thu, 19 Aug 2021 12:59:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFTLU8RWgA13DC4TjZzqb52RtqHh+/j2Q1poZ5d7ZlAAxfv7BVOv8a4ki4JR+M9SF21yq+ X-Received: by 2002:a92:730d:: with SMTP id o13mr11009586ilc.183.1629403160275; Thu, 19 Aug 2021 12:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629403160; cv=none; d=google.com; s=arc-20160816; b=bM+GIXNbzaQKallAeAjIgi+MvmlDXb8E8RNpwja5aHUh4Xcu4ySz82PHgZNtPTWEDk RH8Ih9VaNjeGL6/KR3eTb5v2Kk9eTtd5Pa2zl0V4mo4J1WuvWVVur21/H+hdwgH3OeDq W/gfwY2ttgm92t174OuwxGfajt7wpKygyhRN1cmLjmIXdkJgZj/uKm1Wy7n33b8dcqIN ynY7YmP02o8djPf5TawH7gT1zUHNkBKletunfTT9CPcieHf1T9dDviQYlCX8mC6R0zk0 n8BzBGWdHN/DWMFYDJbBu9mLpWXH1lXAX2MN+uEcq1JEKi2R+z81N1ddsId3fzJh7mek j6bA== 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; bh=xi7NTHR+Le5GahWmUC/MogIvbJeJAOkdSBArH8a+uh4=; b=dmGeK7ibgSK2EoAJY+NcpTqh2CJgDDb9Ui17i7GRZxOqAB9Y4PNPP0l+lojeHirtVZ tTZcKNCC/A693kA6BYj8yy5ugO4bvK+VAkM83h7P5civlENZ0ELzvQZgjcXbyikyxuIC 5nm/ftPfC9MDpQxghXulvKn/omTlhcpX8J+Aroy/VVjLIT6lKm3uXbyDYp2tE0lnNSxZ iyMcgT5PF2EACJJFakAWY4gn72cZw5WkYltIwe1WTgnpbjmWOn1Am6+HF+oFy0IqLQMp GQRYzP4ZoCqFpCgljLb+Vfko8Jgl6/u4prvdk3ZGENDpJ/APhMNwa436rPd879qovbOj bTYQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si4234209ioo.37.2021.08.19.12.59.08; Thu, 19 Aug 2021 12:59:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234904AbhHST6a (ORCPT + 99 others); Thu, 19 Aug 2021 15:58:30 -0400 Received: from mga14.intel.com ([192.55.52.115]:65242 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233995AbhHST62 (ORCPT ); Thu, 19 Aug 2021 15:58:28 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10081"; a="216366474" X-IronPort-AV: E=Sophos;i="5.84,335,1620716400"; d="scan'208";a="216366474" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2021 12:57:52 -0700 X-IronPort-AV: E=Sophos;i="5.84,335,1620716400"; d="scan'208";a="532641597" Received: from kfrangia-mobl1.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.212.58.216]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2021 12:57:50 -0700 Subject: Re: [PATCH v2 03/12] x86/sev: Add an x86 version of prot_guest_has() To: Tom Lendacky , Christoph Hellwig 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, Borislav Petkov , Brijesh Singh , Joerg Roedel , Andi Kleen , Tianyu Lan , Thomas Gleixner , Ingo Molnar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Joerg Roedel References: <7d55bac0cf2e73f53816bce3a3097877ed9663f3.1628873970.git.thomas.lendacky@amd.com> <4272eaf5-b654-2669-62ac-ba768acd6b91@amd.com> From: "Kuppuswamy, Sathyanarayanan" Message-ID: <90316f17-e853-fd23-2ec2-4d03cf283b0b@linux.intel.com> Date: Thu, 19 Aug 2021 12:57:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <4272eaf5-b654-2669-62ac-ba768acd6b91@amd.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 8/19/21 11:33 AM, Tom Lendacky wrote: > There was some talk about this on the mailing list where TDX and SEV may > need to be differentiated, so we wanted to reserve a range of values per > technology. I guess I can remove them until they are actually needed. In TDX also we have similar requirements and we need some flags for TDX specific checks. So I think it is fine to leave some space for vendor flags. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer