]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: PPC: e500mc: Move r1/r2 restoration very early
authorAlexander Graf <agraf@suse.de>
Wed, 15 Feb 2012 23:06:24 +0000 (23:06 +0000)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Apr 2012 09:54:54 +0000 (12:54 +0300)
commita2723ce7fe4b99bc2df492067c3f81de2ee89aab
tree9481a79b48e07e4d2eab09a0aaef0e659f017ddb
parent79300f8cb9be201f916d075b3ef2e032d83a0d75
KVM: PPC: e500mc: Move r1/r2 restoration very early

If we hit any exception whatsoever in the restore path and r1/r2 aren't the
host registers, we don't get a working oops. So it's always a good idea to
restore them as early as possible.

This time, it actually has practical reasons to do so too, since we need to
have the host page fault handler fix up our guest instruction read code. And
for that to work we need r1/r2 restored.

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