KVM: PPC: booke: Check for MSR[WE] in prepare_to_enter
authorScott Wood <scottwood@freescale.com>
Wed, 9 Nov 2011 00:23:25 +0000 (18:23 -0600)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:26 +0000 (14:52 +0200)
commitc59a6a3e4e5976a938e21faf3da65a2784187aa7
treeb15779d6ac698f588762a0c42f504e178f630875
parent25051b5a5aff0bb71435421b4b80279b789fa0dc
KVM: PPC: booke: Check for MSR[WE] in prepare_to_enter

This prevents us from inappropriately blocking in a KVM_SET_REGS
ioctl -- the MSR[WE] will take effect when the guest is next entered.

It also causes SRR1[WE] to be set when we enter the guest's interrupt
handler, which is what e500 hardware is documented to do.

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