File tree Expand file tree Collapse file tree 7 files changed +19
-9
lines changed Expand file tree Collapse file tree 7 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,10 @@ void __vgic_v3_save_aprs(struct vgic_v3_cpu_if *cpu_if);
63
63
void __vgic_v3_restore_aprs (struct vgic_v3_cpu_if * cpu_if );
64
64
int __vgic_v3_perform_cpuif_access (struct kvm_vcpu * vcpu );
65
65
66
+ #ifdef __KVM_NVHE_HYPERVISOR__
66
67
void __timer_enable_traps (struct kvm_vcpu * vcpu );
67
68
void __timer_disable_traps (struct kvm_vcpu * vcpu );
69
+ #endif
68
70
69
71
#ifdef __KVM_NVHE_HYPERVISOR__
70
72
void __sysreg_save_state_nvhe (struct kvm_cpu_context * ctxt );
Original file line number Diff line number Diff line change @@ -76,11 +76,6 @@ KVM_NVHE_ALIAS(abort_guest_exit_start);
76
76
KVM_NVHE_ALIAS (__fpsimd_restore_state );
77
77
KVM_NVHE_ALIAS (__fpsimd_save_state );
78
78
79
- /* Symbols defined in timer-sr.c (not yet compiled with nVHE build rules). */
80
- KVM_NVHE_ALIAS (__kvm_timer_set_cntvoff );
81
- KVM_NVHE_ALIAS (__timer_disable_traps );
82
- KVM_NVHE_ALIAS (__timer_enable_traps );
83
-
84
79
/* Symbols defined in vgic-v2-cpuif-proxy.c (not yet compiled with nVHE build rules). */
85
80
KVM_NVHE_ALIAS (__vgic_v2_perform_cpuif_access );
86
81
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ subdir-ccflags-y := -I$(incdir) \
13
13
obj-$(CONFIG_KVM) += hyp.o vhe/ nvhe/
14
14
obj-$(CONFIG_KVM_INDIRECT_VECTORS) += smccc_wa.o
15
15
16
- hyp-y := vgic-v3-sr.o timer-sr.o aarch32.o vgic-v2-cpuif-proxy.o entry.o \
16
+ hyp-y := vgic-v3-sr.o aarch32.o vgic-v2-cpuif-proxy.o entry.o \
17
17
fpsimd.o
18
18
19
19
# KVM code is run at a different exception code with a different map, so
Original file line number Diff line number Diff line change 6
6
asflags-y := -D__KVM_NVHE_HYPERVISOR__
7
7
ccflags-y := -D__KVM_NVHE_HYPERVISOR__
8
8
9
- obj-y := sysreg-sr.o debug-sr.o switch.o tlb.o hyp-init.o ../hyp-entry.o
9
+ obj-y := timer-sr.o sysreg-sr.o debug-sr.o switch.o tlb.o hyp-init.o \
10
+ ../hyp-entry.o
10
11
11
12
obj-y := $(patsubst % .o,% .hyp.o,$(obj-y ) )
12
13
extra-y := $(patsubst % .hyp.o,% .hyp.tmp.o,$(obj-y ) )
Original file line number Diff line number Diff line change 10
10
11
11
#include <asm/kvm_hyp.h>
12
12
13
- void __hyp_text __kvm_timer_set_cntvoff (u64 cntvoff )
13
+ void __kvm_timer_set_cntvoff (u64 cntvoff )
14
14
{
15
15
write_sysreg (cntvoff , cntvoff_el2 );
16
16
}
Original file line number Diff line number Diff line change 6
6
asflags-y := -D__KVM_VHE_HYPERVISOR__
7
7
ccflags-y := -D__KVM_VHE_HYPERVISOR__
8
8
9
- obj-y := sysreg-sr.o debug-sr.o switch.o tlb.o ../hyp-entry.o
9
+ obj-y := timer-sr.o sysreg-sr.o debug-sr.o switch.o tlb.o ../hyp-entry.o
10
10
11
11
# KVM code is run at a different exception code with a different map, so
12
12
# compiler instrumentation that inserts callbacks or checks into the code may
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: GPL-2.0-only
2
+ /*
3
+ * Copyright (C) 2012-2015 - ARM Ltd
4
+ * Author: Marc Zyngier <[email protected] >
5
+ */
6
+
7
+ #include <asm/kvm_hyp.h>
8
+
9
+ void __kvm_timer_set_cntvoff (u64 cntvoff )
10
+ {
11
+ write_sysreg (cntvoff , cntvoff_el2 );
12
+ }
You can’t perform that action at this time.
0 commit comments