We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a01a2 commit 2441418Copy full SHA for 2441418
arch/arm64/kvm/nested.c
@@ -1178,6 +1178,14 @@ int kvm_init_nv_sysregs(struct kvm *kvm)
1178
if (!kvm_has_feat(kvm, ID_AA64PFR0_EL1, AMU, V1P1))
1179
res0 |= ~(res0 | res1);
1180
set_sysreg_masks(kvm, HAFGRTR_EL2, res0, res1);
1181
+
1182
+ /* SCTLR_EL1 */
1183
+ res0 = SCTLR_EL1_RES0;
1184
+ res1 = SCTLR_EL1_RES1;
1185
+ if (!kvm_has_feat(kvm, ID_AA64MMFR1_EL1, PAN, PAN3))
1186
+ res0 |= SCTLR_EL1_EPAN;
1187
+ set_sysreg_masks(kvm, SCTLR_EL1, res0, res1);
1188
1189
out:
1190
mutex_unlock(&kvm->arch.config_lock);
1191
0 commit comments