Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/nvhe/
H A 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_flush_vm_context(struct kvm_cpu_context *host_ctxt) in handle___kvm_flush_vm_context() argument
36 static void handle___kvm_tlb_flush_vmid_ipa(struct kvm_cpu_context *host_ctxt) in handle___kvm_tlb_flush_vmid_ipa() argument
38 DECLARE_REG(struct kvm_s2_mmu *, mmu, host_ctxt, 1); in handle___kvm_tlb_flush_vmid_ipa()
39 DECLARE_REG(phys_addr_t, ipa, host_ctxt, 2); in handle___kvm_tlb_flush_vmid_ipa()
40 DECLARE_REG(int, level, host_ctxt, 3); in handle___kvm_tlb_flush_vmid_ipa()
45 static void handle___kvm_tlb_flush_vmid(struct kvm_cpu_context *host_ctxt) in handle___kvm_tlb_flush_vmid() argument
[all …]
H A 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 …]
H A Dswitch.c134 static bool __pmu_switch_to_guest(struct kvm_cpu_context *host_ctxt) in __pmu_switch_to_guest() argument
139 host = container_of(host_ctxt, struct kvm_host_data, host_ctxt); in __pmu_switch_to_guest()
154 static void __pmu_switch_to_host(struct kvm_cpu_context *host_ctxt) in __pmu_switch_to_host() argument
159 host = container_of(host_ctxt, struct kvm_host_data, host_ctxt); in __pmu_switch_to_host()
172 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run() local
188 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in __kvm_vcpu_run()
189 host_ctxt->__hyp_running_vcpu = vcpu; in __kvm_vcpu_run()
192 pmu_switch_needed = __pmu_switch_to_guest(host_ctxt); in __kvm_vcpu_run()
194 __sysreg_save_state_nvhe(host_ctxt); in __kvm_vcpu_run()
240 __sysreg_restore_state_nvhe(host_ctxt); in __kvm_vcpu_run()
[all …]
H A Dsetup.c149 struct kvm_cpu_context *host_ctxt = &host_data->host_ctxt; in __pkvm_init_finalise() local
179 cpu_reg(host_ctxt, 1) = ret; in __pkvm_init_finalise()
181 __host_enter(host_ctxt); in __pkvm_init_finalise()
H A Dmem_protect.c278 void handle_host_mem_abort(struct kvm_cpu_context *host_ctxt) in handle_host_mem_abort() argument
/OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/vhe/
H A Dswitch.c118 struct kvm_cpu_context *host_ctxt; in __kvm_vcpu_run_vhe() local
122 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in __kvm_vcpu_run_vhe()
123 host_ctxt->__hyp_running_vcpu = vcpu; in __kvm_vcpu_run_vhe()
126 sysreg_save_host_state_vhe(host_ctxt); in __kvm_vcpu_run_vhe()
158 sysreg_restore_host_state_vhe(host_ctxt); in __kvm_vcpu_run_vhe()
206 struct kvm_cpu_context *host_ctxt; in __hyp_call_panic() local
209 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in __hyp_call_panic()
210 vcpu = host_ctxt->__hyp_running_vcpu; in __hyp_call_panic()
213 sysreg_restore_host_state_vhe(host_ctxt); in __hyp_call_panic()
H A 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()
/OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/include/hyp/
H A 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()
/OK3568_Linux_fs/kernel/arch/arm64/include/asm/
H A Dkvm_hyp.h103 bool kvm_host_psci_handler(struct kvm_cpu_context *host_ctxt);
107 void __noreturn __hyp_do_panic(struct kvm_cpu_context *host_ctxt, u64 spsr,
116 void __noreturn __host_enter(struct kvm_cpu_context *host_ctxt);
H A Dkvm_host.h240 struct kvm_cpu_context host_ctxt; member
/OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/include/nvhe/
H A Dmem_protect.h27 void handle_host_mem_abort(struct kvm_cpu_context *host_ctxt);
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A Dasm-offsets.c121 DEFINE(HOST_DATA_CONTEXT, offsetof(struct kvm_host_data, host_ctxt)); in main()
/OK3568_Linux_fs/kernel/arch/arm64/kvm/
H A Darm.c1525 kvm_init_host_cpu_context(&this_cpu_ptr_hyp_sym(kvm_host_data)->host_ctxt); in cpu_hyp_reinit()