]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit413a8498cbf76057c20f9d3a73892e4f3e9f270a
treeb15779d6ac698f588762a0c42f504e178f630875
parentce7b8ba9a37762770b4d1483a4a7dfd3c84a1fc7
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