From nobody Tue Sep 29 05:34:54 2026 Received: from sg-3-112.ptr.tlmpb.com (sg-3-112.ptr.tlmpb.com [101.45.255.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C1242EB5A6 for ; Wed, 12 Aug 2026 01:54:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.45.255.112 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786499681; cv=none; b=aKeM/lWLf3nPNtPOS6IaCvrH15P2/XznYQWYQXqlLzeGqbHK+1TbYKJyYWR3Ue5wb2dERnV5hJFxi5dzfJDGP+fZs913GjcuOvVUydXc6u5xJaARAfDx2B9fJwkkj4mMHsVmbhVc3ZaVGUdU8d7PcdcI1x460T80Ix92koSKFCY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786499681; c=relaxed/simple; bh=eYf50EqL++eVidxKY2ic/WTAkzo4o38o4gyB/xTIIkg=; h=Mime-Version:Subject:Date:Message-Id:References:To:From: Content-Type:Cc:In-Reply-To; b=ZNpR/cVb0+VKM/SZJ0i8eL5EsjjEJc8mdcSsaNAqJdsdl6j04LfJQOK7qD/UtG4fW/tVHPfR067ftBbetPZ0dhCERAXnNSHRQWJ/PlHj73k7jBDcAbPNzwcVPaepLefdjq5mCkv+8oB3MC/7nz+ebYhAbK31yU58/4bUrhTmpVA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=KfUCbB5N; arc=none smtp.client-ip=101.45.255.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="KfUCbB5N" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1786499624; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=iYSI36aUfzfAdLkrna+yw4Swsgm1oOWBqQGItLldnG0=; b=KfUCbB5Nj65nwTOxg7gqC9NKSz1rbCSVB/xPA+6BGdAlLEDatFcJnSoQBQVDtaMSkpJcgS IH1CJbajj3iyFkvWqG3/9YdMHQpYNp0a6jJg3BxzphbXO4ySS2OUfuvkHF3AE67DzQ8d7A CNQFRV8okTblOkQx1QeDI6gqh4oH7EkmefKhbXAw66swGEcyo2kAlg0Kns2jvFhYFoCkWI iWZ3pCJPa1EXr97uVyhu4Ug2vT+QxfC64a0wP0uqErMtpQbhb/1KFkAIQdyKjnmKIhLCsI p5SYgUDjPBLy/gbSejYWuaU8recvM+KgP7cjmy+jnsB3SUIAbQPaWBRP2hBM3w== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Original-From: Guixiong Wei Subject: [PATCH v1 1/4] x86/cpuid: Remove duplicate XMM3 dependency entry Date: Wed, 12 Aug 2026 09:52:54 +0800 Message-Id: <20260812015252.72568-7-weiguixiong@bytedance.com> X-Lms-Return-Path: References: <20260812015252.72568-6-weiguixiong@bytedance.com> To: "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , From: "Guixiong Wei" X-Mailer: git-send-email 2.50.1 Content-Transfer-Encoding: quoted-printable Cc: "H . Peter Anvin" , , "Guixiong Wei" In-Reply-To: <20260812015252.72568-6-weiguixiong@bytedance.com> Content-Type: text/plain; charset="utf-8" The cpuid_deps[] table lists the dependency { X86_FEATURE_XMM3, X86_FEATURE_XMM2 } twice. The second entry is redundant: do_clear_cpu_cap() walks the table and uses __test_and_set_bit() to track which features have already been added to the disable bitmap, so the duplicate is silently skipped and has no functional effect. Remove the redundant entry to clean up the table. Fixes: 0b00de857a64 ("x86/cpuid: Add generic table for CPUID dependencies") Signed-off-by: Guixiong Wei --- arch/x86/kernel/cpu/cpuid-deps.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid-d= eps.c index 99801e844b30..e78d28a43ec7 100644 --- a/arch/x86/kernel/cpu/cpuid-deps.c +++ b/arch/x86/kernel/cpu/cpuid-deps.c @@ -39,7 +39,6 @@ static const struct cpuid_dep cpuid_deps[] =3D { { X86_FEATURE_XMM3, X86_FEATURE_XMM2 }, { X86_FEATURE_XMM4_1, X86_FEATURE_XMM2 }, { X86_FEATURE_XMM4_2, X86_FEATURE_XMM2 }, - { X86_FEATURE_XMM3, X86_FEATURE_XMM2 }, { X86_FEATURE_PCLMULQDQ, X86_FEATURE_XMM2 }, { X86_FEATURE_SSSE3, X86_FEATURE_XMM2, }, { X86_FEATURE_F16C, X86_FEATURE_XMM2, }, --=20 2.50.1 (Apple Git-155) From nobody Tue Sep 29 05:34:54 2026 Received: from va-1-111.ptr.blmpb.com (va-1-111.ptr.blmpb.com [209.127.230.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB05236C5AE for ; Wed, 12 Aug 2026 01:54:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.230.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786499666; cv=none; b=kzfzJ5Z6hMrNRjpiOwuEUocK9vvsJ+1N33zAo65la2bfBQigvhDCB+WM7Vdyu9kXtr/5QgYXpu5MSBl8S/H/vZiXH5Xuvndwj/ikf3Z/ChsE3JYLZ6aft2a4XphrrOatnrWhrznxjHCeA7lPbUaMzpCOr3ytTo6HEEcSAXBXIDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786499666; c=relaxed/simple; bh=0GvsCtS8UiIRIG+vdA65vtg9JpwOlkE31/3QTNLXWjw=; h=Cc:Date:References:Content-Type:From:Message-Id:Mime-Version:To: Subject:In-Reply-To; b=nQpGVJ+TQaFzW1OxCfl1VAmjirijdDIy/t1+mvPAVcTJhooO4nURAl3zOe2gTAGYHU8oxivOFTqueLMh/60/H+FDhyCRfmXs6iOD3P+snOzryvGuRh4AoLohwp8LnNpbYIyej6r0gbiU0ysep834V50zsrToKXVkXslqUj/GfJQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=WCbUrUge; arc=none smtp.client-ip=209.127.230.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="WCbUrUge" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1786499654; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=2876ggymvBAhX/LR29vo/+Fp6NHHbRidr85Pc+HNCMM=; b=WCbUrUgevr6W6emHZn5ZOFqid2TRc1EKtnT+7BukRHMvYhjHtTRfLiszAaH8OvUsa5tZr9 mUBaXmDubgki+iA9dthni/EYHUvu/brniDeY2M0BqWwQsy+lwPsD9+HZxHpTSwjNzAEC77 1tg5YZwiZEgbzrEjuZS26JEQD6YiG1Ta34Th2tXujS0bytARJsHHWd1FkRsYETGUsM5/oA DzHcxP6TyGCCqnmyvV8w9QzFrxP69gHMpcdA/PvKqV3+1WdWCGVfpW+wOc2gsq3QdOv8pA mnyAiwm7uhCyg+MKspWw+w2AaVoi0QNSO6zE03VR1b9ZvFmAzb/tAB7GBQvVLA== Cc: "H . Peter Anvin" , , "Guixiong Wei" Date: Wed, 12 Aug 2026 09:52:55 +0800 Content-Transfer-Encoding: quoted-printable X-Mailer: git-send-email 2.50.1 References: <20260812015252.72568-6-weiguixiong@bytedance.com> X-Lms-Return-Path: From: "Guixiong Wei" Message-Id: <20260812015252.72568-8-weiguixiong@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Original-From: Guixiong Wei To: "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , Subject: [PATCH v1 2/4] x86/cpuid: Add a dependency of AVX-IFMA on AVX In-Reply-To: <20260812015252.72568-6-weiguixiong@bytedance.com> Content-Type: text/plain; charset="utf-8" AVX-IFMA is VEX-encoded and operates on the YMM registers, so it depends on AVX, but it is missing from cpuid_deps[]. As a result, clearing AVX (e.g. via "clearcpuid=3D", "noxsave" or the GDS mitigation) leaves AVX-IFMA set, which KVM then advertises to guests without AVX - an inconsistent CPUID state that check_cpufeature_deps() does not catch. Add the missing dependency, following the existing convention that VEX-encoded/YMM instructions depend on AVX (see AVX-VNNI, VAES and VPCLMULQDQ). Fixes: 5e85c4ebf206 ("x86: KVM: Advertise AVX-IFMA CPUID to user space") Signed-off-by: Guixiong Wei --- arch/x86/kernel/cpu/cpuid-deps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid-d= eps.c index e78d28a43ec7..6b1df617a423 100644 --- a/arch/x86/kernel/cpu/cpuid-deps.c +++ b/arch/x86/kernel/cpu/cpuid-deps.c @@ -49,6 +49,7 @@ static const struct cpuid_dep cpuid_deps[] =3D { { X86_FEATURE_FMA, X86_FEATURE_AVX }, { X86_FEATURE_VAES, X86_FEATURE_AVX }, { X86_FEATURE_VPCLMULQDQ, X86_FEATURE_AVX }, + { X86_FEATURE_AVX_IFMA, X86_FEATURE_AVX }, { X86_FEATURE_AVX2, X86_FEATURE_AVX, }, { X86_FEATURE_AVX512F, X86_FEATURE_AVX, }, { X86_FEATURE_AVX512IFMA, X86_FEATURE_AVX512F }, --=20 2.50.1 (Apple Git-155) From nobody Tue Sep 29 05:34:54 2026 Received: from va-1-114.ptr.blmpb.com (va-1-114.ptr.blmpb.com [209.127.230.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03179374730 for ; Wed, 12 Aug 2026 01:54:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.230.114 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786499684; cv=none; b=G6g86edokuKNALJBHZ9t1613cXT6cstyINCdnAiYDzEVjxwtN95jSUCjmUcbvbuMdWiGsnsBQgw7hQSwkbmnjlAcxEfkdHJae15jnBwiEXwyv4y430QuWwo0Aa2uJULCI1UUIhJpUcvP7US3l0eXal8Fyiso7eOdV3Hs5OCpDos= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786499684; c=relaxed/simple; bh=hxyfoEfMieaaWNTku105IDFkMQUmLTeleXRr6gHQg0k=; h=In-Reply-To:Content-Type:From:Date:Subject:Message-Id: Mime-Version:References:To:Cc; b=qdhdYJHLIQrP/OA7Jr8uJ+8Xc1mwD1XGrUIECrgtURW6VA4jMPh1quSGaNKo0hQPhZ34HX6M/UDECVHLxYKHUKxe+w7xr15I7U1ayJ6XCW0b7S+AVaAaCPpdas2xXgO9IgBtVZgQIycYWlcl1Ie7ogmM8q8yJZ7LR58uHcYy8Oc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=G1sW7jcq; arc=none smtp.client-ip=209.127.230.114 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="G1sW7jcq" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1786499669; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=t+UNQEpVhHGlfX56jt/waTA6v55nVHQHLZazPIqUR/4=; b=G1sW7jcqFTdPG7p/b/bx4yexB/bRovkRcsMw0joai4yfazbosnhsRj01ySLS0uH0nmu6M0 eTHM3Sh5dPiQbVDHn3/1qm29cJhXT4sD8/lsi4UxBL8zIOEkc7icGvg+C/E6Gesj325BbP g/8betckwQjcbbV1Qc8ezy1k+8qSNGPuDFunPxjtD9KI6H8M7x+x2X17viji8Ni5OvaTxh BJaRAV/wrl4zuqWnxon4wFp7h0hiHjQ6nEhWVWNiunv4kr+ROjci/gWmv8ATJETWXS9mCZ 4MmblEelzLIrbyCxg0ScucJQII8QSRLH2boYNB07SoKxWJHiBIA+Poovjgq0QA== In-Reply-To: <20260812015252.72568-6-weiguixiong@bytedance.com> X-Original-From: Guixiong Wei From: "Guixiong Wei" Date: Wed, 12 Aug 2026 09:52:56 +0800 Subject: [PATCH v1 3/4] x86/cpuid: Add dependencies of SHA512, SM3 and SM4 on AVX Message-Id: <20260812015252.72568-9-weiguixiong@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Lms-Return-Path: References: <20260812015252.72568-6-weiguixiong@bytedance.com> To: "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , Cc: "H . Peter Anvin" , , "Guixiong Wei" Content-Transfer-Encoding: quoted-printable X-Mailer: git-send-email 2.50.1 Content-Type: text/plain; charset="utf-8" SHA512, SM3 and SM4 are VEX-encoded and operate on the YMM registers, so they depend on AVX, but they are missing from cpuid_deps[]. As a result, clearing AVX (e.g. via "clearcpuid=3D", "noxsave" or the GDS mitigation) leaves them set, which KVM then advertises to guests without AVX - an inconsistent CPUID state that check_cpufeature_deps() does not catch. Add the missing dependencies, following the existing convention that VEX-encoded/YMM instructions depend on AVX (see AVX-VNNI, VAES and VPCLMULQDQ). Fixes: a0423af92cb3 ("x86: KVM: Advertise CPUIDs for new instructions in Cl= earwater Forest") Signed-off-by: Guixiong Wei --- arch/x86/kernel/cpu/cpuid-deps.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid-d= eps.c index 6b1df617a423..94ed933897df 100644 --- a/arch/x86/kernel/cpu/cpuid-deps.c +++ b/arch/x86/kernel/cpu/cpuid-deps.c @@ -50,6 +50,9 @@ static const struct cpuid_dep cpuid_deps[] =3D { { X86_FEATURE_VAES, X86_FEATURE_AVX }, { X86_FEATURE_VPCLMULQDQ, X86_FEATURE_AVX }, { X86_FEATURE_AVX_IFMA, X86_FEATURE_AVX }, + { X86_FEATURE_SHA512, X86_FEATURE_AVX }, + { X86_FEATURE_SM3, X86_FEATURE_AVX }, + { X86_FEATURE_SM4, X86_FEATURE_AVX }, { X86_FEATURE_AVX2, X86_FEATURE_AVX, }, { X86_FEATURE_AVX512F, X86_FEATURE_AVX, }, { X86_FEATURE_AVX512IFMA, X86_FEATURE_AVX512F }, --=20 2.50.1 (Apple Git-155) From nobody Tue Sep 29 05:34:54 2026 Received: from va-1-113.ptr.blmpb.com (va-1-113.ptr.blmpb.com [209.127.230.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 256AF372EC1 for ; Wed, 12 Aug 2026 01:54:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.230.113 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786499695; cv=none; b=B2zefpI4wjo4G/x1ARtzCbi06ZWjI9jyEDYJLNGghnv/gSpGBwvLPChdIVV03PuyUNGcu3h32iRC+RDp5/AwUvmNDD0dVj6EDQGiBtSLyik1ACmEiX2bZHN9y/uwCH3ELGPryMEudzIK3grBJJw/XjM+dBJhNjSrIzk2T4XoyK0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786499695; c=relaxed/simple; bh=z6bcW/UF0WtTZd4nN/1HU5D6Q3nRcO7W8SOL+AXMQYI=; h=Subject:Mime-Version:Cc:From:Date:Message-Id:In-Reply-To: References:To:Content-Type; b=Qc4ze8fYCf6+W+sG9zDXnpcYpd+3yapDgupi3n5tNN1E82I5n5/Kjm8HbR/esz5H4cgmgXB2kVEWoEp/x+UyiHe8LxfQjcjN10DDR8qamwtx9it4TYD4aSY8OAjy7LBY8nsL6JakYll17VnLTje+d57Vr9EJdP6iFH5C8MQiFwI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=CvciThOb; arc=none smtp.client-ip=209.127.230.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="CvciThOb" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1786499682; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=eZ1zOAJ/1BHbgoIsLzV7qIdDkU16cynXIBUi/HWSOqA=; b=CvciThObKzqvb5RnSQs/+MwufvspJdjYI8bZhU+MdcX3yGNtVnCewdooFMiowA4nJTJGod 1W8G+CppHELbPqIpMN/ueiYTJW70S3Ivj83z+1CZYWHe5EYdV34j2MVXHF1JGIinTnfqDl eqaz5Wj7NHeixHeP92+qfBiLxRB2559uuG7EazXMJWLdm6VqvvDMyCYE6D2i1wYHq7wSP0 f2E6mLrztgYXONebkYET+MXElN582md4zUysTFLPvprLo+Y2LRGJGl1pDGmNP9yR4cuXcZ tImiC9vt7vxlNpva+qJWvQoK68pyPnJibUUPVBwyz7z8YXRCDJRUG4kCNmMNrw== Subject: [PATCH v1 4/4] x86/cpuid: Add a dependency of AVX512-BMM on AVX512F Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Cc: "H . Peter Anvin" , , "Guixiong Wei" From: "Guixiong Wei" Date: Wed, 12 Aug 2026 09:52:57 +0800 Message-Id: <20260812015252.72568-10-weiguixiong@bytedance.com> In-Reply-To: <20260812015252.72568-6-weiguixiong@bytedance.com> X-Original-From: Guixiong Wei References: <20260812015252.72568-6-weiguixiong@bytedance.com> X-Lms-Return-Path: X-Mailer: git-send-email 2.50.1 Content-Transfer-Encoding: quoted-printable To: "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , Content-Type: text/plain; charset="utf-8" AVX512-BMM (Bit Matrix Multiply) is EVEX-encoded and operates on the AVX-512 state, so it depends on AVX512F, but it is missing from cpuid_deps[]. As a result, clearing AVX512F (e.g. via "clearcpuid=3D" or "noxsave") leaves AVX512-BMM set, which KVM then advertises to guests without AVX512F - an inconsistent CPUID state that check_cpufeature_deps() does not catch. Add the missing dependency. Fixes: de0bfdc7137d ("KVM: x86: Advertise AVX512 Bit Matrix Multiply (BMM) = to userspace") Signed-off-by: Guixiong Wei --- arch/x86/kernel/cpu/cpuid-deps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid-d= eps.c index 94ed933897df..87b0888569b2 100644 --- a/arch/x86/kernel/cpu/cpuid-deps.c +++ b/arch/x86/kernel/cpu/cpuid-deps.c @@ -70,6 +70,7 @@ static const struct cpuid_dep cpuid_deps[] =3D { { X86_FEATURE_AVX512_4FMAPS, X86_FEATURE_AVX512F }, { X86_FEATURE_AVX512_VPOPCNTDQ, X86_FEATURE_AVX512F }, { X86_FEATURE_AVX512_VP2INTERSECT, X86_FEATURE_AVX512VL }, + { X86_FEATURE_AVX512_BMM, X86_FEATURE_AVX512F }, { X86_FEATURE_CQM_OCCUP_LLC, X86_FEATURE_CQM_LLC }, { X86_FEATURE_CQM_MBM_TOTAL, X86_FEATURE_CQM_LLC }, { X86_FEATURE_CQM_MBM_LOCAL, X86_FEATURE_CQM_LLC }, --=20 2.50.1 (Apple Git-155)