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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE82CC43334 for ; Thu, 23 Jun 2022 17:25:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6EAFD8E016A; Thu, 23 Jun 2022 13:25:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 69A5D8E0144; Thu, 23 Jun 2022 13:25:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 53B378E016A; Thu, 23 Jun 2022 13:25:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 450658E0144 for ; Thu, 23 Jun 2022 13:25:42 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1612320ADE for ; Thu, 23 Jun 2022 17:25:42 +0000 (UTC) X-FDA: 79610177724.28.551E43B Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf31.hostedemail.com (Postfix) with ESMTP id 3B98320027 for ; Thu, 23 Jun 2022 17:25:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656005140; x=1687541140; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=vHwbYaqCBCoqzOQKDfPiq0BoCvHrZ6olun8Iahpo+5k=; b=lg5AzSoMxZ2sUiu2bk9udByv6fZzD/LR8RWg6LjvYnBg2VcblzYGSZpf s2qWVFxuDCSZdAWrwXWzgE1FbQLbQPisi2ln1mGdLnW+WXrdgE0lY1bG/ yMcH8PSj4vNYiTUcKC3ZS3bcD9paCtlthZzp0cNf2iQUEGd323pKtIfR0 mNY/BxTmz3vfXr9TkqVjbD5v9oELgu7eHRrKofHt7vxWBbC9pu+JQW0YY ihQZQl+FMp749VR+U3vsrobYDsYkO6uVVJG2YmQncw5aHAPROTb+Ej+sT 5w5U9swLRR1eVpk5PlXtwsP2/3FtLcVOuMjlv0A5W62bNcEa7Ag2T3Rlq Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="367105994" X-IronPort-AV: E=Sophos;i="5.92,216,1650956400"; d="scan'208";a="367105994" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 10:25:38 -0700 X-IronPort-AV: E=Sophos;i="5.92,216,1650956400"; d="scan'208";a="563531953" Received: from ckeane-mobl1.amr.corp.intel.com (HELO [10.209.81.98]) ([10.209.81.98]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 10:25:37 -0700 Message-ID: Date: Thu, 23 Jun 2022 10:25:11 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCHv7 12/14] x86/tdx: Make _tdx_hypercall() and __tdx_module_call() available in boot stub Content-Language: en-US To: "Kirill A. Shutemov" , Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel Cc: Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , Mike Rapoport , David Hildenbrand , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220614120231.48165-13-kirill.shutemov@linux.intel.com> From: Dave Hansen In-Reply-To: <20220614120231.48165-13-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656005140; h=from:from:sender: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=FjCcDwRf3/vt/LaKDSh6k0mhk1KjdLzaGNfwJlipX7w=; b=A5xandMn2lF67TqoF7rMwPWttUVVwy4jSYKrl4FLfL0SYwiOdF3Ent0k4XPwXyrDLx2OM1 kMQGGd0HhcfJSZIavoTG8vDToW/CpwRAF/ZA3drHA1ior6t8WUIZiljl6LKvpPEtlmuowJ gAsrjEk84zAejwirIn/Ly2MtVBfDwx0= ARC-Authentication-Results: i=1; imf31.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=lg5AzSoM; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf31.hostedemail.com: domain of dave.hansen@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=dave.hansen@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656005140; a=rsa-sha256; cv=none; b=jERfGKvJjyq1w4MJtPm+LwdFKct64zcF7RK1tEkYBL3ZYgIYU9TSOfG9Z8RjXuhrFl5r0M N9A4TwY4usMaEfEjLMxYIZlmovPyK7BRO16DI4V1k2lduG2KYEr0C2wjFQhB4ivjyiTSeA eYk2skceqDhMgUwZp1LAKGjhsn4UL8Y= X-Rspamd-Queue-Id: 3B98320027 Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=lg5AzSoM; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf31.hostedemail.com: domain of dave.hansen@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=dave.hansen@intel.com X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: web46bupwhoou4xrtay5e69nczd6g7b3 X-HE-Tag: 1656005139-392123 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 6/14/22 05:02, Kirill A. Shutemov wrote: > Memory acceptance requires a hypercall and one or multiple module calls. > > Make helpers for the calls available in boot stub. It has to accept > memory where kernel image and initrd are placed. > > Signed-off-by: Kirill A. Shutemov > --- > arch/x86/coco/tdx/tdx.c | 26 ------------------ > arch/x86/include/asm/shared/tdx.h | 45 +++++++++++++++++++++++++++++++ > arch/x86/include/asm/tdx.h | 19 ------------- > 3 files changed, 45 insertions(+), 45 deletions(-) Reviewed-by: Dave Hansen