Skip to content
  • Alexander Graf's avatar
    KVM: PPC: Introduce kvm_tmp framework · 2d4f5671
    Alexander Graf authored
    
    
    We will soon require more sophisticated methods to replace single instructions
    with multiple instructions. We do that by branching to a memory region where we
    write replacement code for the instruction to.
    
    This region needs to be within 32 MB of the patched instruction though, because
    that's the furthest we can jump with immediate branches.
    
    So we keep 1MB of free space around in bss. After we're done initing we can just
    tell the mm system that the unused pages are free, but until then we have enough
    space to fit all our code in.
    
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    2d4f5671