Searched refs:host_data_ptr (Results 1 – 14 of 14) sorted by relevance
/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | debug-sr.c | 78 *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()
|
H A D | hyp-main.c | 42 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()
|
H A D | switch.c | 255 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run() 358 host_ctxt = host_data_ptr(host_ctxt); in hyp_panic()
|
H A D | psci-relay.c | 208 host_ctxt = host_data_ptr(host_ctxt); in __kvm_host_psci_cpu_entry()
|
H A D | setup.c | 281 struct kvm_cpu_context *host_ctxt = host_data_ptr(host_ctxt); in __pkvm_init_finalise()
|
/linux/arch/arm64/kvm/hyp/include/hyp/ |
H A D | debug-sr.h | 109 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 D | switch.h | 325 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()
|
H A D | sysreg-sr.h | 33 return host_data_ptr(host_ctxt) != ctxt; in ctxt_is_guest()
|
/linux/arch/arm64/kvm/ |
H A D | debug.c | 40 *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()
|
H A D | fpsimd.c | 40 *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 D | arm.c | 2105 kvm_init_host_cpu_context(host_data_ptr(host_ctxt)); in cpu_hyp_init_context()
|
/linux/arch/arm64/kvm/hyp/vhe/ |
H A D | switch.c | 211 host_data_ptr(host_ctxt)->__hyp_running_vcpu = vcpu; in kvm_vcpu_load_vhe() 223 host_data_ptr(host_ctxt)->__hyp_running_vcpu = NULL; in kvm_vcpu_put_vhe() 571 host_ctxt = host_data_ptr(host_ctxt); in __kvm_vcpu_run_vhe() 656 host_ctxt = host_data_ptr(host_ctxt); in __hyp_call_panic()
|
H A D | sysreg-sr.c | 203 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()
|
/linux/arch/arm64/include/asm/ |
H A D | kvm_host.h | 1333 #define host_data_ptr(f) (&this_cpu_ptr(&kvm_host_data)->f) macro 1335 #define host_data_ptr(f) \ macro 1342 (test_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags))) 1344 set_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags)) 1346 clear_bit(KVM_HOST_DATA_FLAG_##flag, host_data_ptr(flags)) 1351 return *host_data_ptr(fp_owner) == FP_STATE_GUEST_OWNED; in guest_owns_fp_regs() 1357 return *host_data_ptr(fp_owner) == FP_STATE_HOST_OWNED; in host_owns_fp_regs()
|