Home
last modified time | relevance | path

Searched refs:kvm_cpu_context (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/arch/arm64/kvm/hyp/vhe/
Dsysreg-sr.c27 void sysreg_save_host_state_vhe(struct kvm_cpu_context *ctxt) in sysreg_save_host_state_vhe()
33 void sysreg_save_guest_state_vhe(struct kvm_cpu_context *ctxt) in sysreg_save_guest_state_vhe()
40 void sysreg_restore_host_state_vhe(struct kvm_cpu_context *ctxt) in sysreg_restore_host_state_vhe()
46 void sysreg_restore_guest_state_vhe(struct kvm_cpu_context *ctxt) in sysreg_restore_guest_state_vhe()
66 struct kvm_cpu_context *guest_ctxt = &vcpu->arch.ctxt; in kvm_vcpu_load_sysregs_vhe()
67 struct kvm_cpu_context *host_ctxt; in kvm_vcpu_load_sysregs_vhe()
100 struct kvm_cpu_context *guest_ctxt = &vcpu->arch.ctxt; in kvm_vcpu_put_sysregs_vhe()
101 struct kvm_cpu_context *host_ctxt; in kvm_vcpu_put_sysregs_vhe()
Dswitch.c33 DEFINE_PER_CPU(struct kvm_cpu_context, kvm_hyp_ctxt);
112 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run_vhe()
113 struct kvm_cpu_context *guest_ctxt; in __kvm_vcpu_run_vhe()
198 struct kvm_cpu_context *host_ctxt; in __hyp_call_panic()
/Linux-v5.10/arch/arm64/include/asm/
Dkvm_hyp.h15 DECLARE_PER_CPU(struct kvm_cpu_context, kvm_hyp_ctxt);
73 void __sysreg_save_state_nvhe(struct kvm_cpu_context *ctxt);
74 void __sysreg_restore_state_nvhe(struct kvm_cpu_context *ctxt);
76 void sysreg_save_host_state_vhe(struct kvm_cpu_context *ctxt);
77 void sysreg_restore_host_state_vhe(struct kvm_cpu_context *ctxt);
78 void sysreg_save_guest_state_vhe(struct kvm_cpu_context *ctxt);
79 void sysreg_restore_guest_state_vhe(struct kvm_cpu_context *ctxt);
Dkvm_host.h248 struct kvm_cpu_context { struct
272 struct kvm_cpu_context host_ctxt; argument
284 struct kvm_cpu_context ctxt;
576 static inline void kvm_init_host_cpu_context(struct kvm_cpu_context *cpu_ctxt) in kvm_init_host_cpu_context()
/Linux-v5.10/arch/arm64/kvm/hyp/nvhe/
Dswitch.c32 DEFINE_PER_CPU(struct kvm_cpu_context, kvm_hyp_ctxt);
53 struct kvm_cpu_context *ctxt = &vcpu->arch.ctxt; in __activate_traps()
130 static bool __pmu_switch_to_guest(struct kvm_cpu_context *host_ctxt) in __pmu_switch_to_guest()
150 static void __pmu_switch_to_host(struct kvm_cpu_context *host_ctxt) in __pmu_switch_to_host()
168 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run()
169 struct kvm_cpu_context *guest_ctxt; in __kvm_vcpu_run()
255 struct kvm_cpu_context *host_ctxt; in hyp_panic()
Dsysreg-sr.c21 void __sysreg_save_state_nvhe(struct kvm_cpu_context *ctxt) in __sysreg_save_state_nvhe()
29 void __sysreg_restore_state_nvhe(struct kvm_cpu_context *ctxt) in __sysreg_restore_state_nvhe()
Dhyp-main.c18 struct kvm_cpu_context *host_ctxt) in handle_host_hcall()
107 void handle_trap(struct kvm_cpu_context *host_ctxt) in handle_trap()
/Linux-v5.10/arch/arm64/kvm/hyp/include/hyp/
Dsysreg-sr.h18 static inline void __sysreg_save_common_state(struct kvm_cpu_context *ctxt) in __sysreg_save_common_state()
23 static inline void __sysreg_save_user_state(struct kvm_cpu_context *ctxt) in __sysreg_save_user_state()
29 static inline void __sysreg_save_el1_state(struct kvm_cpu_context *ctxt) in __sysreg_save_el1_state()
54 static inline void __sysreg_save_el2_return_state(struct kvm_cpu_context *ctxt) in __sysreg_save_el2_return_state()
63 static inline void __sysreg_restore_common_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_common_state()
68 static inline void __sysreg_restore_user_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_user_state()
74 static inline void __sysreg_restore_el1_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_el1_state()
133 static inline void __sysreg_restore_el2_return_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_el2_return_state()
Ddebug-sr.h92 struct kvm_cpu_context *ctxt) in __debug_save_state()
110 struct kvm_cpu_context *ctxt) in __debug_restore_state()
130 struct kvm_cpu_context *host_ctxt; in __debug_switch_to_guest_common()
131 struct kvm_cpu_context *guest_ctxt; in __debug_switch_to_guest_common()
149 struct kvm_cpu_context *host_ctxt; in __debug_switch_to_host_common()
150 struct kvm_cpu_context *guest_ctxt; in __debug_switch_to_host_common()
Dswitch.h375 DECLARE_PER_CPU(struct kvm_cpu_context, kvm_hyp_ctxt);
379 struct kvm_cpu_context *ctxt; in __hyp_handle_ptrauth()
/Linux-v5.10/arch/arm64/kernel/
Dasm-offsets.c105 DEFINE(CPU_USER_PT_REGS, offsetof(struct kvm_cpu_context, regs)); in main()
106 DEFINE(CPU_APIAKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APIAKEYLO_EL1])); in main()
107 DEFINE(CPU_APIBKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APIBKEYLO_EL1])); in main()
108 DEFINE(CPU_APDAKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APDAKEYLO_EL1])); in main()
109 DEFINE(CPU_APDBKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APDBKEYLO_EL1])); in main()
110 DEFINE(CPU_APGAKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APGAKEYLO_EL1])); in main()
111 DEFINE(HOST_CONTEXT_VCPU, offsetof(struct kvm_cpu_context, __hyp_running_vcpu)); in main()