]> Pileus Git - ~andy/linux/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:38:54 +0000 (23:38 +0200)
commit5bd1cf118533aba41b3fbd4834e6362a9237db71
tree33cf8766cec82d210d95755a8291855c7f199705
parentadbb48a854bf8dee556dc42b96dd61503351a82d
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