Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp390383lqg; Thu, 11 Apr 2024 06:21:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEu+1N6Rn+tq9Vz0gQx0qkDtcaLfhjZpT+BUWo33CwP5OvqRuItPcQzKPDm/ictGGoC58fdrTOEIi+ZJfJtEnlL/jrCE36fm5+j3kBaA== X-Google-Smtp-Source: AGHT+IEcp8W14c2fJkZNdRfMUWnWvSGd0HkatPAMTt3XOVr98i9eLz3OB8HlJaWQMazZX4p7R8DW X-Received: by 2002:a50:baa5:0:b0:56c:5a72:176a with SMTP id x34-20020a50baa5000000b0056c5a72176amr4696811ede.3.1712841680819; Thu, 11 Apr 2024 06:21:20 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z12-20020a056402274c00b0056e73de309fsi759224edd.600.2024.04.11.06.21.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 06:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b="ndjpkF/g"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=yJk5mmxI; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-140492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140492-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 60F881F22C61 for ; Thu, 11 Apr 2024 13:21:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1642C14D2B9; Thu, 11 Apr 2024 13:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="ndjpkF/g"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="yJk5mmxI" 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 B6E26634EA; Thu, 11 Apr 2024 13:21:05 +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=1712841667; cv=fail; b=cacDltiCcct47pkAIsA6WQb7nMAZ6gmomhWyvdQsBpJFVHTriN3aCWsCCUCV6n6C3PxFwpV/HhkEn7y4uJFdkKap3lhTPCbmmAzkXSwpmrGFs3ehWXpYVdFyYqm3RRrBK2JpDNkB/xFiFsDfshIqqoa37Ox8Ip8RyT7VkwVtnmg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712841667; c=relaxed/simple; bh=HiO+NbMEbIHVbw46kcIcra+ZPtJ7mOMlulNj5fpHKyw=; h=Message-ID:Date:Cc:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=pGuJsTbJJAGtT6zT419AAizF05G3Ibshnoqam+663ERHzRcZfZM6+XJGgH15ZzshvBG8/t+6/FBH/wCAplWWrlSX+gmriw8gOzFpOkWdT+ty+Hg2/1Olf7NUC92na/RfK3TyNcxNIkY67XaJopRNf3gqOb1mcyk55IN/hWqPEy4= 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=ndjpkF/g; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=yJk5mmxI; 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 43BCo7Da023666; Thu, 11 Apr 2024 13:20:39 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=CaYDYxCMWv5LN/13Q7Kk86zFpbQO1+lobxKpYA0FnCc=; b=ndjpkF/gPnSP9KShE2alOzXzp8JmlQMdhm18JJJ8PrCwLvtLp+2pmzuMUReyanerVyYZ n60/M9gh16CWYhZpkgUs1N1Gnm6SusScFqSZhsQOZgG+K0MsfvpTAYfk3rAMxUCox+Md 44YutKr9j/7CG7EGchWYht7rTNwh5TnD2k2hpgs/KiMxbi17m9rpyfVFgBCjOAFSoUv7 vAq38+qG4j+2z+2a8BeUcXeVg1VBCnWaNhEM4M0XphPETLvBJT87iRMJwsDw8B9LHwXS i9atVnmp77dTQxgp3fxH3c58is1byWgkzAL+Fqj6tpJ45nJGyLQ++vfB2CpGA1hsRF1l 5A== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xax9b9dnv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Apr 2024 13:20:39 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43BD1T0f032298; Thu, 11 Apr 2024 13:20:38 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3xavua416j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Apr 2024 13:20:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G6+c9BLG/NDkQMeH/96aKQZdB7gulKwPdabwOnwlP+io3tMv9mHudnelKUADql9nKlVlOvhJENP6ppjxTqV0Z97D8fLEIEHY2xe08aKl5+oOVbaxZR+YAw1713cYSZvuc8AwrzbU/6obZlUkijVNO2a9kptcenCSWWbuMovH3reE3d2lAogwvcGCigOguNrQD+AV/PiYMNTwOEY/Y9eWCWVlkGiBSB/TqYm8WmOJOOR/L5wvfES0jeXjPAjIjEPDkjAtFddZOzADi2NzJq6RJgFJh0smeQtWksuY8tmohhXd4LDkQa/Zi7QnOlHslA13JsbXE0IFEwa1eMZNvF7fpg== 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=CaYDYxCMWv5LN/13Q7Kk86zFpbQO1+lobxKpYA0FnCc=; b=hei1lq9TZb9GahvkQJvqtjHNZ23rEg1S88gQtz4WfcwUmfiFrIzFqx0h4SK3tHVSojASkVtlX7+SY3KNaRGshveCo84BbBw1xXnifdQ50r32uU9uZUl4F6vYWAOShcBMRPDwFyWekLfS75FkYzz0SSFiIhhoLGtquNM5BPMp6sZzd918kR3knQtyimtiZalWcMD9YL3lz0UbMxLYJjZ8+RCWLMB7r0nAex3N81geT64CsVR6lDECBQCHpq90FvxvmWxRVuy2zU8Ae7ceiAAxViR6cb8lhDy+byPBfIwZlF7NlJTHPRhjMab4EH4qys0KMxRSkuhV4Z/pX24R+kWMjA== 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=CaYDYxCMWv5LN/13Q7Kk86zFpbQO1+lobxKpYA0FnCc=; b=yJk5mmxI9h5Q61xvNPQjCoQ2RJ9v7CiIGnp7zhDmb/rXm7QngYu4aK3mp5rk/1xqG+HyCJXmf8EydMyHD+puL1xkUgULuB5MVNRXyambh/yvi8TksVIeobIs3XfleeNuKpZCWMxeMI9pi6UEQ/I11u4tYCFbCGh2cuJvOYjwd2s= Received: from SN4PR10MB5622.namprd10.prod.outlook.com (2603:10b6:806:209::18) by CO6PR10MB5649.namprd10.prod.outlook.com (2603:10b6:303:14c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Thu, 11 Apr 2024 13:20:35 +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 13:20:35 +0000 Message-ID: <95902795-0c2c-43cc-8d87-89302a2eed2b@oracle.com> Date: Thu, 11 Apr 2024 15:20:29 +0200 User-Agent: Mozilla Thunderbird Cc: alexandre.chartre@oracle.com, x86@kernel.org, kvm@vger.kernel.org, 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: Chao Gao , Andrew Cooper 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+HJapbYwhCmhtRdxMDFgk8rZNkaFZCj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t5r9mimNuj1L3Sw9DIRpEuEhXz3U3JkHvRHN5aM+J ATLmm4lbF0kt2kd5FxvXPBskO2Ged3YY/PBT6LhhNettIRQLJkq5eHfQy0I1xtdlv2X+Yq8N 9AWQ+rKrpeBaTypUnxZAgJ8memFoZd4i4pkXa0F2Q808bL7YrZa++cOg2+oEJhhHeZEctbPV rVx8JtRRUqZyoBcpZqpS+75ORI9N5OcbodxXr8AEdSXIpAdGwLamXR02HCuhqWAxk+tCv209 ivTJtkxPvmmMNb1kilwYVd2j6pIdYIx8tvH0GPNwbno97BwpxTNkkVPoPEgeCHskYvjasM1e swLliy6PdpST In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MR1P264CA0024.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:2f::11) 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_|CO6PR10MB5649:EE_ X-MS-Office365-Filtering-Correlation-Id: 632a79a2-c697-4abd-c5e6-08dc5a2a2bf2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Yesrb10d3ENM7k6zRNZGSt6AO2P3NJNSRGX5uvUMY7tUj+HpQr+VjBay+5bvq0J3FWIugr941wKnVWz2+jqrqnjvt8AdUhLz5ixR5X+b/6pDo/KotSXkNDAUNuuKCk+gX/eVSk8Cc3bVUJd1ZZYSHDAcbUWq8OV5fZC3MliG03sBX16/Kwm00hgtwYrKgCSweTXC3EjXEu+RrqW+zbBJ8hF3TlmeN32mgEAn2s3wMC2F5RAA5U38AQKnxeXf4/le2/OpEFnQr66sqMlQddRk2PBZE8nGTaAbvXa9yhHJpe/ln/h/lsZNQLn52OkoZ688vmBlVJfU/8EkyswtElQHYh3oSx4vXOq2ZihHFf1HpgPLSZSIt24Z8WOUM/q8x1SNd52nZ7HzLoG+iTxH1z07SS4qGHwAkNcIDAvJZJk+9kU66gM0FdkAaXTW8wfFRK2eLeJFUUbh88Iv866SLtlFFZJDNACLTrajO3uLrJ4rTjUXxJK6lAN6hC+O4YIGCT8eLNZlRX+w+MUXRqvC7bmWs8xpQoHSO4k/mHojv82Az4E56E+BH2BVNnPe22ZdK6DvlDLZoECR9YsGmjbbKzaSwT6bVY3hpQQHWUmnJtSkSaUAqlIjTbYm2N/HUtRRtGhjZt29eSV0JrA+28aom7pcoLWE5DoBCNy20pt5cPI8WAs= 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?dTRocjM1ek1NeGJJVnhYM2xxU2Q4OGdJR1JUSVExSHk0WDBhbG5Bd3Y3dXI5?= =?utf-8?B?MFVBK2tub0dLSmFjNkpla2ZUK3lJWkdHeVVaWFBQMFFzOGxxbmltU3JGL2hB?= =?utf-8?B?R1E1UTRIQWo4aVJiR2xZSnd4aHo1QjlLeTZ4OFBMQ25ybll0aXBleGV5dlNp?= =?utf-8?B?enpYNFYzdktRVllwREEzYjY2NEN3Zml0c1dyemdUQmFJOG9yWHljSEw2NXlw?= =?utf-8?B?UlhGb2tCTnRBVkNWWGdLZzJpM3lRZDdMSGJBYWNoUnlId3crK003Y04yYUV0?= =?utf-8?B?L2pEeW5MUVF5dU9rNmV1UDRRbXBPNGhGRFZpb3pYZzhna0U3RVdvaXhENFpq?= =?utf-8?B?VnRVbkc4YzRRd1B2dy9MN29TZ2lqN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utf-8?B?N3c9PQ==?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: eYzQt3b3qGMhHkJNmJYGR5877dJXfnf5sVQQq+vo2pdpau7beL6Tl8Lm/j8/iTIV8HWqkUKQr/u3/8JccuscC/CuDOEZC/hGg9A6qwJcsp70dS1G51JxoyGnNLETWlAJ1AB0WPfWnB/g4Sd+/cnouNJf3LUc2Lgx8eEyC4UA7KMJHctJM0wSUMApkQf3vlBcLTp+nJPvvptK+k0td2jLNEZx1M9ScbV9XNrvEb/Sa1u+bLwCJ4bxr3GYN36ZduFaCLeogbZpWJS3vcxRkiFFP7BDV6XnVRZFHmfzxQ7TWPbVoQ8rLwmfcbdIJV6SB8b3U06Dmv/+4l/tkExEh4BDDEhANYCmwC6qg7NWzNDBAASmwEQxCuWMPQpBbzGErOKp7KTXGmEPs8PeUPNmmMasHryWFhndvGu0vgfWEjI67NwIbO2jzapzYAM8PksusR1E7eCskW00Fs2FiuTVGoZ2gusLBbvjSUTSuE5ex/4bkUQM73NXMG9eJfFNF1lgjxNO7FvC9ywu3hsW23/3l1uyHYJTr0ajSE5U96dW6hzUmqlaNenfXBthLvvFl9CPB1wiOXdIUa2LXAM74G3rRvbCgWgO0rqb3rcoCxnoZPQZAog= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 632a79a2-c697-4abd-c5e6-08dc5a2a2bf2 X-MS-Exchange-CrossTenant-AuthSource: SN4PR10MB5622.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2024 13:20:35.4054 (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: BIwBhEAchNQHypb/tIUWqVfJK0TduFR4h3NSSEiI/YaL3QcVbS09tCt0FKE0/UepoLQkDTtNlS8R7hpxMuZjIZUdLdGYmhOrvTU5FjNu46o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5649 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_06,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404110097 X-Proofpoint-GUID: UNBWoE-P_2CsCSTetAZcUxyGV4LoWDYj X-Proofpoint-ORIG-GUID: UNBWoE-P_2CsCSTetAZcUxyGV4LoWDYj On 4/11/24 13:14, Chao Gao wrote: >>> 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? >> >> Well, that's why Intel specified some MSRs at 0x5000xxxx. > > Yes. But note that there is a subtle difference. Those MSRs are used for guest > to communicate in-used software mitigations to the host. Such information is > stable across migration. Here we need the host to communicate that eIBRS isn't > available to the guest. this isn't stable as the guest may be migrated from > a host without eIBRS to one with it. > >> >> Except I don't know anyone currently interested in implementing them, >> and I'm still not sure if they work correctly for some of the more >> complicated migration cases. > > Looks you have the same opinion on the Intel-defined virtual MSRs as Sean. > If we all agree the issue here and the effectivenss problem of the short > BHB-clearing sequence need to be resolved and don't think the Intel-defined > virtual MSRs can handle all cases correctly, we have to define a better > interface through community collaboration as Sean suggested. Another solution could be to add cpus to cpu_vuln_whitelist with BHI_NO. (e.g. explicitly add cpus which have eIBRS). That way, the kernel will figure out the right mitigation on the host and guest. alex.