Home
last modified time | relevance | path

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

/linux-6.15/arch/arm64/kvm/hyp/nvhe/
H A Ddebug-sr.c78 *host_data_ptr(trfcr_while_in_guest) = 0; in __trace_switch_to_guest()
80 __trace_do_switch(host_data_ptr(host_debug_state.trfcr_el1), in __trace_switch_to_guest()
81 *host_data_ptr(trfcr_while_in_guest)); in __trace_switch_to_guest()
91 __trace_do_switch(host_data_ptr(trfcr_while_in_guest), in __trace_switch_to_host()
92 *host_data_ptr(host_debug_state.trfcr_el1)); in __trace_switch_to_host()
99 __debug_save_spe(host_data_ptr(host_debug_state.pmscr_el1)); in __debug_save_host_buffers_nvhe()
113 __debug_restore_spe(*host_data_ptr(host_debug_state.pmscr_el1)); in __debug_restore_host_buffers_nvhe()
H A Dhyp-main.c42 struct cpu_sve_state *sve_state = *host_data_ptr(sve_state); in __hyp_sve_restore_host()
62 *host_data_ptr(fp_owner) = FP_STATE_HOST_OWNED; in fpsimd_sve_flush()
87 __fpsimd_restore_state(host_data_ptr(host_ctxt.fp_regs)); in fpsimd_sve_sync()
90 write_sysreg_s(*host_data_ptr(fpmr), SYS_FPMR); in fpsimd_sve_sync()
92 *host_data_ptr(fp_owner) = FP_STATE_HOST_OWNED; in fpsimd_sve_sync()
H A Dswitch.c302 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run()
405 host_ctxt = host_data_ptr(host_ctxt); in hyp_panic()
H A Dpsci-relay.c208 host_ctxt = host_data_ptr(host_ctxt); in __kvm_host_psci_cpu_entry()
H A Dsetup.c264 struct kvm_cpu_context *host_ctxt = host_data_ptr(host_ctxt); in __pkvm_init_finalise()
/linux-6.15/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.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()
257 *host_data_ptr(host_debug_state.mdcr_el2) = read_sysreg(mdcr_el2); in __activate_traps_common()
281 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __deactivate_traps_common()
283 write_sysreg(*host_data_ptr(host_debug_state.mdcr_el2), mdcr_el2); in __deactivate_traps_common()
368 struct cpu_sve_state *sve_state = *host_data_ptr(sve_state); in __hyp_sve_save_host()
451 __fpsimd_save_state(host_data_ptr(host_ctxt.fp_regs)); in kvm_hyp_save_fpsimd_host()
455 *host_data_ptr(fpmr) = read_sysreg_s(SYS_FPMR); in kvm_hyp_save_fpsimd_host()
523 *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-6.15/arch/arm64/kvm/
H A Ddebug.c40 *host_data_ptr(nr_event_counters)); in kvm_arm_setup_mdcr_el2()
71 *host_data_ptr(nr_event_counters) = FIELD_GET(ARMV8_PMU_PMCR_N, in kvm_init_host_debug_data()
74 *host_data_ptr(debug_brps) = SYS_FIELD_GET(ID_AA64DFR0_EL1, BRPs, dfr0); in kvm_init_host_debug_data()
75 *host_data_ptr(debug_wrps) = SYS_FIELD_GET(ID_AA64DFR0_EL1, WRPs, dfr0); in kvm_init_host_debug_data()
259 *host_data_ptr(trfcr_while_in_guest) = trfcr_while_in_guest; in kvm_tracing_set_el1_configuration()
H A Dfpsimd.c66 *host_data_ptr(fp_owner) = FP_STATE_FREE; in kvm_arch_vcpu_load_fp()
81 *host_data_ptr(fp_owner) = FP_STATE_FREE; in kvm_arch_vcpu_ctxflush_fp()
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/kvm/hyp/vhe/
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()
599 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run_vhe()
682 host_ctxt = host_data_ptr(host_ctxt); in __hyp_call_panic()
H A Dsysreg-sr.c197 host_ctxt = host_data_ptr(host_ctxt); in __vcpu_load_switch_sysregs()
257 host_ctxt = host_data_ptr(host_ctxt); in __vcpu_put_switch_sysregs()
/linux-6.15/arch/arm64/include/asm/
H A Dkvm_host.h1340 #define host_data_ptr(f) (&this_cpu_ptr(&kvm_host_data)->f) macro
1342 #define host_data_ptr(f) \ macro
1349 (test_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags)))
1351 set_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags))
1353 clear_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags))
1358 return *host_data_ptr(fp_owner) == FP_STATE_GUEST_OWNED; in guest_owns_fp_regs()
1364 return *host_data_ptr(fp_owner) == FP_STATE_HOST_OWNED; in host_owns_fp_regs()