• Alexander Graf's avatar
    KVM: PPC: PV assembler helpers · 92234722
    Alexander Graf authored
    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: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    92234722
kvm_emul.S 2.08 KB