Home
last modified time | relevance | path

Searched refs:host_ctxt (Results 1 – 13 of 13) sorted by relevance

/linux/arch/arm64/kvm/hyp/nvhe/
H A Dhyp-main.c27 void __kvm_hyp_host_forward_smc(struct kvm_cpu_context *host_ctxt);
92 __fpsimd_restore_state(host_data_ptr(host_ctxt.fp_regs)); in fpsimd_sve_sync()
169 static void handle___pkvm_vcpu_load(struct kvm_cpu_context *host_ctxt) in handle___pkvm_vcpu_load() argument
171 DECLARE_REG(pkvm_handle_t, handle, host_ctxt, 1); in handle___pkvm_vcpu_load()
172 DECLARE_REG(unsigned int, vcpu_idx, host_ctxt, 2); in handle___pkvm_vcpu_load()
173 DECLARE_REG(u64, hcr_el2, host_ctxt, 3); in handle___pkvm_vcpu_load()
190 static void handle___pkvm_vcpu_put(struct kvm_cpu_context *host_ctxt) in handle___pkvm_vcpu_put() argument
198 static void handle___kvm_vcpu_run(struct kvm_cpu_context *host_ctxt) in handle___kvm_vcpu_run() argument
200 DECLARE_REG(struct kvm_vcpu *, host_vcpu, host_ctxt, 1); in handle___kvm_vcpu_run()
236 cpu_reg(host_ctxt, 1) = ret; in handle___kvm_vcpu_run()
[all …]
H A Dtlb.c24 struct kvm_cpu_context *host_ctxt; in enter_vmid_context() local
27 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in enter_vmid_context()
28 vcpu = host_ctxt->__hyp_running_vcpu; in enter_vmid_context()
121 struct kvm_cpu_context *host_ctxt; in exit_vmid_context() local
124 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in exit_vmid_context()
125 vcpu = host_ctxt->__hyp_running_vcpu; in exit_vmid_context()
H A Dsetup.c289 struct kvm_cpu_context *host_ctxt = host_data_ptr(host_ctxt); in __pkvm_init_finalise() local
339 cpu_reg(host_ctxt, 1) = ret; in __pkvm_init_finalise()
341 __host_enter(host_ctxt); in __pkvm_init_finalise()
H A Dmem_protect.c712 static void host_inject_mem_abort(struct kvm_cpu_context *host_ctxt) in host_inject_mem_abort() argument
745 void handle_host_mem_abort(struct kvm_cpu_context *host_ctxt) in handle_host_mem_abort() argument
769 host_inject_mem_abort(host_ctxt); in handle_host_mem_abort()
/linux/arch/arm64/kvm/hyp/include/hyp/
H A Ddebug-sr.h136 struct kvm_cpu_context *host_ctxt; in __debug_switch_to_guest_common() local
144 host_ctxt = host_data_ptr(host_ctxt); in __debug_switch_to_guest_common()
149 __debug_save_state(host_dbg, host_ctxt); in __debug_switch_to_guest_common()
155 struct kvm_cpu_context *host_ctxt; in __debug_switch_to_host_common() local
163 host_ctxt = host_data_ptr(host_ctxt); in __debug_switch_to_host_common()
169 __debug_restore_state(host_dbg, host_ctxt); in __debug_switch_to_host_common()
H A Dswitch.h212 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __activate_traps_hfgxtr()
238 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __activate_traps_ich_hfgxtr()
256 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __deactivate_traps_hfgxtr()
282 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __deactivate_traps_ich_hfgxtr()
328 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __activate_traps_common()
366 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __deactivate_traps_common()
569 __fpsimd_save_state(host_data_ptr(host_ctxt.fp_regs)); in kvm_hyp_save_fpsimd_host()
H A Dsysreg-sr.h33 return host_data_ptr(host_ctxt) != ctxt; in ctxt_is_guest()
/linux/arch/arm64/kvm/hyp/vhe/
H A Dswitch.c218 host_data_ptr(host_ctxt)->__hyp_running_vcpu = vcpu; in kvm_vcpu_load_vhe()
230 host_data_ptr(host_ctxt)->__hyp_running_vcpu = NULL; in kvm_vcpu_put_vhe()
574 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run_vhe() local
578 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run_vhe()
583 sysreg_save_host_state_vhe(host_ctxt); in __kvm_vcpu_run_vhe()
609 sysreg_restore_host_state_vhe(host_ctxt); in __kvm_vcpu_run_vhe()
660 struct kvm_cpu_context *host_ctxt; in __hyp_call_panic() local
663 host_ctxt = host_data_ptr(host_ctxt); in __hyp_call_panic()
664 vcpu = host_ctxt->__hyp_running_vcpu; in __hyp_call_panic()
668 sysreg_restore_host_state_vhe(host_ctxt); in __hyp_call_panic()
/linux/arch/arm64/kvm/hyp/include/nvhe/
H A Dffa.h15 bool kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt, u32 func_id);
/linux/arch/arm64/kernel/
H A Dasm-offsets.c118 DEFINE(HOST_DATA_CONTEXT, offsetof(struct kvm_host_data, host_ctxt)); in main()
/linux/arch/arm64/include/asm/
H A Dkvm_asm.h320 void handle_trap(struct kvm_cpu_context *host_ctxt);
H A Dkvm_host.h770 struct kvm_cpu_context host_ctxt; member
/linux/arch/arm64/kvm/
H A Darm.c2238 kvm_init_host_cpu_context(host_data_ptr(host_ctxt)); in cpu_hyp_init_context()