]> git.baikalelectronics.ru Git - kernel.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)
commitd8b422ad78a9574ff4a8a38c3f884f41b7b10ef6
tree53e7415e7f0f0cca0ae632298a94c1d58c43efb2
parent92be1485ae4492eb20b0587630282accf529d29e
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