diff options
| author | Marc Zyngier <maz@kernel.org> | 2025-02-09 14:19:05 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2025-05-10 11:04:35 +0100 |
| commit | 938a79d0aa8dd0f75e4302a67006db4f45e1ce4e (patch) | |
| tree | a1dec30bb006a8cca78b301a7ebf627308b7d1a9 /arch/arm64/include | |
| parent | 63d423a7635bca6d817a30adff29be58ee99c6d5 (diff) | |
KVM: arm64: Validate FGT register descriptions against RES0 masks
In order to point out to the unsuspecting KVM hacker that they
are missing something somewhere, validate that the known FGT bits
do not intersect with the corresponding RES0 mask, as computed at
boot time.
THis check is also performed at boot time, ensuring that there is
no runtime overhead.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/include')
| -rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 9386f15cdc25..59bfb049ce98 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -1611,5 +1611,6 @@ void kvm_set_vm_id_reg(struct kvm *kvm, u32 reg, u64 val); (kvm_has_feat((k), ID_AA64MMFR3_EL1, S1POE, IMP)) void compute_fgu(struct kvm *kvm, enum fgt_group_id fgt); +void check_feature_map(void); #endif /* __ARM64_KVM_HOST_H__ */ |
