Home
last modified time | relevance | path

Searched refs:sve_state (Results 1 – 10 of 10) 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.c2394 struct cpu_sve_state *sve_state; in teardown_hyp_mode() local
2396 sve_state = per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)->sve_state; in teardown_hyp_mode()
2397 free_pages((unsigned long) sve_state, pkvm_host_sve_state_order()); in teardown_hyp_mode()
2518 per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)->sve_state = page_address(page); in init_pkvm_host_sve_state()
2539 struct cpu_sve_state *sve_state; in finalize_init_hyp_mode() local
2541 sve_state = per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)->sve_state; in finalize_init_hyp_mode()
2542 per_cpu_ptr_nvhe_sym(kvm_host_data, cpu)->sve_state = in finalize_init_hyp_mode()
2543 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.c390 void *sve_state; in unpin_host_sve_state() local
395 sve_state = kern_hyp_va(hyp_vcpu->vcpu.arch.sve_state); in unpin_host_sve_state()
396 hyp_unpin_shared_mem(sve_state, in unpin_host_sve_state()
397 sve_state + vcpu_sve_state_size(&hyp_vcpu->vcpu)); in unpin_host_sve_state()
444 void *sve_state; in pkvm_vcpu_init_sve() local
455 sve_state = kern_hyp_va(READ_ONCE(host_vcpu->arch.sve_state)); in pkvm_vcpu_init_sve()
457 if (!sve_state || !sve_state_size) { in pkvm_vcpu_init_sve()
462 ret = hyp_pin_shared_mem(sve_state, sve_state + sve_state_size); in pkvm_vcpu_init_sve()
466 vcpu->arch.sve_state = sve_state; in pkvm_vcpu_init_sve()
H A Dhyp-main.c42 struct cpu_sve_state *sve_state = *host_data_ptr(sve_state); in __hyp_sve_restore_host() local
54 __sve_restore_state(sve_state->sve_regs + sve_ffr_offset(kvm_host_sve_max_vl), in __hyp_sve_restore_host()
55 &sve_state->fpsr, in __hyp_sve_restore_host()
57 write_sysreg_el1(sve_state->zcr_el1, SYS_ZCR); in __hyp_sve_restore_host()
/linux/arch/arm64/kvm/hyp/include/hyp/
H A Dswitch.h458 struct cpu_sve_state *sve_state = *host_data_ptr(sve_state); in __hyp_sve_save_host() local
460 sve_state->zcr_el1 = read_sysreg_el1(SYS_ZCR); in __hyp_sve_save_host()
462 __sve_save_state(sve_state->sve_regs + sve_ffr_offset(kvm_host_sve_max_vl), in __hyp_sve_save_host()
463 &sve_state->fpsr, in __hyp_sve_save_host()
/linux/arch/arm64/include/asm/
H A Dprocessor.h167 void *sve_state; /* SVE registers, if any */ member
H A Dkvm_host.h726 struct cpu_sve_state *sve_state; member
810 void *sve_state; member
1052 #define vcpu_sve_pffr(vcpu) (kern_hyp_va((vcpu)->arch.sve_state) + \
/linux/arch/arm64/kernel/
H A Dsignal.c391 current->thread.sve_state, in preserve_sve_context()
453 if (!current->thread.sve_state) { in restore_sve_fpsimd_context()
458 err = __copy_from_user(current->thread.sve_state, in restore_sve_fpsimd_context()