]> git.karo-electronics.de Git - linux-beck.git/commit
arm64: KVM: Add patchable function selector
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 28 Oct 2015 08:45:37 +0000 (08:45 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 14 Dec 2015 11:30:40 +0000 (11:30 +0000)
commitc1bf6e18e97e7ead77371d4251f8ef1567455584
tree53e7415e7f0f0cca0ae632298a94c1d58c43efb2
parentb97b66c14b96ab562e4fd516d804c5cd05c0529e
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: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/hyp.h