]> git.baikalelectronics.ru Git - kernel.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)
commit324cf837f9d138d6677176d08d1a3c2eb4da7fa3
tree9481a79b48e07e4d2eab09a0aaef0e659f017ddb
parent2e95df744ff31640d679e5e0494f885f67aabb08
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