Skip to content

Commit dd82412

Browse files
author
Marc Zyngier
committed
KVM: arm64: Populate PAR_EL1 with 52bit addresses
Expand the output address populated in PAR_EL1 to 52bit addresses. Reviewed-by: Oliver Upton <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent c0cc438 commit dd82412

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kvm/at.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ static u64 compute_par_s1(struct kvm_vcpu *vcpu, struct s1_walk_info *wi,
844844
} else if (wr->level == S1_MMU_DISABLED) {
845845
/* MMU off or HCR_EL2.DC == 1 */
846846
par = SYS_PAR_EL1_NSE;
847-
par |= wr->pa & GENMASK_ULL(47, 12);
847+
par |= wr->pa & SYS_PAR_EL1_PA;
848848

849849
if (wi->regime == TR_EL10 &&
850850
(__vcpu_sys_reg(vcpu, HCR_EL2) & HCR_DC)) {
@@ -877,7 +877,7 @@ static u64 compute_par_s1(struct kvm_vcpu *vcpu, struct s1_walk_info *wi,
877877
mair = MEMATTR(NC, NC);
878878

879879
par |= FIELD_PREP(SYS_PAR_EL1_ATTR, mair);
880-
par |= wr->pa & GENMASK_ULL(47, 12);
880+
par |= wr->pa & SYS_PAR_EL1_PA;
881881

882882
sh = compute_s1_sh(wi, wr, mair);
883883
par |= FIELD_PREP(SYS_PAR_EL1_SH, sh);

0 commit comments

Comments
 (0)