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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6A41C433EF for ; Thu, 23 Jun 2022 18:24:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237100AbiFWSYS (ORCPT ); Thu, 23 Jun 2022 14:24:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237625AbiFWSXE (ORCPT ); Thu, 23 Jun 2022 14:23:04 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63FE46B8C8; Thu, 23 Jun 2022 10:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656005141; x=1687541141; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=vHwbYaqCBCoqzOQKDfPiq0BoCvHrZ6olun8Iahpo+5k=; b=N37xkMnBkMf/l7aoVy/40LnYHUEnObFwnrW7kNdpsQBxcDY3rylnoI/k Yb68qsWyo3ewd5fF7Jak2pGBwV101ZjT6Zro1UVMvu/+SUG/uocDJOKnf 0CXIuiyR5jQtGvAujws+hFMrjaQTDcvg23yQReZzncFchXSU/1CBc4EHY IpiJuEVt30FyAlPgkl/3uhrmnryICxDcx2GoOeZFUPGE1evEP/FNs7aTu SwVaR6O5oNntkRxYU9O9bDYnl6xojWkxb9Dvh6iB7AQGnjEB1hYppxbjt e2IQ3eGOYV2FGawc/ucAdsjGOsH2W1s/yNHC7hkiShZZm4ZockvdALSPq Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="281516588" X-IronPort-AV: E=Sophos;i="5.92,216,1650956400"; d="scan'208";a="281516588" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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