mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 16:53:58 -05:00
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
This commit is contained in:
parent
731dade128
commit
caff52dc0b
1 changed files with 8 additions and 0 deletions
|
@ -192,6 +192,8 @@ kvm_emulate_mtmsr_orig_ins_offs:
|
|||
kvm_emulate_mtmsr_len:
|
||||
.long (kvm_emulate_mtmsr_end - kvm_emulate_mtmsr) / 4
|
||||
|
||||
#ifdef CONFIG_BOOKE
|
||||
|
||||
/* also used for wrteei 1 */
|
||||
.global kvm_emulate_wrtee
|
||||
kvm_emulate_wrtee:
|
||||
|
@ -285,6 +287,10 @@ kvm_emulate_wrteei_0_branch_offs:
|
|||
kvm_emulate_wrteei_0_len:
|
||||
.long (kvm_emulate_wrteei_0_end - kvm_emulate_wrteei_0) / 4
|
||||
|
||||
#endif /* CONFIG_BOOKE */
|
||||
|
||||
#ifdef CONFIG_PPC_BOOK3S_32
|
||||
|
||||
.global kvm_emulate_mtsrin
|
||||
kvm_emulate_mtsrin:
|
||||
|
||||
|
@ -334,6 +340,8 @@ kvm_emulate_mtsrin_orig_ins_offs:
|
|||
kvm_emulate_mtsrin_len:
|
||||
.long (kvm_emulate_mtsrin_end - kvm_emulate_mtsrin) / 4
|
||||
|
||||
#endif /* CONFIG_PPC_BOOK3S_32 */
|
||||
|
||||
.balign 4
|
||||
.global kvm_tmp
|
||||
kvm_tmp:
|
||||
|
|
Loading…
Add table
Reference in a new issue