Commit c550fc8f authored by Marc Zyngier's avatar Marc Zyngier Committed by Amit Pundir
Browse files

arm64: KVM: Add patchable function selector



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>
(cherry picked from commit c1bf6e18)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent e5b765e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment