]> 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>
Thu, 27 Sep 2012 20:00:14 +0000 (22:00 +0200)
commitad619a54eed67c94f64b22742b3ca6d0d669d690
treebdb13a93579da6cdb9ae9c13fa2dc83f58a5d5fc
parent11f2a925e45589b26769f707046ee5a57d315de2
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