diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-09-29 10:00:28 +0100 |
|---|---|---|
| committer | Oliver Upton <oupton@kernel.org> | 2026-09-29 09:07:27 -0700 |
| commit | 4bdd2b3a708c1feb701cb8b62feb8ad2fd77bb07 (patch) | |
| tree | 90934457b34f379b6db8396faacf2ea7c0d7b9ad /tools/lib/python | |
| parent | 751f4641560be8568dcc5af400c0e55a283abf51 (diff) | |
| download | linux-next-4bdd2b3a708c1feb701cb8b62feb8ad2fd77bb07.tar.gz linux-next-4bdd2b3a708c1feb701cb8b62feb8ad2fd77bb07.zip | |
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.
Fixes: f5a5a406b4b8b ("KVM: arm64: Propagate and handle Fine-Grained UNDEF bits")
Cc: stable@vger.kernel.org
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Reviewed-by: Wei-Lin Chang <weilin.chang@arm.com>
Link: https://patch.msgid.link/20260929090031.3829185-2-fuad.tabba@linux.dev
[oliver: Take Wei-Lin's suggested changelog]
Signed-off-by: Oliver Upton <oupton@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
