Message ID | 20240501145433.4070-2-manali.shukla@amd.com |
---|---|
State | Superseded |
Headers | show
Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2086.outbound.protection.outlook.com [40.107.236.86]) (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 A534812EBDB; Wed, 1 May 2024 14:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.86 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714575323; cv=fail; b=pdtKOJTTqW6WZPLXxomQQCnmBRXWKptjGNDGFVGGSy53aySwSfLT8OY1GRYJCJdoZoOVamwrMb9O9wVu05GanYO0YdBxlVnpQj8WnylmHxIDZmT9EN10Dagxmm1rczGjLgSGE1FsK064Ssdwfi9qelVj/EUjVrUAiuVSWH5WcGs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714575323; c=relaxed/simple; bh=yhiOSw02sfQ+2JEXPUMkAiQwnhoeWSZYG3qgCOMVQqU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Chq3a7Hf2dRu0EqWxLy9j8JK3eXlITneoosT1NCC9CnccYcWHA2mzmVmE38Q3jsnbEme/89ItOiytca/Heg+WjZI+z+NWmpNL1ough7UmY2t41wvTYJ3i13Q3OSegdL8A0i9JNc9Ao7YwQSqqhAaIoDGgaNtkiQv1TJMkFwF6io= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=vFrmTerO; arc=fail smtp.client-ip=40.107.236.86 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="vFrmTerO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y+56munmoc5yOfAPDZZKzeU0uKsMyW72UfrVsv68wTHYxyYRsw22/rp2NjD0KtdPZ/h8XUCLQ1On5AtF084kWesRG3IES652ZqBhJpYeDGH6lT5bGt8HWPY5r+TWDtC8DoCNYNQIp8FYORAEYickdlM3MM52RCRDlxtjh5gGGTJPFUQmqtJtRxmdsB7hdaGB4s9a09hwANWWsBYe0VOagfcZTLLcJb7NpYyx8xpWYbd8l8wy+dj/4e4k7UEEPGlnLpWTxg/ymafMCEuPcHKdMILv8D8si6L2C8V9t7z5vq+Lghgsk/7uUksRVBX+wP/E6pPiubV2lVOp9hJIZNKuKQ== 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=oLiqfplFvQsiftF6GTviacnEqj4GbmvWGeDw4ye3uhc=; b=HD0VCxvciCPgX8DSvqIPKOu3gvvjGXZW8OtsKtqY4QrMWo41oNzhwAFXagyL6ZemaveI13xBhARBKTX4CSRULZ+Dacf1SVF2oIfwaCJwWxqYaOOTLuYxO0shrTPK2WALKN7it8f+FXcREOqkGd71qbGTEfRnyzt7eTMRXYMFLXVoVvI5rPfAo2gTr+G2AYbEhTGyWstf/izBGpKzDerUJUH5YGHg8quC9cQMYG4xIP57s97a07TcGcEFmWdLHr3MNYl12jOZtwGYIi/Ifs4ee6zuCCuwy8y2ojny5cjF/X5PKPInsgnJSaPsXpITpheKd2TfGIvF0hvBRs+nTqhuDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) 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=oLiqfplFvQsiftF6GTviacnEqj4GbmvWGeDw4ye3uhc=; b=vFrmTerO8WE9hfZi0vGOrJtx+n5wsnxT1OkWpL94qyCtQc4WkC450OTtKJE1YKuhK4Ee5NQkEhIbgsy+XzFsFsB9CKxGNHeknabnSE1Hc0Is/kv1tgZWcu630r/+cOMP+giJ0P+JNnAjwUZWRsESrZGntD4lbHvQyc7W6Ricz8M= Received: from CH2PR10CA0013.namprd10.prod.outlook.com (2603:10b6:610:4c::23) by SJ0PR12MB7005.namprd12.prod.outlook.com (2603:10b6:a03:486::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.36; Wed, 1 May 2024 14:55:15 +0000 Received: from CH3PEPF00000016.namprd21.prod.outlook.com (2603:10b6:610:4c:cafe::96) by CH2PR10CA0013.outlook.office365.com (2603:10b6:610:4c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.28 via Frontend Transport; Wed, 1 May 2024 14:55:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH3PEPF00000016.mail.protection.outlook.com (10.167.244.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.0 via Frontend Transport; Wed, 1 May 2024 14:55:15 +0000 Received: from chalupa-4a00host.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 1 May 2024 09:55:14 -0500 From: Manali Shukla <manali.shukla@amd.com> To: <kvm@vger.kernel.org>, <linux-kselftest@vger.kernel.org> CC: <pbonzini@redhat.com>, <seanjc@google.com>, <shuah@kernel.org>, <nikunj@amd.com>, <thomas.lendacky@amd.com>, <vkuznets@redhat.com>, <manali.shukla@amd.com>, <bp@alien8.de> Subject: [PATCH v2 1/5] x86/cpufeatures: Add CPUID feature bit for Idle HLT intercept Date: Wed, 1 May 2024 14:54:29 +0000 Message-ID: <20240501145433.4070-2-manali.shukla@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240501145433.4070-1-manali.shukla@amd.com> References: <20240501145433.4070-1-manali.shukla@amd.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: <linux-kselftest.vger.kernel.org> List-Subscribe: <mailto:linux-kselftest+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kselftest+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PEPF00000016:EE_|SJ0PR12MB7005:EE_ X-MS-Office365-Filtering-Correlation-Id: ac22a883-aedb-479e-f196-08dc69eeb5ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400014|1800799015|36860700004|376005; X-Microsoft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mnHnitIXqosV/H/TM+vGUt+4xowduGYgRXfsLIInE?= =?utf-8?q?4ozUElnUD+r+iUfNI0UtxqZhY4IsD1THh4oDJRMPVxhgMmlNV2E+g7qxHbNC+8IoV?= =?utf-8?q?tAArcrVrdgKZgNFBgvby3D1ZhHX/yE8dWovrscyRVAz+OyEoPOC+9wYtVVkI3USgV?= =?utf-8?q?zWksqB5HI92i1/frHRiJBPynP31mtgFIwlzpNgXFx6gguqYaZW6aLLeHF8hWwhWVG?= =?utf-8?q?s/mSISADdDBDJcxlDnkphjNAmSaW5UJsSdKh3BpMmcbwkN/h5FsU+6l4VXlFEIFXA?= =?utf-8?q?tmIcSVGbiRbDR7nDf3DMPCcx0SqLAxgzTB8Xl5V5r05rdv3lRXN7OTwNXBleGD+nj?= =?utf-8?q?iDfg3OcbFPK6Edzg/VafVdNm6yEDu1Te5Shvy6RuHoD+O6rC2jfKA3YxNgz7itQZL?= =?utf-8?q?4W0jC+B3V6azHO8QQpNokLIzXY2SUZ9LP+8cioecVq/J670XosTlfyyv+6btI8ai0?= =?utf-8?q?Do5d4oiatX0F?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(82310400014)(1800799015)(36860700004)(376005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2024 14:55:15.4611 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac22a883-aedb-479e-f196-08dc69eeb5ee X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH3PEPF00000016.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7005 |
Series |
Add support for the Idle HLT intercept feature
|
expand
|
diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index a38f8f9ba657..a8c5dec042dc 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -381,6 +381,7 @@ #define X86_FEATURE_V_SPEC_CTRL (15*32+20) /* Virtual SPEC_CTRL */ #define X86_FEATURE_VNMI (15*32+25) /* Virtual NMI */ #define X86_FEATURE_SVME_ADDR_CHK (15*32+28) /* "" SVME addr check */ +#define X86_FEATURE_IDLE_HLT (15*32+30) /* "" IDLE HLT intercept */ /* Intel-defined CPU features, CPUID level 0x00000007:0 (ECX), word 16 */ #define X86_FEATURE_AVX512VBMI (16*32+ 1) /* AVX512 Vector Bit Manipulation instructions*/