]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: PPC: set IN_GUEST_MODE before checking requests
authorScott Wood <scottwood@freescale.com>
Wed, 22 Aug 2012 15:03:50 +0000 (15:03 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 5 Oct 2012 21:34:05 +0000 (23:34 +0200)
commit582bbe61a661a13732d5853b3dfcca62bfb62051
tree33cf8766cec82d210d95755a8291855c7f199705
parent766cdb409d7b0458596f2d10216219c3615752f0
KVM: PPC: set IN_GUEST_MODE before checking requests

Avoid a race as described in the code comment.

Also remove a related smp_wmb() from booke's kvmppc_prepare_to_enter().
I can't see any reason for it, and the book3s_pr version doesn't have it.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/powerpc.c