Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp282245lqg; Thu, 11 Apr 2024 02:45:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYzwLADJmEUemETfPkxVcmZ5xWDVSAoHc4uI5QiK0u5mRQ++MP3JjZn9GlHDymNBjS3asESaBhyf/D3WJuAVmzBWoXkeLP6suqsT8k7w== X-Google-Smtp-Source: AGHT+IEqgsyRnQF4rtwUh1iRUOZ/mhTqrRuj739fEP3n10A9WnhuI5reEKjn/ZmHiPHPIDF19wyv X-Received: by 2002:a05:6a20:9147:b0:1a7:aa19:e356 with SMTP id x7-20020a056a20914700b001a7aa19e356mr3268470pzc.28.1712828702455; Thu, 11 Apr 2024 02:45:02 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v8-20020a655c48000000b005e10b746148si955292pgr.432.2024.04.11.02.45.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 02:45:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=JrWlgRy3; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RAYxij08; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-140183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140183-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5DD29B25AF9 for ; Thu, 11 Apr 2024 09:34:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8877013B2A8; Thu, 11 Apr 2024 09:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="JrWlgRy3"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="RAYxij08" Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C2B3144D20; Thu, 11 Apr 2024 09:33:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712828036; cv=fail; b=NxW+vmCrPrQiUisIjNva8kbvJcn+98buoZLd7Dp+6qgqXTxuOXLgOYadNHejO8nXcr57zu4MslYiDaECpIWYGSK65XTURLN8EH55riuQtrN6SlxVfx1k1+4+5ShUWph4GWG2Ceg94zJTZFuoFAuWYgu4mfdtx6cw73zyWl4w+xo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712828036; c=relaxed/simple; bh=XNCV3xf56pxbY5egLn2dlBGQ7z42WqHk5QXRzDyC/kc=; h=Message-ID:Date:Cc:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=IsE+mwbzAHxbIKyl1GIR1KvyA4RZ0IG4M5gMoM7jvtWBjzrUjgqa2IjEOaA+5TaJzQrwrjvdNg38RocL2T5T2Eje4oim4YMbuyoqquYgXrDfkI7pV1l8l2rBhdJnfZ0doAYxrA1S13f4aJ8qf5r83sZDp7hlMEJHlEx+PRmvc8A= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=JrWlgRy3; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=RAYxij08; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43B91qcO031639; Thu, 11 Apr 2024 09:33:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : cc : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=WT09OwZto/osrQx19vqdlLj/d2zVCTwwM+LPobOM2cI=; b=JrWlgRy3Q3CqoxsIWptOYJlZSSMYHlEqs/FJxMT3BvrcuXNgSCIDEbEAVe9d+cy+7+xJ 1QLmX+w8VldHkrJ4KOkCworazCky+F54ZxVclObS+lMkXFNGjzKGHbhuFmOZcIzEVo7U U+UBKR5hFbeZhDBcL6T6GEcQH6dNGVGoqdXLo7faCINlOIkP/mHz93EVliG3c/e22WE3 nAfyVOsJPIGVRCmiqjwYMMYjj0m0/+W/CIo0twdGnEwaAsJUYKzN9BtpvuWks9MMmiAI zovpoEMlfdFhQwqMlDeXN+blt208d94gEJhhNxQc7MoLg16ml/vNHV3d+wV0XvjxJ7+y Ww== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xax9b93f0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Apr 2024 09:33:14 +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 43B8WUML040072; Thu, 11 Apr 2024 09:33:12 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2100.outbound.protection.outlook.com [104.47.70.100]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3xavufjs56-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Apr 2024 09:33:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nnjFoyJ15j7Z06Ssf7GTeHzwDw+EXwyDJvFuyIfCfUcNUcpep7ObkQ24K2Z+gji2Zlfes8rY2lQMcaG2ENVU179+v0efD50WVBSbybAUvMcrZ7/Q11X2Bs8v7YQv6vI/3zEaC7tlGDYY/qX12OejhaVJdshM0Dj1MzS1tTMuHES9elqAR1biio/LNrEu/Vt6sZsbVrodVaT4FEK38d3eWF7Y1EvTiq6Gm1JTii8qovIGeTFOFQDmhHNGXKGkCaDbVIi0kQmjLbnrGbz/eP5+v6CGn7aoO+VSBNQtLzC9c6gYbLvoTA2eYWyKLOTSreB0Ml89MqD9dVOTeufRmdm/Tw== 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=WT09OwZto/osrQx19vqdlLj/d2zVCTwwM+LPobOM2cI=; b=U7yPLeMKQaYCxdfiw2KxJIE0N0n7lX5NwUQp48N6A19mp4j92+wvS91u3rsqhH37PkEo+40EocKpxE8nLdA8wcDCL6uBZA/9rec8iy70wH79mLWVojeQJ0xeQHj0i17GNOANp18/NSipiqwu/VSsKV/A1Qzq2EnvF5IFRNmfk0O7MZgd85u4AInfYyDuAoj5fTkyznmZiRK3cZTAKRXMTia48934BKP4zuY9ZYoZSqrb7FICBTxV5OIF8G7R/reSv/XeeheUrqUQ5Bh6WC+OelurUManFImXgFjT9Oc368QEdcNOopvTX6ma1jbYft/7Tks5/HeHn8Q4hjGcNEfX9w== 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=WT09OwZto/osrQx19vqdlLj/d2zVCTwwM+LPobOM2cI=; b=RAYxij08HR79BBRgAZcYtfqhT90+FAh7Sv4Ap0RywXBE0QJSO3EbsKccrLjJ8gHGun1vuEAnJaxfJwrF+loeNXsxZ1eOCSCyzODm7Fi3RkI7a2l/4L/u/1Zi3gL/7k0DNqNvBMCcvwrw6fYpBl27/ulqJMReL9dOauQdb95wHTw= Received: from SN4PR10MB5622.namprd10.prod.outlook.com (2603:10b6:806:209::18) by BLAPR10MB4978.namprd10.prod.outlook.com (2603:10b6:208:30e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Thu, 11 Apr 2024 09:33:10 +0000 Received: from SN4PR10MB5622.namprd10.prod.outlook.com ([fe80::1481:809a:af18:ac44]) by SN4PR10MB5622.namprd10.prod.outlook.com ([fe80::1481:809a:af18:ac44%5]) with mapi id 15.20.7409.053; Thu, 11 Apr 2024 09:33:10 +0000 Message-ID: Date: Thu, 11 Apr 2024 11:33:04 +0200 User-Agent: Mozilla Thunderbird Cc: alexandre.chartre@oracle.com, linux-kernel@vger.kernel.org, daniel.sneddon@linux.intel.com, pawan.kumar.gupta@linux.intel.com, tglx@linutronix.de, konrad.wilk@oracle.com, peterz@infradead.org, gregkh@linuxfoundation.org, seanjc@google.com, dave.hansen@linux.intel.com, nik.borisov@suse.com, kpsingh@kernel.org, longman@redhat.com, bp@alien8.de, pbonzini@redhat.com Subject: Re: [PATCH] KVM: x86: Set BHI_NO in guest when host is not affected by BHI Content-Language: en-US To: Andrew Cooper , x86@kernel.org, kvm@vger.kernel.org References: <20240411072445.522731-1-alexandre.chartre@oracle.com> <7f1faa48-6252-4409-aefc-2ed2f38fb1c3@citrix.com> From: Alexandre Chartre Autocrypt: addr=alexandre.chartre@oracle.com; keydata= xsFNBGJDNGkBEACg7Xx1laJ1nI9Bp1l9KXjFNDAMy5gydTMpdiqPpPojJrit6FMbr6MziEMm T8U11oOmHlEqI24jtGLSzd74j+Y2qqREZb3GiaTlC1SiV9UfaO+Utrj6ik/DimGCPpPDjZUl X1cpveO2dtzoskTLS9Fg/40qlL2DMt1jNjDRLG3l6YK+6PA+T+1UttJoiuqUsWg3b3ckTGII y6yhhj2HvVaMPkjuadUTWPzS9q/YdVVtLnBdOk3ulnzSaUVQ2yo+OHaEOUFehuKb0VsP2z9c lnxSw1Gi1TOwATtoZLgyJs3cIk26WGegKcVdiMr0xUa615+OlEEKYacRk8RdVth8qK4ZOOTm PWAAFsNshPk9nDHJ3Ls0krdWllrGFZkV6ww6PVcUXW/APDsC4FiaT16LU8kz4Z1/pSgSsyxw bKlrCoyxtOfr/PFjmXhwGPGktzOq04p6GadljXLuq4KBzRqAynH0yd0kQMuPvQHie1yWVD0G /zS9z2tkARkR/UkO+HxfgA+HJapbYwhCmhtRdxMDFgk8rZNkaFZCj8eWRhCV8Bq7IW+1Mxrq a2q/t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3U3JkHvRHN5aM+J ATLmm4lbF0kt2kd5FxvXPBskO2Ged3YY/PBT6LhhNettIRQLJkq5eHfQy0I1xtdlv2X+Yq8N 9AWQ+rKrpeBaTypUnxZAgJ8memFoZd4i4pkXa0F2Q808bL7YrZa++cOg2+oEJhhHeZEctbPV rVx8JtRRUqZyoBcpZqpS+75ORI9N5OcbodxXr8AEdSXIpAdGwLamXR02HCuhqWAxk+tCv209 ivTJtkxPvmmMNb1kilwYVd2j6pIdYIx8tvH0GPNwbno97BwpxTNkkVPoPEgeCHskYvjasM1e swLliy6PdpST In-Reply-To: <7f1faa48-6252-4409-aefc-2ed2f38fb1c3@citrix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO6P265CA0012.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:339::16) To SN4PR10MB5622.namprd10.prod.outlook.com (2603:10b6:806:209::18) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN4PR10MB5622:EE_|BLAPR10MB4978:EE_ X-MS-Office365-Filtering-Correlation-Id: ce825197-a73f-4086-7e52-08dc5a0a6719 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sSA7ZaRScEO69hrIaQmJKc/be+yMYIDHLEifFs+39+XPlY31PpTtonQJN5Jtk6unArP7offBtRD0lyRIUkwEr2tXiXKQufPTjk5RsBUbx4j0rKPj4yH932aGZxuQrhRfKoDMOSkUvDsipdEVXIk7ZTCBbnua5InOO8LYhRlX3fRBrwRy8hCoO3wKBSgnKdYtZfVQzEMDm1QNIrUzNzzuwe+SFQr6zCTD9lKPpOoyxLbHzfIR8pxqQLuHc9tWjkgri2reuHl5sX+QBaYomYD/fDYfdL4+PJnX1/DTjDcZPFNhh8pmzIpJVCEomUlo1uHl0eAoOKZrt8y1WQQtKkavmnQ9wkJkL2e87jmv8nqFXVOMCyTD+EKvzdgeqUELvnX41jTqweb2GBfEwMyN//DjL+PnsnyU7tW9VV/fUcYOhOWVhhD6I1oNHfZbfrHZ0nbXmF+qDzp30oXJmuIcOOqdLP/qhRcDM8lqrZ+YVcp5XFRUhwQYxgOS16WJIQWLJSCC/GylES6yzOvcJK0x4NTAi/yYZpHaC+uG7szPscvZ9+zznzF/CnGHGmnHIXpWbnlmgFm0LSISwanvivsuPfW5/L5F0Vow0uW4/2JgVle/x8k2Bpzlp/dTQHRaTI1j5YkdeKJfo968bjqh3k2OvmVvNw3aZdbgrUdwzx7nFUCO0Y4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN4PR10MB5622.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dXpPaVB6QXBjdVlJdGdrOGk3U0VzU0EvTWFCWlVWUFdPRFlvMENVQ3JjUDd6?= =?utf-8?B?QzBTbDBzcHFoZTZKVFBKSWtMTzhDeTNGN0RUSHF2Z1dpUGY5RnZ6dnpjeVVR?= =?utf-8?B?ZFAvd1cwRWpzRlFMN3l0ZlJuak1RTVlmWkcwV1BvTkhRc3VzT2N4aUlPQzRw?= =?utf-8?B?T2dnTnpwUlE1K2RzcG9OeDBlR3pGSzBxN3I5OCtHSTBBdXhEbmw2aG9PUlE0?= =?utf-8?B?b0FydkR0MjZ1aHREVzFCVkpucHF2ZmthZGZLcTZrWW9pakFlb0RPNEQvcFdm?= =?utf-8?B?TlBZaXJ3TXFsT21jNVB0MEpuL25KOEFRQ3RJUUNmaGkxTXRlaFozcjFzTG1X?= =?utf-8?B?STlhWTQwbDlmVmd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hUGp6dEwwOW1y?= =?utf-8?B?L2c9PQ==?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: N0jZ81LlyDQo9fEDQwy7+SpYmzmUmCuVhFvr3QvLSwCrkT+Voq6xabUepdNK6g42pDBIiIc529ECyQ03eQomZumpfE1+A/DhrhP5Y2TMKhOw+0UXgifg6dYuUNQrCcxMcUGVM5SY0+pYVXXZlXncu8uLHsEqJfne+bn+gupTXx+MRWb1v195Iwi+jNQ4DQbavoX22C1e3cUnNrSGjbuapBgZK1HKdhEmzM89AOLQOK5MDKWsBcZZsoee7zEvXaCTZMpfmPiN7VIG4w34bAXIOTosu6Jgth/DFZCjQeA8ZWzY2kx8RdLKdJGt19YiB361yxkx1nhXEIDWPg2p3NDKU+hXG5Cwkl87PNJXuOBYw/n71K6s9wQlgoeeoAMiGIDXtclC29XpNSWCQauEk1njlVbZl/KFT7J3vYsqwfTdXehUHnMDhq7Y91Ty+Jk6lgy3iZsAAzX227bbPx+wBhcVDWCWCuxdiHvO6hPYHX/tDk6ROlNadxLaKh/7Vt+8ibm/MTkYUXdbs/Ymnct4tEBqBKWOv8tjZ3eseHf3XXDclNAbpTwc9VbG6ldDeA6UwB+UEDkfW1FJMMXL48KSX/TYz63id0zC35MLSLBmxDB+v30= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce825197-a73f-4086-7e52-08dc5a0a6719 X-MS-Exchange-CrossTenant-AuthSource: SN4PR10MB5622.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2024 09:33:10.7855 (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: cBdglWP6yl/u74YGa+NI+0C2Bz0qygYcvo54HYjD5afI/tjOizCMXUk19zveiVB7h0tUku/sUh6O8Ln7f2gukyImEQFaHRIeYo436/2W2S8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB4978 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-11_03,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 adultscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404110068 X-Proofpoint-GUID: _UYGKtuEz38Ip1SWRS1y9pzaULrH3f7b X-Proofpoint-ORIG-GUID: _UYGKtuEz38Ip1SWRS1y9pzaULrH3f7b On 4/11/24 10:43, Andrew Cooper wrote: > On 11/04/2024 8:24 am, Alexandre Chartre wrote: >> When a system is not affected by the BHI bug then KVM should >> configure guests with BHI_NO to ensure they won't enable any >> BHI mitigation. >> >> Signed-off-by: Alexandre Chartre >> --- >> arch/x86/kvm/x86.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c >> index 984ea2089efc..f43d3c15a6b7 100644 >> --- a/arch/x86/kvm/x86.c >> +++ b/arch/x86/kvm/x86.c >> @@ -1678,6 +1678,9 @@ static u64 kvm_get_arch_capabilities(void) >> if (!boot_cpu_has_bug(X86_BUG_GDS) || gds_ucode_mitigated()) >> data |= ARCH_CAP_GDS_NO; >> >> + if (!boot_cpu_has_bug(X86_BUG_BHI)) >> + data |= ARCH_CAP_BHI_NO; > > This isn't true or safe. > > Linux only sets X86_BUG_BHI on a subset of affected parts. > > Skylake for example *is* affected by BHI.  It's just that existing > mitigations are believed to suffice to mitigate BHI too. > > "you happen to be safe if you're doing something else too" doesn't > remotely have the same meaning as "hardware doesn't have a history based > predictor". > So you mean we can't set ARCH_CAP_BHI_NO for the guest because we don't know if the guest will run the (other) existing mitigations which are believed to suffice to mitigate BHI? The problem is that we can end up with a guest running extra BHI mitigations while this is not needed. Could we inform the guest that eIBRS is not available on the system so a Linux guest doesn't run with extra BHI mitigations? Thanks, alex.