Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2544049rwb; Mon, 7 Nov 2022 14:46:10 -0800 (PST) X-Google-Smtp-Source: AMsMyM4dVPSz1CZqBeYo+6rTyZ6DtQsngiW3HGMyCCX8AcZ7FLyNjKscAu+oJOG/xJS78fb81+p7 X-Received: by 2002:a17:906:eecb:b0:73c:5c85:142b with SMTP id wu11-20020a170906eecb00b0073c5c85142bmr50517863ejb.433.1667861170463; Mon, 07 Nov 2022 14:46:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667861170; cv=pass; d=google.com; s=arc-20160816; b=SgFEpouWU0IYOeUacULLRwQmPpA/FyuHnZnb3Z5xI+dsqqfhjlXqESJSTmgj38258T UULZW8grsyvgrRvXzPaaPM6vS0lAi4uUFM5L1GQTVSywYIVsYKIqcA/RyHmXSkSL496y xDC0CHqmY0/on2u8iIKVlFM4DqCHLqs5HeaqZB/Q0YBp5U43XLOveX7x6wmz8Hlqwv2W dSnsWoe0XxZF1j3n69VtmpM3pdPYaud5tjrdVFyUTcEWggaD9DaxDQRUvLGTtaofglr7 f2Uig5Hj/ARfggaUXBgVbM1gTYpL6ulAjGL8eZU7zdKXKaC0KExqDJLtiAMe3x7nH7qk Rr1Q== 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:subject:from:references:cc:to:content-language :user-agent:date:message-id:dkim-signature; bh=kwTMJ0zseElRsF8yynnzP6Hxm8pgGmAwqEgXqciqQzg=; b=eKWy3S0Kpnbdd6ewPvy+ESLc867pophqwTzYpWSHV+thjoN6GoRpBo8yZAImRGypHi NYRMFvKJjGfwoNRia0O8UBAbxyfUQLrwaw24cgf/eURpI4AQkdjhaK7yorMkMjhXP3lD T8JZEhLl30rx//jIuFPoY92Y75LbwB0rJSW2DingqstwUfHFl7XcYcc1wLb0PvkwxEY8 lOLpjCa4JpYY9ZCMkIFK8E9vl0Pc+fz04lg7dLblU5VE5gY3qM0gmMsyZ4Q9d4dWZtNQ l+mUBKfbBaMbvBKkazyxqhSu/Da3Eao06t0q1tlv1D/8do8uWQDUlG7doPtU9HHYG5fy 4knw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=1wb0H5k2; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a1709066d5500b0078d2a99972fsi7116746ejt.316.2022.11.07.14.45.47; Mon, 07 Nov 2022 14:46:10 -0800 (PST) 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=@amd.com header.s=selector1 header.b=1wb0H5k2; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232422AbiKGWka (ORCPT + 92 others); Mon, 7 Nov 2022 17:40:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231883AbiKGWk3 (ORCPT ); Mon, 7 Nov 2022 17:40:29 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2043.outbound.protection.outlook.com [40.107.223.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331DA205D3; Mon, 7 Nov 2022 14:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=erkLvg4MOAXQ1qZcxc40QSe2EmrQyOFTHl/gpJ9Rsde6k57RtExYmQ1T3BQr3qyB0FEXKwBke6dnjk6nen6aV0qxj+NMycSRmLKOclLI+y+BKuHP+Zf+gepW6xWQSb0klHl5B62aszp3yFdr+ihsdpY4ZJN40+Hny9ocrUOHixUCgSgg5Z1d9Toii4RCjJWrW0KDl0rTALf5TklgsFhJQPXI58IR2n+GpRLs/cIMOVPOaTMfHWWK+txXDiazgi+Outb2hvAdPA3zAktAzgr3ComWH4PfH2yWjPASBVXH9rHRqjzjNHqBLjpuG9e+0ZiAPSnYx9IJMVoSDguurw9hNg== 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=kwTMJ0zseElRsF8yynnzP6Hxm8pgGmAwqEgXqciqQzg=; b=eMkYjH/QTZ6GQz/NTHjXG7eX3xDld/TnlgAQK/Z/sgiSuiuOEBGYH5mBAfbSsBSZKvvkGWfkbfQzPQHch9AtA8vEEcQ0F2Te4gK0BK1v8lbTorbf64M7ym85lhZUgCQzw7wtfyKU6wNqAeOPAxAaVUFuuLady4oOeO7Odgj+yjKPv/sk/EEnsFUApwJPRpoHCarsiXOvrg5vyvVrfmA6NCNJvwWGb65TsHMfU9YMvKh7RYLCS1JbKQw4MtOT/LiQldWtQM6UfPnx1PtKwHuHxme+78JkpS8ooE8KuRADz9qjaw30XcTDS0XpR1DbpuVgFFTba4nQ7cRHNJdwSqcAKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kwTMJ0zseElRsF8yynnzP6Hxm8pgGmAwqEgXqciqQzg=; b=1wb0H5k2IDrI6d9g+gHmk2XHV5EnS/sycs231wbkp3lwLLTiXcW+YuRqSfsFjwBYq31kWT12C1rI2mYTw8UtJTJLbsqFGDbGjdk/QWVvO4Lj9OOTnvabxhMKZLl09EM3/2wcuTsxhhqnWcbNx0Hb59N1kRJ1dez9LSvbfvEqjls= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DS7PR12MB6263.namprd12.prod.outlook.com (2603:10b6:8:95::17) by CH0PR12MB5347.namprd12.prod.outlook.com (2603:10b6:610:d6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.25; Mon, 7 Nov 2022 22:40:21 +0000 Received: from DS7PR12MB6263.namprd12.prod.outlook.com ([fe80::6f5:7c8f:32d9:e72c]) by DS7PR12MB6263.namprd12.prod.outlook.com ([fe80::6f5:7c8f:32d9:e72c%3]) with mapi id 15.20.5791.026; Mon, 7 Nov 2022 22:40:21 +0000 Message-ID: <3ee385a8-b4f4-0124-42e1-0f5c2a393456@amd.com> Date: Mon, 7 Nov 2022 16:40:18 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Content-Language: en-US To: David Laight , 'Borislav Petkov' Cc: "x86@kernel.org" , Boris Ostrovsky , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Joao Martins , Jonathan Corbet , Konrad Rzeszutek Wilk , Paolo Bonzini , Sean Christopherson , Thomas Gleixner , David Woodhouse , Greg Kroah-Hartman , Juergen Gross , Peter Zijlstra , Tony Luck , Babu Moger , Tom Lendacky , "kvm@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20221104213651.141057-1-kim.phillips@amd.com> <20221104213651.141057-3-kim.phillips@amd.com> <49e01e4d819a4e3aa1ef13da6bc654e4@AcuMS.aculab.com> From: Kim Phillips Subject: Re: [PATCH 2/3] x86/speculation: Support Automatic IBRS In-Reply-To: <49e01e4d819a4e3aa1ef13da6bc654e4@AcuMS.aculab.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0PR03CA0360.namprd03.prod.outlook.com (2603:10b6:610:11a::11) To DS7PR12MB6263.namprd12.prod.outlook.com (2603:10b6:8:95::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR12MB6263:EE_|CH0PR12MB5347:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d190b40-13f8-409a-6872-08dac1110d51 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d5/uiX4kPkVjNtoRKiaT4vOrR/dCiPjAUoEqxS7o9xWHIBdc5TpysoYtPWSJyzo4TJlTr7Svma9RhmyshIAAK56DiAsOkoM8G16Q7XljmXGnx77GW3EtsyuSXumRvjbYPpjuy7+0ZbwPeZi8BOi0MfQvih50CX32GXqbTTWQBguJdDEcYYBmwko4RncTah5NXO0eyhhKNv3PoC/zyow5steKEcQ2V1Dk14jGZ07b0M82IJkenCk8aGw93mVD/1IupeZXeOfor6OrkYIZPoxu5U9gVYCQiNrkUSThxjUNBJ54eip+QSHMNTJL3vYcJCYZSKmdvE6TA9bSN1OYhOnRYiIicwFT7DqlHCzozYiICz6AWQT2nMEEJ7SEbQG3Z+5GcCvDj81u9Ksijmm/d20hBIUlaB+jBZiVST5DgBWS14FhJ8YhugJMPmOPVfB6mFlYO+SYXqB3YvPjTJ0ptjtqd/a1uZzHp7paHNQdpu2zcOnKnrDrvGiNyzsk5lzdKniqlp+hzuNxc6eAMh/1T/jLk28LyV83MJlDHSVN2xinFar7P9Wzr6xyfe7lsk1Cct/6ETGJz0uzF9fGrpTf10AHvzPg1EmR+sKqDcqpz7Uqw3NNjbyK0bOWRzo+KrS5nnp42WT3Ngw95fJkrjjv+DcAlnKB7CTecAai19WW8KIAFlkpkcAH0EXiDxDYpCgD8NWPJuTa4S7j16j0D6dB3/EVJ8x6LXnRhG8Snymb7Mui8NjBgFYY8ya4H1qkDZeDyQmxI+4QlfBPHWIIGWeO/L2eVint3VQFfSlqHoQW+xzRRtA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB6263.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199015)(7416002)(66556008)(8676002)(66946007)(4326008)(66476007)(110136005)(2906002)(83380400001)(8936002)(44832011)(4744005)(6486002)(478600001)(316002)(5660300002)(36756003)(2616005)(6512007)(186003)(53546011)(31686004)(26005)(38100700002)(41300700001)(54906003)(31696002)(86362001)(6506007)(6666004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L050L3JjajM5eEhuRndOSVFpY0pqQnJnckFYcnlldHFhVkEyOWZzYlFUczBa?= =?utf-8?B?UU4rRE93ZDFxRitaV0kwMTdKVUpaMkVaRUVLWW9VSEdmdDlVaXMxb3RDQlM1?= =?utf-8?B?a21GZlFCVG5vZFBrTGZ4NDBvYkFkK0twS05KWUh0SXJDU09GZkZnNUFSWUdm?= =?utf-8?B?MWdRMDBKZWtueWVRa1Z5Yk4zVWFNOWFJTXRGM0xCWmlxWDV0QVlic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k5ZVlpakdNWmtNZ3hRNU53b2MrQWZlM2w1MVpNN0lObTYxQS9tNFAv?= =?utf-8?B?UytFekplbkh0c0JEOXJmVmdxeGlSRHA5THdHYjQ4VllyM2lqMEY1RW5saEZW?= =?utf-8?Q?sWTU8Q7KS/SXo7SiF3rNcbzmi?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d190b40-13f8-409a-6872-08dac1110d51 X-MS-Exchange-CrossTenant-AuthSource: DS7PR12MB6263.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2022 22:40:20.9327 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /bz9D8HGU8tRqLq3FAIqduVWallu+/Xbh96KT93UvFFISijQHp6lvIJ9AMLOkYJ+pfJApOu6Jt/ZbxxBnKPolg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5347 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 11/5/22 6:39 AM, David Laight wrote: > From: Borislav Petkov >> Sent: 04 November 2022 21:52 >> >> On Fri, Nov 04, 2022 at 04:36:50PM -0500, Kim Phillips wrote: >>> - Allow for spectre_v2=autoibrs in the kernel command line, >>> reverting to auto-selection if the feature isn't available. >> >> Why? >> >> What the whole logic here should do is enable autoibrs when detected >> automatically, without the need for the user to even select it as it is >> the superior mitigation. > > The only useful option is to allow a different option be > selected for code testing. > So maybe you want an option for completeness - for when > an 'even better' option is available. This is true. Kim