KVM: powerpc: Fix mtsrin in book3s_64 mmu
authorAlexander Graf <agraf@suse.de>
Sat, 19 Dec 2009 17:07:39 +0000 (18:07 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Sun, 27 Dec 2009 15:36:34 +0000 (13:36 -0200)
commit5279aeb4b96cbdac22a0c2f8137dd0bbc35f02b8
tree592ca08805d9460064a1ab874a1a58e45d0f28c8
parenta662b8135a1f9fee7d3f9129498cb03f3d6ce772
KVM: powerpc: Fix mtsrin in book3s_64 mmu

We were shifting the Ks/Kp/N bits one bit too far on mtsrin. It took
me some time to figure that out, so I also put in some debugging and a
comment explaining the conversion.

This fixes current OpenBIOS boot on PPC64 KVM.

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