Home
last modified time | relevance | path

Searched refs:sve_state (Results 1 – 11 of 11) sorted by relevance

/linux/arch/arm64/kvm/
H A Dreset.c124 vcpu->arch.sve_state = buf; in kvm_vcpu_finalize_sve()
155 void *sve_state = vcpu->arch.sve_state; in kvm_arm_vcpu_destroy() local
158 if (sve_state) in kvm_arm_vcpu_destroy()
159 kvm_unshare_hyp(sve_state, sve_state + vcpu_sve_state_size(vcpu)); in kvm_arm_vcpu_destroy()
160 kfree(sve_state); in kvm_arm_vcpu_destroy()
169 memset(vcpu->arch.sve_state, 0, vcpu_sve_state_size(vcpu)); in kvm_vcpu_reset_sve()
H A Dfpsimd.c77 fp_state.sve_state = vcpu->arch.sve_state; in kvm_arch_vcpu_ctxsync_fp()
H A Darm.c2502 struct cpu_sve_state *sve_state; in teardown_hyp_mode() local
2504 sve_state = per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)->sve_state; in teardown_hyp_mode()
2505 free_pages((unsigned long) sve_state, pkvm_host_sve_state_order()); in teardown_hyp_mode()
2630 per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)->sve_state = page_address(page); in init_pkvm_host_sve_state()
2651 struct cpu_sve_state *sve_state; in finalize_init_hyp_mode() local
2653 sve_state = per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)->sve_state; in finalize_init_hyp_mode()
2654 per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)->sve_state = in finalize_init_hyp_mode()
2655 kern_hyp_va(sve_state); in finalize_init_hyp_mode()
H A Dguest.c348 if (WARN_ON(vcpu->arch.sve_state)) in set_sve_vls()
503 if (copy_to_user(uptr, vcpu->arch.sve_state + region.koffset, in get_sve_reg()
529 if (copy_from_user(vcpu->arch.sve_state + region.koffset, uptr, in set_sve_reg()
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpkvm.c399 void *sve_state; in unpin_host_sve_state() local
404 sve_state = hyp_vcpu->vcpu.arch.sve_state; in unpin_host_sve_state()
405 hyp_unpin_shared_mem(sve_state, in unpin_host_sve_state()
406 sve_state + vcpu_sve_state_size(&hyp_vcpu->vcpu)); in unpin_host_sve_state()
453 void *sve_state; in pkvm_vcpu_init_sve() local
464 sve_state = kern_hyp_va(READ_ONCE(host_vcpu->arch.sve_state)); in pkvm_vcpu_init_sve()
466 if (!sve_state || !sve_state_size) { in pkvm_vcpu_init_sve()
471 ret = hyp_pin_shared_mem(sve_state, sve_state + sve_state_size); in pkvm_vcpu_init_sve()
475 vcpu->arch.sve_state = sve_state; in pkvm_vcpu_init_sve()
H A Dsetup.c85 struct cpu_sve_state *sve_state = host_data->sve_state; in pkvm_create_host_sve_mappings() local
87 start = kern_hyp_va(sve_state); in pkvm_create_host_sve_mappings()
H A Dhyp-main.c44 struct cpu_sve_state *sve_state = *host_data_ptr(sve_state); in __hyp_sve_restore_host() local
56 __sve_restore_state(sve_state->sve_regs + sve_ffr_offset(kvm_host_sve_max_vl), in __hyp_sve_restore_host()
57 &sve_state->fpsr, in __hyp_sve_restore_host()
59 write_sysreg_el1(sve_state->zcr_el1, SYS_ZCR); in __hyp_sve_restore_host()
/linux/arch/arm64/kernel/
H A Dptrace.c849 membuf_write(&to, target->thread.sve_state, end - start); in sve_get_common()
959 if (!target->thread.sve_state) in sve_set_common()
1016 target->thread.sve_state, in sve_set_common()
1164 if (!target->thread.sve_state) { in za_set()
1166 if (!target->thread.sve_state) { in za_set()
1246 if (!target->thread.sve_state) in zt_set()
H A Dsignal.c423 current->thread.sve_state, in preserve_sve_context()
491 if (!current->thread.sve_state) { in restore_sve_fpsimd_context()
506 err = __copy_from_user(current->thread.sve_state, in restore_sve_fpsimd_context()
622 if (!current->thread.sve_state) in restore_za_context()
/linux/arch/arm64/include/asm/
H A Dprocessor.h167 void *sve_state; /* SVE registers, if any */ member
H A Dkvm_host.h776 struct cpu_sve_state *sve_state; member
873 void *sve_state; member
1118 #define vcpu_sve_pffr(vcpu) (kern_hyp_va((vcpu)->arch.sve_state) + \