]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Don't put MSR_POW in MSR
authorAlexander Graf <agraf@suse.de>
Sun, 15 Aug 2010 06:39:19 +0000 (08:39 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:16 +0000 (10:52 +0200)
commita0c2335d1648f687471b66b61e07d07c05720940
tree75070ed734b71414fd42f5b3f92f679ed3023ce3
parent649915f70400a87f6da9e4cd55ebcfdcf702c518
KVM: PPC: Don't put MSR_POW in MSR

On Book3S a mtmsr with the MSR_POW bit set indicates that the OS is in
idle and only needs to be waked up on the next interrupt.

Now, unfortunately we let that bit slip into the stored MSR value which
is not what the real CPU does, so that we ended up executing code like
this:

r = mfmsr();
/* r containts MSR_POW */
mtmsr(r | MSR_EE);

This obviously breaks, as we're going into idle mode in code sections that
don't expect to be idling.

This patch masks MSR_POW out of the stored MSR value on wakeup, making
guests happy again.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s.c