KVM: PPC: Book3S PR: Default to big endian guest
authorAlexander Graf <agraf@suse.de>
Thu, 24 Apr 2014 11:04:01 +0000 (13:04 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 30 May 2014 12:26:20 +0000 (14:26 +0200)
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>
arch/powerpc/kvm/book3s_pr.c

index 01a7156d055cd7bf303b5efcd5bc494d9104f566..d7b0ad2bffe476a3ae5ba8a2d34ddc3dc4ff0694 100644 (file)
@@ -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)