]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 16 May 2012 13:02:10 +0000 (15:02 +0200)
commit7500c701645064776e1672abc43fc4715c82953b
treed9e7df8e8bf1917e82711e9437673535f40c8f55
parentd07e910f06faa764e2c26ce27138f5f9c347e9a5
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