Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1221757rwr; Fri, 5 May 2023 10:45:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7bMQ67A4SPNiq9JciRC80trNZGGTi0ZX9mUX1/bVPct0ycCsHnELYEQnCdw2migvrYadQO X-Received: by 2002:a05:6a20:5493:b0:f3:2a0a:795b with SMTP id i19-20020a056a20549300b000f32a0a795bmr3217098pzk.21.1683308705886; Fri, 05 May 2023 10:45:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683308705; cv=pass; d=google.com; s=arc-20160816; b=wLTtc2HLo2R12199xGFssbOvJBt7rj3hdV1mjZmY44qn6xjjI+UR7pP6j54FAwsx9n W92QJktqaEm9P0m+VFkG/b3pFaSwYMIx5YpkU8ISsJkfTHh3wEKh5JrapZmcG5fnY/8V mCt1qekl2DtlQSH/7cjQckxmlmvvWb2i4hLwuBCObxPUtHEY5YYi9ONh3ce6yvXD3yef OmBhNCwwapN2S7d077MratAKqklctirGMFRuZyiV/ZJc89JEEn0Mhi+lVyHpW+m8hN90 nLbfDcfAI+Wv4UzhJka5Z1shgXaqk3rfBhR0VE63O6Ik2StFWq8F+heHM/RAHxh/490+ Hkrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=r8+hdE3GD/wqfG7Reo0WJtA9eTkVZ/vv+1aUzIH56XI=; b=UMk/lI014cYuDFKXXUvGMT1myqVwOM/ss6zHGXE3zPR145JEqwKz6cA83kJB4x5APz j2aw3gc7RHv/ZDzbARlLlUmNWRTarCgoMeIFXtudcV5U/U3zjfKjJXYru7FBk95svklq enGVd/55SSb/1e8/45EHXNB9Cab7UVD5Uunai8Tw58Ga4o+ExvMjACGFsYaSUi/rTm3R LKsF0wm1wAsZaDOMI57ytWdndhTvTb0ptf8t/QejwZvSi2aOvUmctCI2Vy6OCxZf3ppp dvofbrfUicjuzXTVtUxtNXPDyl7w4vh3iZ7lVoKiPtPKtVn+eBDyrA26hOfUtwoC1OiO N3fw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=CjGw71nn; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ghfoQ4k0; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a63f110000000b00518db33cf17si2616744pgi.552.2023.05.05.10.44.48; Fri, 05 May 2023 10:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@oracle.com header.s=corp-2023-03-30 header.b=CjGw71nn; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ghfoQ4k0; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232204AbjEERiU (ORCPT + 99 others); Fri, 5 May 2023 13:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231473AbjEERiS (ORCPT ); Fri, 5 May 2023 13:38:18 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85C7B44A9; Fri, 5 May 2023 10:38:16 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 345EY2l5013299; Fri, 5 May 2023 17:37:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=r8+hdE3GD/wqfG7Reo0WJtA9eTkVZ/vv+1aUzIH56XI=; b=CjGw71nnoZlpy+YRlntdA1YylfvUVW8aYyvX0/B4kdJSYi7d4ZxCNCkWxdHMbIgpWZok rs3IDwQ6jJ4hXUueySTqnozaYuwfzWVkCsjxccv4u4eHlfCsipHoynD2MZxs1VETAKUy 56zWxXgcw+o+Xyb6fYA7tbjJOHasEUKzcRC24KmZDn+C18XCXX4WkjcLKRA4XAB6H3oV s02+zjS9b2ynZOVDKS0cWIS0eAKPOR4JN7GLq54vnC3Qk4kyw1syEEAjt3KAVWrv6CV1 3fKmOhgXZ5v3BBBcTzeG7f6SO26Vw+EmROykkcdAnxv+gtZ+BlcnWpHXiRGJnHezX30u VQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q8sneddj5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 05 May 2023 17:37:52 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 345HMPVZ027515; Fri, 5 May 2023 17:37:52 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3q8spgemfh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 05 May 2023 17:37:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HiZIbN+IkB67ymeOhhzxDIa3gt1CGBIUl91kn6lMtKJIrNDiGGeADme1+70kNA81PRNcldhsRxCk/Kdx317KNoanHr0Fr1I8sP4ZTi8vIVtSduGSnjQYxZXXYxu66Pfrbvyox8heXJGYHa1Tw/xUOHgHrCwDRpu5tw5z2uOyoq7+0o6jyof8d2pxfLV2TYQtKiVAnfgcIS7XUfZD1Jt73r2OKtdRVLieZqli0XxyfXe48mF5FUb6g4FBIcrn/xRv08r/Y/arNSyNNXrMPpamUk40P8PclCuecW6vstQiyi/sJL/BpWhrgBOZDwsqugMOnEM+AeLyTTTeeq+4pNYtdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=r8+hdE3GD/wqfG7Reo0WJtA9eTkVZ/vv+1aUzIH56XI=; b=V7Kxw6JKa2AMDMCUecj/LDbmy9I6345D27G9b0eGhDzMXsqaJRw87FttQPPLqc90YfXfOGNk1nvdjaUZm80GKQKsw1z+c6lYq//MAL5+zlGV8z6/4edjedWWTrzbxRSSO453WQGY+jtJSqY7KAYxnX8Mvw4RatjMdWgnHYNB/XmmCUideM3LAyvFeZMQRsxZGvmEbHRaSCeyaXxML6P7WR+F/Bh3yVzORLX8+bLhsWjaIOM9uVD7Kd6Pxe00hpYrj7fwKPikQBtCIqMghKPj+QZRLyvHazeAfCd5YWqD0sfffnYnSbWIVn78Vy5ecIm70m9W1s/MfE18+xOxjTwqgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r8+hdE3GD/wqfG7Reo0WJtA9eTkVZ/vv+1aUzIH56XI=; b=ghfoQ4k02cyy3h0iJKNOtX/3Lxt5epd7VuVEfnFHVErILrFTsfHUjRHmbOshPjACHBWYM+vjXVVbdXOlnO1gMnq2ksNHAJpMg8nhl0RNsRQYdczaief6EnRZz8EhEQTVYzI20hX3mr1z0W6xWcPtqxDyWAGPeXpP1ZGIOImBHU0= Received: from BY5PR10MB3793.namprd10.prod.outlook.com (2603:10b6:a03:1f6::14) by SJ0PR10MB6301.namprd10.prod.outlook.com (2603:10b6:a03:44d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.22; Fri, 5 May 2023 17:37:49 +0000 Received: from BY5PR10MB3793.namprd10.prod.outlook.com ([fe80::a007:b0c1:5cb:329a]) by BY5PR10MB3793.namprd10.prod.outlook.com ([fe80::a007:b0c1:5cb:329a%5]) with mapi id 15.20.6363.026; Fri, 5 May 2023 17:37:48 +0000 Message-ID: <4c841c3a-a74b-4112-24b0-aa90ab81c46e@oracle.com> Date: Fri, 5 May 2023 13:37:43 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v6 05/14] x86: Secure Launch main header file Content-Language: en-US To: Simon Horman Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-integrity@vger.kernel.org, linux-doc@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux-foundation.org, kexec@lists.infradead.org, linux-efi@vger.kernel.org, dpsmith@apertussolutions.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, ardb@kernel.org, mjg59@srcf.ucam.org, James.Bottomley@hansenpartnership.com, luto@amacapital.net, nivedita@alum.mit.edu, kanth.ghatraju@oracle.com, trenchboot-devel@googlegroups.com References: <20230504145023.835096-1-ross.philipson@oracle.com> <20230504145023.835096-6-ross.philipson@oracle.com> From: Ross Philipson In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BN9PR03CA0734.namprd03.prod.outlook.com (2603:10b6:408:110::19) To BY5PR10MB3793.namprd10.prod.outlook.com (2603:10b6:a03:1f6::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3793:EE_|SJ0PR10MB6301:EE_ X-MS-Office365-Filtering-Correlation-Id: c239adb6-e878-4b3d-43a0-08db4d8f7171 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JGuAR/b8Az36HzseCcWPXicrD7AipXm+Hdf9KosdwfF48zYYWmfuespgsMJQR/mbxMldGHHZGHz8npgdlEDXReAc7NuqC8qHTAkA+LsiOnss+Tw/2k5WYraBlAmWs7WCoLN2yKeqjqhigWtYk8nrdBWiJ2Ktd7kWVkgt/pkD+MobIvUI16Sau8DGahAByhOx26IdmjJ/LYJ5BjsO2WlJzKhkbAuHu0EC33KN7Cr9Z5eGmI85LC/+uyIv7XWwjV1q3YENX4pywTwrjriFZoL6U8DFK6sWjmNQmLhblQPYUe+JP1d1Uc0QXlN7ogEvDG7J5OYdSSbLRGZ1H3ktXeqHeoyXaT+aOCETOB8BImQr8v4PLIbNvu7PyLJzszE8KsB0c4mGzFR45ZWCObg16LuFbAH68RLMZ1Mpe2YPqdwvyXEhZlsmVUvKPGNgHjqIMRP3LOC0SHUcUWBvKsjY5037Z3lZ1Xrraxy0G3K/jdhNsmLXXK2B7y2LWJZJtoN70Xx+GpAaJ2HeqY1b5dFtdaB+VM/0CUh+D43aX+VdVXknVQ4bfNgLHgDNc9Kh1dWneiucTpbImS+a/+rLGcNwnxaWGcqH+yZcu/4dhE//UteVOUAHtM1LsE0NcnrZAkJSHWLl047Jwr7JyoVGnBWJ9Ovw1Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3793.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(376002)(346002)(366004)(396003)(39860400002)(451199021)(31686004)(6666004)(6486002)(478600001)(66476007)(4326008)(66946007)(66556008)(316002)(36756003)(6916009)(86362001)(31696002)(53546011)(6512007)(41300700001)(6506007)(2616005)(8936002)(7416002)(2906002)(5660300002)(44832011)(186003)(8676002)(38100700002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QnlRaFl0UkZ4RlJrWXhnNXMvUFhmSHFobW56UDRiL1JEcUVnVytqSXo5cE40?= =?utf-8?B?MGU1K3JKaTVsdHAyWGRKZW1GMTJaT3pjTEhONVlRbTBJekE3TFZEdG1oU2NM?= =?utf-8?B?c2ZIa2Q0bW1xM2tYamRJNXNxVHY0OXVtTjJ0eFBpYVhXU053MGdnN2ZROXgr?= =?utf-8?B?eEhkUzgwUWJ0clQ3MlU2akFVc0xWazk5RmN1WjRWWkZjaGVibVAwNDdESkRK?= =?utf-8?B?bHJlMmRSUUJ1ZVVTY2picjRydnBXRHRVZ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NzRuQUtUWDVo?= =?utf-8?B?dEZpUUZmTDZBbHNRd2djeE5pd2dMVzcra3VZbnE5NGRNS0paVWNMOHNUdGUy?= =?utf-8?B?dDRGYVp6anFsT1JGTGdEdnlkMm52cndhOWFWWjdUZkdxNU1xdWZnUUc4aTAw?= =?utf-8?B?M3loV2drbUtkSUEySG1NZGIyaTdsMGl2cTdwVjZIbU1yK3ZuWGM0VzE3b0Nq?= =?utf-8?Q?Fz41XujKPBnyrnQN4Y=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: c239adb6-e878-4b3d-43a0-08db4d8f7171 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3793.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 17:37:48.9726 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8jn2+Ub/F9Bi4UFzcdph37mK+cU3C9oU2jwWt6T+nPTX+8ZAFOZvBXJCZwEW+nE8l16E0boQfbpeOTuAcOuJCpDfUbKYLNdUVFQOCFg6ELE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB6301 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-05_24,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 adultscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305050145 X-Proofpoint-GUID: CeVgy_d8EuAn1vVB8Da-ZlM3Y1WC_C9f X-Proofpoint-ORIG-GUID: CeVgy_d8EuAn1vVB8Da-ZlM3Y1WC_C9f X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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-crypto@vger.kernel.org On 5/5/23 12:25, Simon Horman wrote: > On Thu, May 04, 2023 at 02:50:14PM +0000, Ross Philipson wrote: >> Introduce the main Secure Launch header file used in the early SL stub >> and the early setup code. >> >> Signed-off-by: Ross Philipson >> --- >> include/linux/slaunch.h | 513 ++++++++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 513 insertions(+) >> create mode 100644 include/linux/slaunch.h >> >> diff --git a/include/linux/slaunch.h b/include/linux/slaunch.h > > ... > >> +/* TXTCR_STS status bits */ >> +#define TXT_SENTER_DONE_STS (1<<0) >> +#define TXT_SEXIT_DONE_STS (1<<1) > > nit: Please consider using BIT() Ack > > ... > >> +/* >> + * External functions avalailable in mainline kernel. >> + */ >> +extern void slaunch_setup_txt(void); >> +extern u32 slaunch_get_flags(void); >> +extern struct sl_ap_wake_info *slaunch_get_ap_wake_info(void); >> +extern struct acpi_table_header *slaunch_get_dmar_table(struct acpi_table_header *dmar); >> +extern void __noreturn slaunch_txt_reset(void __iomem *txt, >> + const char *msg, u64 error); >> +extern void slaunch_finalize(int do_sexit); > > I think that extern should be avoided. > Perhaps these are in a header file that can be included? Someone in an earlier review asked me to add the externs. The function are not in another header, they are in a C module. > >> + >> +#endif /* !__ASSEMBLY */ >> + >> +#else >> + >> +#define slaunch_setup_txt() do { } while (0) >> +#define slaunch_get_flags() 0 >> +#define slaunch_get_dmar_table(d) (d) >> +#define slaunch_finalize(d) do { } while (0) > > I think it is usual to use static functions for this purpose. > Usually they end up in header files as static inline functions. Yea we can switch to using static functions. Thanks Ross > >> + >> +#endif /* !IS_ENABLED(CONFIG_SECURE_LAUNCH) */ >> + >> +#endif /* _LINUX_SLAUNCH_H */