diff options
author | Will Deacon <will@kernel.org> | 2020-05-05 11:45:21 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-05-05 11:45:21 +0100 |
commit | 433022b58e628418020155e1f6a3d59c06a474c0 (patch) | |
tree | 5c03476ed5f48998f184dbff152c5d42fef5252c /arch/arm64/kernel/cpufeature.c | |
parent | 9b5aaec441d3c76d6255049e99c446f14c89a284 (diff) | |
download | linux-stable-433022b58e628418020155e1f6a3d59c06a474c0.tar.gz linux-stable-433022b58e628418020155e1f6a3d59c06a474c0.tar.bz2 linux-stable-433022b58e628418020155e1f6a3d59c06a474c0.zip |
arm64: cpufeature: Extend comment to describe absence of field info
When a feature register field is omitted from the description of the
register, the corresponding bits are treated as STRICT RES0, including
for KVM guests. This is subtly different to declaring the field as
HIDDEN/STRICT/EXACT/0, so update the comment to call this out.
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/cpufeature.c')
-rw-r--r-- | arch/arm64/kernel/cpufeature.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index c1d44d127baa..9b05843d67af 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -53,6 +53,11 @@ * arbitrary physical CPUs, but some features not present on the host are * also advertised and emulated. Look at sys_reg_descs[] for the gory * details. + * + * - If the arm64_ftr_bits[] for a register has a missing field, then this + * field is treated as STRICT RES0, including for read_sanitised_ftr_reg(). + * This is stronger than FTR_HIDDEN and can be used to hide features from + * KVM guests. */ #define pr_fmt(fmt) "CPU features: " fmt |