diff options
author | Alexander Graf <agraf@suse.de> | 2010-07-29 14:48:03 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:50:55 +0200 |
commit | 92234722ed631f472f1c4d79d35d8e5cf6910002 (patch) | |
tree | 482fac5bdebbe2b19cda8a2575e3805d99f23310 /arch/powerpc/include/asm/kvm_booke.h | |
parent | 71ee8e34fe26252b11668a95708783ec9c58cbda (diff) | |
download | blackbird-op-linux-92234722ed631f472f1c4d79d35d8e5cf6910002.tar.gz blackbird-op-linux-92234722ed631f472f1c4d79d35d8e5cf6910002.zip |
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>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_booke.h')
0 files changed, 0 insertions, 0 deletions