Skip to content

Commit 0a5d284

Browse files
author
Marc Zyngier
committed
KVM: arm64: nv: Expose FGT to nested guests
Now that we have FGT support, expose the feature to NV guests. Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Jing Zhang <jingzhangos@google.com> Link: https://lore.kernel.org/r/20230815183903.2735724-27-maz@kernel.org
1 parent d4d2dac commit 0a5d284

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/arm64/kvm/nested.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ void access_nested_id_reg(struct kvm_vcpu *v, struct sys_reg_params *p,
7171
break;
7272

7373
case SYS_ID_AA64MMFR0_EL1:
74-
/* Hide ECV, FGT, ExS, Secure Memory */
75-
val &= ~(GENMASK_ULL(63, 43) |
74+
/* Hide ECV, ExS, Secure Memory */
75+
val &= ~(NV_FTR(MMFR0, ECV) |
76+
NV_FTR(MMFR0, EXS) |
7677
NV_FTR(MMFR0, TGRAN4_2) |
7778
NV_FTR(MMFR0, TGRAN16_2) |
7879
NV_FTR(MMFR0, TGRAN64_2) |

0 commit comments

Comments
 (0)