Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1320313rwr; Fri, 5 May 2023 12:12:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7uXwqqFKQ5Jecy9D1pBm49077AXw0xEbpxkpJq+YGhR1aBSjhzcy4fMv53dbospou6JHPc X-Received: by 2002:a05:6a20:3d94:b0:d9:6660:8746 with SMTP id s20-20020a056a203d9400b000d966608746mr4519906pzi.18.1683313958310; Fri, 05 May 2023 12:12:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683313958; cv=pass; d=google.com; s=arc-20160816; b=nTiMvamIVpfg9vX0e9BdDQZG6KtfNn5aiiP59f9F42UdLnuMBO2s8Ls5Q2vwIfVE0B R9wySMuTq9l33/2nqNlw1z4VMoVJlii+6T1iORLhDJJzTvgeyjcmDnv7cT6pao3u0nHP mGgLF2iYnsQUZpUhvkUHdkwUYsBTbdHfhF4Fn91jgcnNoWW7Fw2lepW8O/oXH3eSYxPT EZU/R5RWTC8WavlxPoM1KodFxf2/HVeuwgDAvqVVgRTNGBFGs68RxThoqUkq4Q0DIULW kmMVp0LUDn8wFLtAwfT4lgqeFH/x4Z0TC0RuVP6megB6nhR3CS4MgXRGRmFYPFBDKrps FmHg== 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=R1k758Oaau62w21jw395tFMtBwEYwj0L/Y7+MjlUAyE=; b=rf8r+JdGuvUCi4ePLpHv45oY3+T7uBF8nrQ1XdqF8tB0LRLaf8u9G5LRA6oUDQv2uM kuxeCjXoPKQlrrb/sbGpcluFFo2S/wdAYMrRi0/rnVAovkoN9VNfpe1US3pmkZZxh6zr KeEUaGA6mxmXoLtaqGmNCSnwdH2l1c023+Zo8tHyaVpsEmSWyUPFEkj7bqYPZI1S/ApU UwVwNRUD5ZNEdGr3CQ+VpLSWJlD3e6uPCQBxvdPVJHGCGzVIB5i4XvQyQa7vqgEuIL+i VRz55miL1oIeMDzyYLUG0JrsuGBT4b0Fd/UBtBypALufxUtRBC5DpQPjZWaeptOMjGzN qE5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=LP520A9n; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=j6xfQhPh; 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 r13-20020a632b0d000000b0052119deb507si2605249pgr.798.2023.05.05.12.12.24; Fri, 05 May 2023 12:12:38 -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=LP520A9n; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=j6xfQhPh; 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 S233439AbjEETAo (ORCPT + 99 others); Fri, 5 May 2023 15:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbjEETAl (ORCPT ); Fri, 5 May 2023 15:00:41 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FCEE20771; Fri, 5 May 2023 12:00:39 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 345Hhaup028946; Fri, 5 May 2023 19:00:05 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=R1k758Oaau62w21jw395tFMtBwEYwj0L/Y7+MjlUAyE=; b=LP520A9nL5gCEqHHoaUNCl6bZQQ2ZJ4ninDnzSxYUwnjYRq+RN83CBxcMs9m71KQd8N/ vC31IT9k0//7Wiuvaw1MwJVTvLEe+uK2/er2Cx65/fxrLzblcKCJqlQxsHAdeK8h94BO Wr4x7+R0aXnkprqKnGTLEq7O+A3BTWJYrSCkvrG0kuDbGOvdO08OK7/oxKw85ufd99aU ybNPnMPWpbWO6ySYHucwVUmoqN0wFYUnnAAb7M6gQn75GpPMSypasrJtKWW7UqUdDoZ+ n1o4c/cEd46D6mgb41Wbf+XF9a5JhvCjs/CKUz6WRDDheAtg1tvyia+GIeKDEI7eRvRC 0g== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q8t5fwk9p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 05 May 2023 19:00:05 +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 345IU6RM015313; Fri, 5 May 2023 19:00:03 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3q8spghas8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 05 May 2023 19:00:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BaHPVmiigtmwvOPs8G+ljt31WRpStkCDsNKGoDAQS7xcbpxW5rLXarGM+VJnFycAxo2paXE4DInGvAzO5qPE4kHmS2+loiSl1O3N8rHUcrhAPtsUJ29fC0IeLjdtoVWGJQKf0HYJlTtACYfMkIlW9h3q3uWMNKZT2EGgMWfoe6WyNZcDJ9I5jtIpJr4wZIliOPPaHzDP1tGOROI1XbgRR2aVspyKGD3Be1oHecHJY219wefm1F9cRcuDh+i/K0tfl+m9LAyMYS7ZDQO57ZiZOwvDdsJoitwKXhNY+kLJrXa9Lfhrn7xQGdiQxq+/Vs/Yb2WBmiOJ3qMrGyMIZBwNEw== 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=R1k758Oaau62w21jw395tFMtBwEYwj0L/Y7+MjlUAyE=; b=DXrR0xBFo5yzX3QbSR59IVXaDTJvJD72ZHutmdPt52EGV7/H5c3TJMxdvAi+zG28eWIbaAgAHzJvMOPUmbdkHpwJJV/4RfaGlVNHZnpSQhaRFS2JPRHLipJ1y61leOCO8v6ySokzS1E2sxV/b5ysqw2M3W6NIrasjv2K79hkkKySEXZ8oyAX0E5BoE+ruEoHy+xIs7mvy4SSQTVR4IdenZU27JOX/rUUSUCvxCuj92XgFhoZPtVJXcKj7/0mkExCeP9Q7XYFoTvgZsDX+Ob30cjrQcaYtw+QbX26Ghqc2pPR4f1r0JxoDfffUHo/+6dT5aEFgjLRcbA2kA99wGCMOQ== 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=R1k758Oaau62w21jw395tFMtBwEYwj0L/Y7+MjlUAyE=; b=j6xfQhPhjdJjzAUWir/mYbc96wUbSwcXpG51HBquU16f15qrc8JRD9PtOc0VANGPKTQ4lNs5bnT3Re7Dhc5Vik8N/RkpAkQVZsl+c9Eq7SJnB2gNBMHfBYmWAc65aEDBlQ9zrFCnyKN6XcIBvHKtKY1qj0xFnz4nZhk56EzzDys= Received: from BY5PR10MB3793.namprd10.prod.outlook.com (2603:10b6:a03:1f6::14) by PH8PR10MB6528.namprd10.prod.outlook.com (2603:10b6:510:228::17) 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 19:00:01 +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 19:00:01 +0000 Message-ID: <4a174baa-a60d-4d16-683d-80729f0c85af@oracle.com> Date: Fri, 5 May 2023 14:59:57 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v6 09/14] x86: Secure Launch SMP bringup support 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-10-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: CH2PR10CA0008.namprd10.prod.outlook.com (2603:10b6:610:4c::18) To BY5PR10MB3793.namprd10.prod.outlook.com (2603:10b6:a03:1f6::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3793:EE_|PH8PR10MB6528:EE_ X-MS-Office365-Filtering-Correlation-Id: bb310347-7bee-40d0-fbb9-08db4d9aed96 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zRq8wdmhcXF82lWuQ8/FiVXfEyw39xv7aJZeCRdQW4LmsSTqDzkOQ9LdRyDeqU55cAsWOQiVgqgB/uRGnvRv8gATExkhGe9aPFdtcVKcxPS87gZFK3CTQaQVAZ+2L7S1FV3MKo/g9jTLtlL6hKscLBuNqUFhxbTPmAUg7Lg7UMNNwCZNJglK9w+WaFP/eyVG+0DgTeovVONO55aOhWRxBgK0aj2D7AAZJ98Q1I8ES3nSPG3ovH5fEhtCXaeH7OzuiE67gw0V+lHIXqC8yZmO5BWtQ2Vyz3QJS7G19Td5KUU7DcDiVISyl1iiAB4y67todYTHptfxBL1Z2tskIv2wvBleaSW+2KEmfzMOnhgRstZaFBkzGNpTwxbwWW2+dTZdZVBMcjw59sB5K1a9v3dNlu+EeK0/Dq2kKM4VFUEiJ3vd9PcG1KgHrY3bvSMQzZIU8KtBMtbJyeB4NSZRzsEf6DDWBE6lsql8rQ4iURwNkHdJfkueWPg37mpC/304GcDsyYJyAjtQOJSR1PdtxAE+Th2IfENGXcJ5lvBdyZ39pf1yFcTNcXTWkG27llwspnAZC1/C0b0x1t3Tamdj1Lcc9BgDlfM0EvZQr9HthQlkH67QepV3a2gV5JKMq3j+YrU3e0IytXuZDfm2m3nX3T+mzQ== 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)(346002)(376002)(136003)(396003)(366004)(39860400002)(451199021)(2906002)(6916009)(8936002)(66556008)(66946007)(8676002)(316002)(4326008)(66476007)(31686004)(41300700001)(478600001)(7416002)(44832011)(6486002)(6666004)(6512007)(5660300002)(53546011)(6506007)(186003)(2616005)(36756003)(86362001)(31696002)(38100700002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QVlXZE1BYWZTczMyMlJCS1RZMTcweHV3VkxDV0VjWTFUR0prb3YyNXBCTXlT?= =?utf-8?B?QkM3Y0Q2TEdsVDI2bVFqTkV1dG1vOHp6c2pmUWh6c0FmSlVxbStZMkNJZTlz?= =?utf-8?B?TnZlS2h2ZUpiK3cvNUhLSWVFRzcyQnRCeTFKMjZXUXdnaW5HMkpNcjgwTGl3?= =?utf-8?B?UUNjQmlpbWdwcFhLd0I5VmVydE5hNDg5RDJYSEVIRHJBQ3lBd1Z5czN6Umtw?= =?utf-8?B?eWVnbTBwVn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djgxWGtl?= =?utf-8?B?VHBCYkpyZkZBaWhVb2pMK2dMNzJOelE0ZERsYlVSTFRESFFUVlR3a2ZjVXlq?= =?utf-8?B?WWJxb3Q5cjVKTDR5ZkZhdExPYVF1Q2R0R293MGVoNmhmd1hlYkJnSTUyU3hq?= =?utf-8?B?UFhxczNzTyt0cmxMcWVUUldUdHlMcVFVQXpzZTNYL2xrdFdHOTJ5aEJoLzB0?= =?utf-8?Q?M+Mq7NSUI24zbaqqBA=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb310347-7bee-40d0-fbb9-08db4d9aed96 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3793.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 19:00:01.1761 (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: 2qQ0691eFgu045IYECMf1xFELjIOucq1vubfdBCI+6BH+k2uAe5NWSRalvwTxQpafRhkseWV5nqUqGAFmSF9iereL+dVNq+YNhbhiZqIEWY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6528 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_25,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-2305050156 X-Proofpoint-GUID: G_olDgCwebQXrxYicBUWYgvyP4aIiJGY X-Proofpoint-ORIG-GUID: G_olDgCwebQXrxYicBUWYgvyP4aIiJGY 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 13:54, Simon Horman wrote: > On Thu, May 04, 2023 at 02:50:18PM +0000, Ross Philipson wrote: >> On Intel, the APs are left in a well documented state after TXT performs >> the late launch. Specifically they cannot have #INIT asserted on them so >> a standard startup via INIT/SIPI/SIPI cannot be performed. Instead the >> early SL stub code parked the APs in a pause/jmp loop waiting for an NMI. >> The modified SMP boot code is called for the Secure Launch case. The >> jump address for the RM piggy entry point is fixed up in the jump where >> the APs are waiting and an NMI IPI is sent to the AP. The AP vectors to >> the Secure Launch entry point in the RM piggy which mimics what the real >> mode code would do then jumps to the standard RM piggy protected mode >> entry point. >> >> Signed-off-by: Ross Philipson > > Hi Ross, > > just one minor nit on this one. Will fix, thanks. Ross > >> /* >> * NOTE - on most systems this is a PHYSICAL apic ID, but on multiquad >> * (ie clustered apic addressing mode), this is a LOGICAL apic ID. >> @@ -1132,6 +1210,13 @@ static int do_boot_cpu(int apicid, int cpu, struct task_struct *idle, >> cpumask_clear_cpu(cpu, cpu_initialized_mask); >> smp_mb(); >> >> + /* With Intel TXT, the AP startup is totally different */ >> + if ((slaunch_get_flags() & (SL_FLAG_ACTIVE|SL_FLAG_ARCH_TXT)) == > > nit: spaces around '|' > >> + (SL_FLAG_ACTIVE|SL_FLAG_ARCH_TXT)) { >> + boot_error = slaunch_wakeup_cpu_from_txt(cpu, apicid); >> + goto txt_wake; >> + }