Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94810ba4 authored by Alexander Graf's avatar Alexander Graf
Browse files

KVM: PPC: Book3S PR: Default to big endian guest



The default MSR when user space does not define anything should be identical
on little and big endian hosts, so remove MSR_LE from it.

Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 14a7d41d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1216,7 +1216,7 @@ static struct kvm_vcpu *kvmppc_core_vcpu_create_pr(struct kvm *kvm,
	kvmppc_set_pvr_pr(vcpu, vcpu->arch.pvr);
	kvmppc_set_pvr_pr(vcpu, vcpu->arch.pvr);
	vcpu->arch.slb_nr = 64;
	vcpu->arch.slb_nr = 64;


	vcpu->arch.shadow_msr = MSR_USER64;
	vcpu->arch.shadow_msr = MSR_USER64 & ~MSR_LE;


	err = kvmppc_mmu_init(vcpu);
	err = kvmppc_mmu_init(vcpu);
	if (err < 0)
	if (err < 0)