]> 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)
commit53106253f63c907b87ae2a399d1419a32f549908
treed9e7df8e8bf1917e82711e9437673535f40c8f55
parent1bdfc5adb88506789a4d5711771c7434b4a283a3
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