Skip to content
Commit 56e13dba authored by Alexander Graf's avatar Alexander Graf
Browse files

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: default avatarAlexander Graf <agraf@suse.de>
parent 7ef4e985
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment