KVM: PPC: Fix PR KVM on POWER7 bare metal
authorAlexander Graf <agraf@suse.de>
Fri, 27 Apr 2012 14:33:35 +0000 (16:33 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 6 May 2012 14:19:10 +0000 (16:19 +0200)
commit11f7d6c2d1b17abf7b91e0f2d43bfe9de0b9e5cf
tree776b1daa70a1d1f08f861a0e7b6247c3a364ed5e
parent978b4fae45b3fae803a9f56e2262f01f71b7dbc9
KVM: PPC: Fix PR KVM on POWER7 bare metal

When running on a system that is HV capable, some interrupts use HSRR
SPRs instead of the normal SRR SPRs. These are also used in the Linux
handlers to jump back to code after an interrupt got processed.

Unfortunately, in our "jump back to the real host handler after we've
done the context switch" code, we were only setting the SRR SPRs,
rendering Linux to jump back to some invalid IP after it's processed
the interrupt.

This fixes random crashes on p7 opal mode with PR KVM for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_segment.S
This page took 0.024481 seconds and 5 git commands to generate.