powerpc/kvm: Add ifdefs around template code
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 Sep 2019 11:57:46 +0000 (21:57 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:40 +0000 (00:04 +1000)
commitcaff52dc0b71538cff43c06ede3621fbbf359978
tree4e457acac9a5aeee51c961c1a29a40b6ceeebbca
parent731dade128ebc35044e7f9b9d396e4c1bed6ecbc
powerpc/kvm: Add ifdefs around template code

Some of the templates used for KVM patching are only used on certain
platforms, but currently they are always built-in, fix that.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190911115746.12433-4-mpe@ellerman.id.au
arch/powerpc/kernel/kvm_emul.S