• Marc Zyngier's avatar
    arm64: KVM: Add patchable function selector · c1bf6e18
    Marc Zyngier authored
    KVM so far relies on code patching, and is likely to use it more
    in the future. The main issue is that our alternative system works
    at the instruction level, while we'd like to have alternatives at
    the function level.
    
    In order to cope with this, add the "hyp_alternate_select" macro that
    outputs a brief sequence of code that in turn can be patched, allowing
    an alternative function to be selected.
    Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    c1bf6e18
hyp.h 2.85 KB