mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
KVM: PPC: e500: Mask MAS2 EPN high 32-bits in 32/64 tlbwe emulation
Mask high 32 bits of MAS2's effective page number in tlbwe emulation for guests running in 32-bit mode. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
8823a8fd0d
commit
9e2fa64693
1 changed files with 2 additions and 0 deletions
|
@ -871,6 +871,8 @@ int kvmppc_e500_emul_tlbwe(struct kvm_vcpu *vcpu)
|
|||
|
||||
gtlbe->mas1 = vcpu->arch.shared->mas1;
|
||||
gtlbe->mas2 = vcpu->arch.shared->mas2;
|
||||
if (!(vcpu->arch.shared->msr & MSR_CM))
|
||||
gtlbe->mas2 &= 0xffffffffUL;
|
||||
gtlbe->mas7_3 = vcpu->arch.shared->mas7_3;
|
||||
|
||||
trace_kvm_booke206_gtlb_write(vcpu->arch.shared->mas0, gtlbe->mas1,
|
||||
|
|
Loading…
Reference in a new issue