]> 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)
commit7aa07633732a8ae1f560158f2d0f0767e6f644e5
tree53e7415e7f0f0cca0ae632298a94c1d58c43efb2
parent14d3008dd6ec7e408327fee0c8c65cb298556d0f
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