]> 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>
Tue, 25 Sep 2012 07:44:04 +0000 (09:44 +0200)
commit8f1aeaa46db8885546b10b8b25f5d0450593f356
treebdb13a93579da6cdb9ae9c13fa2dc83f58a5d5fc
parent79812b356d2ad363eba6e2fa0d7152027abef326
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