Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6143318iog; Thu, 23 Jun 2022 12:14:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tvy4MYNSLhduIXnrwZvaH7mZM5UZdbwkwLjICP5d5nWozNMs6N6Xswbm3vSGcYvMMWr+zG X-Received: by 2002:a17:90b:1c8e:b0:1ea:4b95:1348 with SMTP id oo14-20020a17090b1c8e00b001ea4b951348mr5550726pjb.153.1656011681071; Thu, 23 Jun 2022 12:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011681; cv=none; d=google.com; s=arc-20160816; b=jFZQCe97x4tqNkkcGW88P4MaXlstqkDokV6FMGW6WqnC5FhuxGAyCq4UHZ6uNbeqM3 tA2SIKj3bTJ1Wgq5BcT1Owhqx2VWuIuYYpAAetRy39wy2SxgjwSXeYoXUzdUEv9BpsM4 A611TLRx4wbMSNgnkqPvM+XOXbJz6obVQpY1ANNtsextCQhibR47Hmvr39ItxojOZOwD mUOxZTBkBVaL8WEbnJ11YqfEdAuJJtdiVMEnqHGH7YnVrZzExefRA1D1Rxptdfm85IDY se7HcR3DbZb/pNMoxyuoL/MqBObI4v1laJuSt/M2uTq0K0njRrwswCDgUAU+lGnPMnnT ymHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FjCcDwRf3/vt/LaKDSh6k0mhk1KjdLzaGNfwJlipX7w=; b=m69vdAt09RYrCw4E5ylTDxpfczch4pr5gZcPUzwtmigh/8kSXJVHE02j5FuSO5g/K7 EaQQqGH4qdflpE6iHJS1hWBQJTC7GvTBNpy+r5qe33CxPc66fnLRX9hK06m0NE0/10CB D7AJYW69txxi2O9HrxvVUtf9xhfoYHGQU5I+MoT4e4Rn407wyVeOT9zXA5XmY+vpUxrZ +h8dJJngl0EBvVzqCN5uia/0OYjL5hg1uK+SIwUX8rPre7J04qifIrrQeTjvVjRaHZV6 lzSd8TB8UNs6aWdZREhMucz7Hzv11cgo2kLB4B4IDFLC3xi16uC+z5x22ysduOJpQK36 qxLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N37xkMnB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a636b08000000b0040cf420e717si11796831pgc.232.2022.06.23.12.14.29; Thu, 23 Jun 2022 12:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N37xkMnB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237098AbiFWSYR (ORCPT + 99 others); Thu, 23 Jun 2022 14:24:17 -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 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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