Home
last modified time | relevance | path

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

/linux-6.15/arch/arm64/kvm/hyp/nvhe/
H A Dhyp-main.c236 cpu_reg(host_ctxt, 1) = ret; in handle___kvm_vcpu_run()
269 cpu_reg(host_ctxt, 1) = ret; in handle___pkvm_host_share_guest()
289 cpu_reg(host_ctxt, 1) = ret; in handle___pkvm_host_unshare_guest()
308 cpu_reg(host_ctxt, 1) = ret; in handle___pkvm_host_relax_perms_guest()
328 cpu_reg(host_ctxt, 1) = ret; in handle___pkvm_host_wrprotect_guest()
349 cpu_reg(host_ctxt, 1) = ret; in handle___pkvm_host_test_clear_young_guest()
367 cpu_reg(host_ctxt, 1) = ret; in handle___pkvm_host_mkyoung_guest()
538 cpu_reg(host_ctxt, 1) = haddr; in handle___pkvm_create_private_mapping()
643 hfn(host_ctxt); in handle_host_hcall()
678 handle_host_hcall(host_ctxt); in handle_trap()
[all …]
H A Dpsci-relay.c74 return psci_call(cpu_reg(host_ctxt, 0), cpu_reg(host_ctxt, 1), in psci_forward()
75 cpu_reg(host_ctxt, 2), cpu_reg(host_ctxt, 3)); in psci_forward()
208 host_ctxt = host_data_ptr(host_ctxt); in __kvm_host_psci_cpu_entry()
224 __host_enter(host_ctxt); in __kvm_host_psci_cpu_entry()
230 return psci_forward(host_ctxt); in psci_0_1_handler()
248 return psci_forward(host_ctxt); in psci_0_2_handler()
255 return psci_forward(host_ctxt); in psci_0_2_handler()
303 cpu_reg(host_ctxt, 0) = ret; in kvm_host_psci_handler()
304 cpu_reg(host_ctxt, 1) = 0; in kvm_host_psci_handler()
305 cpu_reg(host_ctxt, 2) = 0; in kvm_host_psci_handler()
[all …]
H A Dswitch.c285 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run() local
302 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run()
303 host_ctxt->__hyp_running_vcpu = vcpu; in __kvm_vcpu_run()
308 __sysreg_save_state_nvhe(host_ctxt); in __kvm_vcpu_run()
373 __sysreg_restore_state_nvhe(host_ctxt); in __kvm_vcpu_run()
392 host_ctxt->__hyp_running_vcpu = NULL; in __kvm_vcpu_run()
402 struct kvm_cpu_context *host_ctxt; in hyp_panic() local
405 host_ctxt = host_data_ptr(host_ctxt); in hyp_panic()
406 vcpu = host_ctxt->__hyp_running_vcpu; in hyp_panic()
412 __sysreg_restore_state_nvhe(host_ctxt); in hyp_panic()
[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 Dffa.c792 bool kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt, u32 func_id) in kvm_host_ffa_handler() argument
820 if (!do_ffa_features(&res, host_ctxt)) in kvm_host_ffa_handler()
825 do_ffa_rxtx_map(&res, host_ctxt); in kvm_host_ffa_handler()
828 do_ffa_rxtx_unmap(&res, host_ctxt); in kvm_host_ffa_handler()
832 do_ffa_mem_xfer(FFA_FN64_MEM_SHARE, &res, host_ctxt); in kvm_host_ffa_handler()
835 do_ffa_mem_reclaim(&res, host_ctxt); in kvm_host_ffa_handler()
839 do_ffa_mem_xfer(FFA_FN64_MEM_LEND, &res, host_ctxt); in kvm_host_ffa_handler()
842 do_ffa_mem_frag_tx(&res, host_ctxt); in kvm_host_ffa_handler()
845 do_ffa_version(&res, host_ctxt); in kvm_host_ffa_handler()
848 do_ffa_part_get(&res, host_ctxt); in kvm_host_ffa_handler()
[all …]
H A Dsetup.c264 struct kvm_cpu_context *host_ctxt = host_data_ptr(host_ctxt); in __pkvm_init_finalise() local
312 cpu_reg(host_ctxt, 1) = ret; in __pkvm_init_finalise()
314 __host_enter(host_ctxt); in __pkvm_init_finalise()
H A Dmem_protect.c566 void handle_host_mem_abort(struct kvm_cpu_context *host_ctxt) in handle_host_mem_abort() argument
/linux-6.15/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.h152 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __activate_traps_hfgxtr()
188 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __deactivate_traps_hfgxtr()
238 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __activate_traps_common()
281 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __deactivate_traps_common()
451 __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-6.15/arch/arm64/kvm/hyp/vhe/
H A Dsysreg-sr.c194 struct kvm_cpu_context *host_ctxt; in __vcpu_load_switch_sysregs() local
197 host_ctxt = host_data_ptr(host_ctxt); in __vcpu_load_switch_sysregs()
198 __sysreg_save_user_state(host_ctxt); in __vcpu_load_switch_sysregs()
255 struct kvm_cpu_context *host_ctxt; in __vcpu_put_switch_sysregs() local
257 host_ctxt = host_data_ptr(host_ctxt); in __vcpu_put_switch_sysregs()
268 __sysreg_restore_user_state(host_ctxt); in __vcpu_put_switch_sysregs()
H A Dswitch.c254 host_data_ptr(host_ctxt)->__hyp_running_vcpu = vcpu; in kvm_vcpu_load_vhe()
266 host_data_ptr(host_ctxt)->__hyp_running_vcpu = NULL; in kvm_vcpu_put_vhe()
595 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run_vhe() local
599 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run_vhe()
602 sysreg_save_host_state_vhe(host_ctxt); in __kvm_vcpu_run_vhe()
632 sysreg_restore_host_state_vhe(host_ctxt); in __kvm_vcpu_run_vhe()
679 struct kvm_cpu_context *host_ctxt; in __hyp_call_panic() local
682 host_ctxt = host_data_ptr(host_ctxt); in __hyp_call_panic()
683 vcpu = host_ctxt->__hyp_running_vcpu; in __hyp_call_panic()
686 sysreg_restore_host_state_vhe(host_ctxt); in __hyp_call_panic()
/linux-6.15/arch/arm64/include/asm/
H A Dkvm_hyp.h121 bool kvm_host_psci_handler(struct kvm_cpu_context *host_ctxt, u32 func_id);
124 void __noreturn __hyp_do_panic(struct kvm_cpu_context *host_ctxt, u64 spsr,
133 void __noreturn __host_enter(struct kvm_cpu_context *host_ctxt);
H A Dkvm_asm.h291 void handle_trap(struct kvm_cpu_context *host_ctxt);
H A Dkvm_host.h659 struct kvm_cpu_context host_ctxt; member
/linux-6.15/arch/arm64/kvm/hyp/include/nvhe/
H A Dffa.h15 bool kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt, u32 func_id);
H A Dmem_protect.h55 void handle_host_mem_abort(struct kvm_cpu_context *host_ctxt);
/linux-6.15/arch/arm64/kvm/
H A Dpmu.c190 hctxt = host_data_ptr(host_ctxt); in kvm_set_pmuserenr()
H A Darm.c2130 kvm_init_host_cpu_context(host_data_ptr(host_ctxt)); in cpu_hyp_init_context()
/linux-6.15/arch/arm64/kernel/
H A Dasm-offsets.c117 DEFINE(HOST_DATA_CONTEXT, offsetof(struct kvm_host_data, host_ctxt)); in main()