Home
last modified time | relevance | path

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

/arch/arm64/kvm/hyp/nvhe/
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()
125 __debug_save_spe(host_data_ptr(host_debug_state.pmscr_el1)); in __debug_save_host_buffers_nvhe()
129 __debug_save_brbe(host_data_ptr(host_debug_state.brbcr_el1)); in __debug_save_host_buffers_nvhe()
143 __debug_restore_spe(*host_data_ptr(host_debug_state.pmscr_el1)); in __debug_restore_host_buffers_nvhe()
145 __debug_restore_brbe(*host_data_ptr(host_debug_state.brbcr_el1)); in __debug_restore_host_buffers_nvhe()
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()
90 __fpsimd_restore_state(host_data_ptr(host_ctxt.fp_regs)); in fpsimd_sve_sync()
93 write_sysreg_s(*host_data_ptr(fpmr), SYS_FPMR); in fpsimd_sve_sync()
95 *host_data_ptr(fp_owner) = FP_STATE_HOST_OWNED; in fpsimd_sve_sync()
A Dswitch.c255 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run()
358 host_ctxt = host_data_ptr(host_ctxt); in hyp_panic()
A Dpsci-relay.c208 host_ctxt = host_data_ptr(host_ctxt); in __kvm_host_psci_cpu_entry()
A Dsetup.c281 struct kvm_cpu_context *host_ctxt = host_data_ptr(host_ctxt); in __pkvm_init_finalise()
/arch/arm64/kvm/hyp/include/hyp/
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()
A Dswitch.h325 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __activate_traps_hfgxtr()
360 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __deactivate_traps_hfgxtr()
415 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __activate_traps_common()
434 *host_data_ptr(host_debug_state.mdcr_el2) = read_sysreg(mdcr_el2); in __activate_traps_common()
455 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt); in __deactivate_traps_common()
457 write_sysreg(*host_data_ptr(host_debug_state.mdcr_el2), mdcr_el2); in __deactivate_traps_common()
577 struct cpu_sve_state *sve_state = *host_data_ptr(sve_state); in __hyp_sve_save_host()
655 __fpsimd_save_state(host_data_ptr(host_ctxt.fp_regs)); in kvm_hyp_save_fpsimd_host()
659 *host_data_ptr(fpmr) = read_sysreg_s(SYS_FPMR); in kvm_hyp_save_fpsimd_host()
724 *host_data_ptr(fp_owner) = FP_STATE_GUEST_OWNED; in kvm_hyp_handle_fpsimd()
A Dsysreg-sr.h33 return host_data_ptr(host_ctxt) != ctxt; in ctxt_is_guest()
/arch/arm64/kvm/
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()
263 *host_data_ptr(trfcr_while_in_guest) = trfcr_while_in_guest; in kvm_tracing_set_el1_configuration()
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()
A Dpmu.c190 hctxt = host_data_ptr(host_ctxt); in kvm_set_pmuserenr()
A Darm.c2105 kvm_init_host_cpu_context(host_data_ptr(host_ctxt)); in cpu_hyp_init_context()
/arch/arm64/kvm/hyp/vhe/
A Dswitch.c208 host_data_ptr(host_ctxt)->__hyp_running_vcpu = vcpu; in kvm_vcpu_load_vhe()
220 host_data_ptr(host_ctxt)->__hyp_running_vcpu = NULL; in kvm_vcpu_put_vhe()
568 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run_vhe()
653 host_ctxt = host_data_ptr(host_ctxt); in __hyp_call_panic()
A Dsysreg-sr.c203 host_ctxt = host_data_ptr(host_ctxt); in __vcpu_load_switch_sysregs()
263 host_ctxt = host_data_ptr(host_ctxt); in __vcpu_put_switch_sysregs()
/arch/arm64/include/asm/
A Dkvm_host.h1440 #define host_data_ptr(f) (&this_cpu_ptr(&kvm_host_data)->f) macro
1442 #define host_data_ptr(f) \ macro
1449 (test_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags)))
1451 set_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags))
1453 clear_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags))
1458 return *host_data_ptr(fp_owner) == FP_STATE_GUEST_OWNED; in guest_owns_fp_regs()
1464 return *host_data_ptr(fp_owner) == FP_STATE_HOST_OWNED; in host_owns_fp_regs()

Completed in 27 milliseconds