Home
last modified time | relevance | path

Searched refs:host_data_ptr (Results 1 – 12 of 12) sorted by relevance

/linux/arch/arm64/kvm/hyp/include/hyp/
H A Ddebug-sr.h109 int brps = *host_data_ptr(debug_brps); in __debug_save_state()
110 int wrps = *host_data_ptr(debug_wrps); in __debug_save_state()
123 int brps = *host_data_ptr(debug_brps); in __debug_restore_state()
124 int wrps = *host_data_ptr(debug_wrps); in __debug_restore_state()
144 host_ctxt = host_data_ptr(host_ctxt); in __debug_switch_to_guest_common()
146 host_dbg = host_data_ptr(host_debug_state.regs); in __debug_switch_to_guest_common()
163 host_ctxt = host_data_ptr(host_ctxt); in __debug_switch_to_host_common()
165 host_dbg = host_data_ptr(host_debug_state.regs); 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()
487 struct cpu_sve_state *sve_state = *host_data_ptr(sve_state); in __hyp_sve_save_host()
565 __fpsimd_save_state(host_data_ptr(host_ctxt.fp_regs)); in kvm_hyp_save_fpsimd_host()
569 *host_data_ptr(fpmr) = read_sysreg_s(SYS_FPMR); in kvm_hyp_save_fpsimd_host()
634 *host_data_ptr(fp_owner) = FP_STATE_GUEST_OWNED; in kvm_hyp_handle_fpsimd()
H A Dsysreg-sr.h33 return host_data_ptr(host_ctxt) != ctxt; in ctxt_is_guest()
/linux/arch/arm64/kvm/
H A Dfpsimd.c40 *host_data_ptr(fp_owner) = FP_STATE_FREE; in kvm_arch_vcpu_load_fp()
55 *host_data_ptr(fp_owner) = FP_STATE_FREE; in kvm_arch_vcpu_ctxflush_fp()
H A Darm.c2236 kvm_init_host_cpu_context(host_data_ptr(host_ctxt)); in cpu_hyp_init_context()
/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()
578 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run_vhe()
663 host_ctxt = host_data_ptr(host_ctxt); in __hyp_call_panic()
/linux/arch/arm64/include/asm/
H A Dkvm_host.h1408 #define host_data_ptr(f) (&this_cpu_ptr(&kvm_host_data)->f) macro
1410 #define host_data_ptr(f) \ macro
1417 (test_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags)))
1419 set_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags))
1421 clear_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags))
1426 return *host_data_ptr(fp_owner) == FP_STATE_GUEST_OWNED; in guest_owns_fp_regs()
1432 return *host_data_ptr(fp_owner) == FP_STATE_HOST_OWNED; in host_owns_fp_regs()
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dhyp-main.c44 struct cpu_sve_state *sve_state = *host_data_ptr(sve_state); in __hyp_sve_restore_host()
64 *host_data_ptr(fp_owner) = FP_STATE_HOST_OWNED; in fpsimd_sve_flush()
92 __fpsimd_restore_state(host_data_ptr(host_ctxt.fp_regs)); in fpsimd_sve_sync()
95 write_sysreg_s(*host_data_ptr(fpmr), SYS_FPMR); in fpsimd_sve_sync()
97 *host_data_ptr(fp_owner) = FP_STATE_HOST_OWNED; in fpsimd_sve_sync()
H A Dsetup.c289 struct kvm_cpu_context *host_ctxt = host_data_ptr(host_ctxt); in __pkvm_init_finalise()
/linux/arch/arm64/kvm/vgic/
H A Dvgic.c863 if (!*host_data_ptr(last_lr_irq)) in vgic_fold_state()
1012 *host_data_ptr(last_lr_irq) = NULL; in vgic_flush_lr_state()
1018 *host_data_ptr(last_lr_irq) = irq; in vgic_flush_lr_state()
H A Dvgic-v2.c118 struct vgic_irq *irq = *host_data_ptr(last_lr_irq); in vgic_v2_fold_lr_state()
H A Dvgic-v3.c151 struct vgic_irq *irq = *host_data_ptr(last_lr_irq); in vgic_v3_fold_lr_state()