projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4d2dac
)
KVM: arm64: nv: Expose FGT to nested guests
author
Marc Zyngier
<maz@kernel.org>
Tue, 15 Aug 2023 18:39:00 +0000
(19:39 +0100)
committer
Marc Zyngier
<maz@kernel.org>
Thu, 17 Aug 2023 09:00:28 +0000
(10:00 +0100)
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
arch/arm64/kvm/nested.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kvm/nested.c
b/arch/arm64/kvm/nested.c
index
7f80f38
..
3facd89
100644
(file)
--- a/
arch/arm64/kvm/nested.c
+++ b/
arch/arm64/kvm/nested.c
@@
-71,8
+71,9
@@
void access_nested_id_reg(struct kvm_vcpu *v, struct sys_reg_params *p,
break;
case SYS_ID_AA64MMFR0_EL1:
- /* Hide ECV, FGT, ExS, Secure Memory */
- val &= ~(GENMASK_ULL(63, 43) |
+ /* Hide ECV, ExS, Secure Memory */
+ val &= ~(NV_FTR(MMFR0, ECV) |
+ NV_FTR(MMFR0, EXS) |
NV_FTR(MMFR0, TGRAN4_2) |
NV_FTR(MMFR0, TGRAN16_2) |
NV_FTR(MMFR0, TGRAN64_2) |