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 /crypto | |
parent | 71ee8e34fe26252b11668a95708783ec9c58cbda (diff) | |
download | kernel_samsung_smdk4412-92234722ed631f472f1c4d79d35d8e5cf6910002.zip kernel_samsung_smdk4412-92234722ed631f472f1c4d79d35d8e5cf6910002.tar.gz kernel_samsung_smdk4412-92234722ed631f472f1c4d79d35d8e5cf6910002.tar.bz2 |
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 'crypto')
0 files changed, 0 insertions, 0 deletions