Skip to content
Commit 07ae5389 authored by Alexander Graf's avatar Alexander Graf Committed by Paul Mackerras
Browse files

KVM: PPC: Book3S PR: Fix svcpu copying with preemption enabled



When copying between the vcpu and svcpu, we may get scheduled away onto
a different host CPU which in turn means our svcpu pointer may change.

That means we need to atomically copy to and from the svcpu with preemption
disabled, so that all code around it always sees a coherent state.

Reported-by: default avatarSimon Guo <wei.guo.simon@gmail.com>
Fixes: 3d3319b4

 ("KVM: PPC: Book3S: PR: Enable interrupts earlier")
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
parent 36ee41d1
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