FAILED: patch "[PATCH] KVM: arm64: Apply the fine-grained UNDEFs without FEAT_FGT" failed to apply to 6.12-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y
git checkout FETCH_HEAD
git cherry-pick -x 4bdd2b3a708c1feb701cb8b62feb8ad2fd77bb07
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026100549-irritant-stammer-cf99@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 4bdd2b3a708c1feb701cb8b62feb8ad2fd77bb07 Mon Sep 17 00:00:00 2001
From: Fuad Tabba <[email protected]>
Date: Tue, 29 Sep 2026 10:00:28 +0100
Subject: [PATCH] KVM: arm64: Apply the fine-grained UNDEFs without FEAT_FGT
FGUs don't actually require hardware support, so don't gate fgt trap config insertion on FGT. This is the only action required to allow FGUs always, as kvm_calculate_traps() already computes the FGU bits with or without FEAT_FGT.
This also fixes a spurious WARN when a TLBI OS is run on a guest in vEL1 without FEAT_TLBIOS on non FEAT_FGT hardware. In this configuration the course-grained HCR_EL2.TTLBOS trap reaches the handler handle_tlbi_el1(), which expects an EL1 TLBI only from vEL2. With FGUs enabled the UNDEF will be injected without needing the specific handler.
arch/arm64/kvm/emulate-nested.c +0 -3
@@ -2386,9 +2386,6 @@ int __init populate_nv_trap_config(void)print_nv_trap_error (fgt,"FGT bit is reserved" , ret); } -if (!cpus_have_final_cap (ARM64_HAS_FGT )) -continue ; - prev =xa_store (&sr_forward_xa, enc,xa_mk_value (tc.val),GFP_KERNEL );
Sasha Levin
maintainerPATCH 1/1 KVM: arm64: Apply the fine-grained UNDEFs without FEAT_FGT
From: Fuad Tabba <[email protected]>
[ Upstream commit 4bdd2b3a708c1feb701cb8b62feb8ad2fd77bb07 ]
FGUs don't actually require hardware support, so don't gate fgt trap config insertion on FGT. This is the only action required to allow FGUs always, as kvm_calculate_traps() already computes the FGU bits with or without FEAT_FGT.
This also fixes a spurious WARN when a TLBI OS is run on a guest in vEL1 without FEAT_TLBIOS on non FEAT_FGT hardware. In this configuration the course-grained HCR_EL2.TTLBOS trap reaches the handler handle_tlbi_el1(), which expects an EL1 TLBI only from vEL2. With FGUs enabled the UNDEF will be injected without needing the specific handler.
--- arch/arm64/kvm/emulate-nested.c | 4 ---- 1 file changed, 4 deletions(-)
arch/arm64/kvm/emulate-nested.c +0 -4
@@ -1981,9 +1981,6 @@ int __init populate_nv_trap_config(void)kvm_info ("nv: %ld coarse grained trap handlers\n" ,ARRAY_SIZE (encoding_to_cgt)); -if (!cpus_have_final_cap (ARM64_HAS_FGT )) - goto check_mcb; -for (int i =0 ; i <ARRAY_SIZE (encoding_to_fgt); i++) {const struct encoding_to_trap_config *fgt = &encoding_to_fgt[i];union trap_config tc;
@@ -2014,7 +2011,6 @@ int __init populate_nv_trap_config(void)kvm_info ("nv: %ld fine grained trap handlers\n" ,ARRAY_SIZE (encoding_to_fgt)); -check_mcb:for (int id = __MULTIPLE_CONTROL_BITS__; id < __COMPLEX_CONDITIONS__; id++) {const enum cgt_group_id *cgids;
Signature · 1 line
2.53.0