]> git.karo-electronics.de Git - mv-sheeva.git/commit
KVM: PPC: PV assembler helpers
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:48:03 +0000 (14:48 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:55 +0000 (10:50 +0200)
commit92234722ed631f472f1c4d79d35d8e5cf6910002
tree482fac5bdebbe2b19cda8a2575e3805d99f23310
parent71ee8e34fe26252b11668a95708783ec9c58cbda
KVM: PPC: PV assembler helpers

When we hook an instruction we need to make sure we don't clobber any of
the registers at that point. So we write them out to scratch space in the
magic page. To make sure we don't fall into a race with another piece of
hooked code, we need to disable interrupts.

To make the later patches and code in general easier readable, let's introduce
a set of defines that save and restore r30, r31 and cr. Let's also define some
helpers to read the lower 32 bits of a 64 bit field on 32 bit systems.

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