Skip to content

Commit

Permalink
KVM: PPC: Book3S PR: Default to big endian guest
Browse files Browse the repository at this point in the history
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: Alexander Graf <agraf@suse.de>
  • Loading branch information
Alexander Graf committed May 30, 2014
1 parent 14a7d41 commit 94810ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kvm/book3s_pr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ static struct kvm_vcpu *kvmppc_core_vcpu_create_pr(struct kvm *kvm,
kvmppc_set_pvr_pr(vcpu, vcpu->arch.pvr);
vcpu->arch.slb_nr = 64;

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

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

0 comments on commit 94810ba

Please sign in to comment.