Searched refs:kvm_cpu_context (Results 1 – 11 of 11) sorted by relevance
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/vhe/ |
D | sysreg-sr.c | 27 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()
|
D | switch.c | 35 DEFINE_PER_CPU(struct kvm_cpu_context, kvm_hyp_ctxt); 117 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run_vhe() 118 struct kvm_cpu_context *guest_ctxt; in __kvm_vcpu_run_vhe() 203 struct kvm_cpu_context *host_ctxt; in __hyp_call_panic()
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | kvm_hyp.h | 15 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); 102 void __noreturn __hyp_do_panic(struct kvm_cpu_context *host_ctxt, u64 spsr,
|
D | kvm_host.h | 249 struct kvm_cpu_context { struct 273 struct kvm_cpu_context host_ctxt; argument 285 struct kvm_cpu_context ctxt; 577 static inline void kvm_init_host_cpu_context(struct kvm_cpu_context *cpu_ctxt) in kvm_init_host_cpu_context()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/nvhe/ |
D | switch.c | 32 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() 263 struct kvm_cpu_context *host_ctxt; in hyp_panic()
|
D | sysreg-sr.c | 21 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()
|
D | hyp-main.c | 18 struct kvm_cpu_context *host_ctxt) in handle_host_hcall() 107 void handle_trap(struct kvm_cpu_context *host_ctxt) in handle_trap()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/include/hyp/ |
D | sysreg-sr.h | 18 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() 68 static inline void __sysreg_restore_common_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_common_state() 73 static inline void __sysreg_restore_user_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_user_state() 79 static inline void __sysreg_restore_el1_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_el1_state() 138 static inline void __sysreg_restore_el2_return_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_el2_return_state()
|
D | debug-sr.h | 92 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()
|
D | switch.h | 375 DECLARE_PER_CPU(struct kvm_cpu_context, kvm_hyp_ctxt); 379 struct kvm_cpu_context *ctxt; in __hyp_handle_ptrauth()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | asm-offsets.c | 107 DEFINE(CPU_USER_PT_REGS, offsetof(struct kvm_cpu_context, regs)); in main() 108 DEFINE(CPU_APIAKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APIAKEYLO_EL1])); in main() 109 DEFINE(CPU_APIBKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APIBKEYLO_EL1])); in main() 110 DEFINE(CPU_APDAKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APDAKEYLO_EL1])); in main() 111 DEFINE(CPU_APDBKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APDBKEYLO_EL1])); in main() 112 DEFINE(CPU_APGAKEYLO_EL1, offsetof(struct kvm_cpu_context, sys_regs[APGAKEYLO_EL1])); in main() 113 DEFINE(HOST_CONTEXT_VCPU, offsetof(struct kvm_cpu_context, __hyp_running_vcpu)); in main()
|