summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2010-09-30 21:31:27 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2010-11-05 17:42:29 +0100
commitdf8940eadf011db2d4bedecf6eb659d44494edb3 (patch)
tree41671049697d45a1b2463f955d3bd25865920720 /arch
parentKVM: PPC: BookE: fix sleep with interrupts disabled (diff)
downloadlinux-df8940eadf011db2d4bedecf6eb659d44494edb3.tar.xz
linux-df8940eadf011db2d4bedecf6eb659d44494edb3.zip
KVM: PPC: BookE: Load the lower half of MSR
This was preventing the guest from setting any bits in the hardware MSR which aren't forced on, such as MSR[SPE]. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kvm/booke_interrupts.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/booke_interrupts.S b/arch/powerpc/kvm/booke_interrupts.S
index 049846911ce4..1cc471faac2d 100644
--- a/arch/powerpc/kvm/booke_interrupts.S
+++ b/arch/powerpc/kvm/booke_interrupts.S
@@ -416,7 +416,7 @@ lightweight_exit:
lwz r3, VCPU_PC(r4)
mtsrr0 r3
lwz r3, VCPU_SHARED(r4)
- lwz r3, VCPU_SHARED_MSR(r3)
+ lwz r3, (VCPU_SHARED_MSR + 4)(r3)
oris r3, r3, KVMPPC_MSR_MASK@h
ori r3, r3, KVMPPC_MSR_MASK@l
mtsrr1 r3