aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAlexander Graf <[email protected]>2018-01-31 22:24:58 +0100
committerPaul Mackerras <[email protected]>2018-02-01 13:35:33 +1100
commit07ae5389e98c53bb9e9f308fce9c903bc3ee7720 (patch)
tree42e29efe5409097e294b425a1e62cadb0b05b19a /net/switchdev/switchdev.c
parent36ee41d161c67a6fcf696d4817a0da31f778938c (diff)
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: Simon Guo <[email protected]> Fixes: 3d3319b45eea ("KVM: PPC: Book3S: PR: Enable interrupts earlier") Signed-off-by: Alexander Graf <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions