Skip to content

Commit 249838b

Browse files
ouptonMarc Zyngier
authored andcommitted
KVM: arm64: pkvm: Don't mask already zeroed FEAT_SVE
FEAT_SVE is already masked by the fixed configuration for ID_AA64PFR0_EL1; don't try and mask it at runtime. No functional change intended. Signed-off-by: Oliver Upton <oupton@google.com> Reviewed-by: Fuad Tabba <tabba@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220509162559.2387784-3-oupton@google.com
1 parent 4d2e469 commit 249838b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

arch/arm64/kvm/hyp/nvhe/sys_regs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ static u64 get_pvm_id_aa64pfr0(const struct kvm_vcpu *vcpu)
9090
u64 set_mask = 0;
9191
u64 allow_mask = PVM_ID_AA64PFR0_ALLOW;
9292

93-
if (!vcpu_has_sve(vcpu))
94-
allow_mask &= ~ARM64_FEATURE_MASK(ID_AA64PFR0_SVE);
95-
9693
set_mask |= get_restricted_features_unsigned(id_aa64pfr0_el1_sys_val,
9794
PVM_ID_AA64PFR0_RESTRICT_UNSIGNED);
9895

0 commit comments

Comments
 (0)