Home
last modified time | relevance | path

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

/linux-6.1.9/arch/arm64/kvm/hyp/nvhe/ !
Dhyp-main.c22 void __kvm_hyp_host_forward_smc(struct kvm_cpu_context *host_ctxt);
24 static void handle___kvm_vcpu_run(struct kvm_cpu_context *host_ctxt) in handle___kvm_vcpu_run() argument
26 DECLARE_REG(struct kvm_vcpu *, vcpu, host_ctxt, 1); in handle___kvm_vcpu_run()
28 cpu_reg(host_ctxt, 1) = __kvm_vcpu_run(kern_hyp_va(vcpu)); in handle___kvm_vcpu_run()
31 static void handle___kvm_adjust_pc(struct kvm_cpu_context *host_ctxt) in handle___kvm_adjust_pc() argument
33 DECLARE_REG(struct kvm_vcpu *, vcpu, host_ctxt, 1); in handle___kvm_adjust_pc()
38 static void handle___kvm_flush_vm_context(struct kvm_cpu_context *host_ctxt) in handle___kvm_flush_vm_context() argument
43 static void handle___kvm_tlb_flush_vmid_ipa(struct kvm_cpu_context *host_ctxt) in handle___kvm_tlb_flush_vmid_ipa() argument
45 DECLARE_REG(struct kvm_s2_mmu *, mmu, host_ctxt, 1); in handle___kvm_tlb_flush_vmid_ipa()
46 DECLARE_REG(phys_addr_t, ipa, host_ctxt, 2); in handle___kvm_tlb_flush_vmid_ipa()
[all …]
Dpsci-relay.c20 void __noreturn __host_enter(struct kvm_cpu_context *host_ctxt);
72 static unsigned long psci_forward(struct kvm_cpu_context *host_ctxt) in psci_forward() argument
74 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()
107 static int psci_cpu_on(u64 func_id, struct kvm_cpu_context *host_ctxt) in psci_cpu_on() argument
109 DECLARE_REG(u64, mpidr, host_ctxt, 1); in psci_cpu_on()
110 DECLARE_REG(unsigned long, pc, host_ctxt, 2); in psci_cpu_on()
111 DECLARE_REG(unsigned long, r0, host_ctxt, 3); in psci_cpu_on()
151 static int psci_cpu_suspend(u64 func_id, struct kvm_cpu_context *host_ctxt) in psci_cpu_suspend() argument
153 DECLARE_REG(u64, power_state, host_ctxt, 1); in psci_cpu_suspend()
[all …]
Dswitch.c242 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run() local
259 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in __kvm_vcpu_run()
260 host_ctxt->__hyp_running_vcpu = vcpu; in __kvm_vcpu_run()
265 __sysreg_save_state_nvhe(host_ctxt); in __kvm_vcpu_run()
312 __sysreg_restore_state_nvhe(host_ctxt); in __kvm_vcpu_run()
331 host_ctxt->__hyp_running_vcpu = NULL; in __kvm_vcpu_run()
341 struct kvm_cpu_context *host_ctxt; in hyp_panic() local
344 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in hyp_panic()
345 vcpu = host_ctxt->__hyp_running_vcpu; in hyp_panic()
351 __sysreg_restore_state_nvhe(host_ctxt); in hyp_panic()
[all …]
Dsetup.c264 struct kvm_cpu_context *host_ctxt = &host_data->host_ctxt; in __pkvm_init_finalise() local
299 cpu_reg(host_ctxt, 1) = ret; in __pkvm_init_finalise()
301 __host_enter(host_ctxt); in __pkvm_init_finalise()
Dmem_protect.c369 void handle_host_mem_abort(struct kvm_cpu_context *host_ctxt) in handle_host_mem_abort() argument
/linux-6.1.9/arch/arm64/kvm/hyp/vhe/ !
Dsysreg-sr.c67 struct kvm_cpu_context *host_ctxt; in kvm_vcpu_load_sysregs_vhe() local
69 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in kvm_vcpu_load_sysregs_vhe()
70 __sysreg_save_user_state(host_ctxt); in kvm_vcpu_load_sysregs_vhe()
101 struct kvm_cpu_context *host_ctxt; in kvm_vcpu_put_sysregs_vhe() local
103 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in kvm_vcpu_put_sysregs_vhe()
111 __sysreg_restore_user_state(host_ctxt); in kvm_vcpu_put_sysregs_vhe()
Dswitch.c128 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run_vhe() local
132 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in __kvm_vcpu_run_vhe()
133 host_ctxt->__hyp_running_vcpu = vcpu; in __kvm_vcpu_run_vhe()
136 sysreg_save_host_state_vhe(host_ctxt); in __kvm_vcpu_run_vhe()
168 sysreg_restore_host_state_vhe(host_ctxt); in __kvm_vcpu_run_vhe()
216 struct kvm_cpu_context *host_ctxt; in __hyp_call_panic() local
219 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in __hyp_call_panic()
220 vcpu = host_ctxt->__hyp_running_vcpu; in __hyp_call_panic()
223 sysreg_restore_host_state_vhe(host_ctxt); in __hyp_call_panic()
/linux-6.1.9/arch/arm64/kvm/hyp/include/hyp/ !
Ddebug-sr.h130 struct kvm_cpu_context *host_ctxt; in __debug_switch_to_guest_common() local
138 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in __debug_switch_to_guest_common()
143 __debug_save_state(host_dbg, host_ctxt); in __debug_switch_to_guest_common()
149 struct kvm_cpu_context *host_ctxt; in __debug_switch_to_host_common() local
157 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in __debug_switch_to_host_common()
163 __debug_restore_state(host_dbg, host_ctxt); in __debug_switch_to_host_common()
/linux-6.1.9/arch/arm64/include/asm/ !
Dkvm_hyp.h102 bool kvm_host_psci_handler(struct kvm_cpu_context *host_ctxt);
105 void __noreturn __hyp_do_panic(struct kvm_cpu_context *host_ctxt, u64 spsr,
114 void __noreturn __host_enter(struct kvm_cpu_context *host_ctxt);
Dkvm_host.h274 struct kvm_cpu_context host_ctxt; member
/linux-6.1.9/arch/arm64/kvm/hyp/include/nvhe/ !
Dmem_protect.h64 void handle_host_mem_abort(struct kvm_cpu_context *host_ctxt);
/linux-6.1.9/arch/arm64/kernel/ !
Dasm-offsets.c124 DEFINE(HOST_DATA_CONTEXT, offsetof(struct kvm_host_data, host_ctxt)); in main()
/linux-6.1.9/arch/arm64/kvm/ !
Darm.c1643 kvm_init_host_cpu_context(&this_cpu_ptr_hyp_sym(kvm_host_data)->host_ctxt); in cpu_hyp_init_context()