Home
last modified time | relevance | path

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

/arch/arm64/kernel/
Dfpsimd.c122 void *sve_state; member
224 kfree(task->thread.sve_state); in __sve_free()
225 task->thread.sve_state = NULL; in __sve_free()
328 sve_save_state((char *)last->sve_state + in fpsimd_save()
410 #define ZREG(sve_state, vq, n) ((char *)(sve_state) + \ argument
457 void *sst = task->thread.sve_state; in fpsimd_to_sve()
481 void const *sst = task->thread.sve_state; in sve_to_fpsimd()
519 if (task->thread.sve_state) { in sve_alloc()
520 memset(task->thread.sve_state, 0, sve_state_size(task)); in sve_alloc()
525 task->thread.sve_state = in sve_alloc()
[all …]
Dsignal.c252 current->thread.sve_state, in preserve_sve_context()
293 if (!current->thread.sve_state) { in restore_sve_fpsimd_context()
298 err = __copy_from_user(current->thread.sve_state, in restore_sve_fpsimd_context()
Dprocess.c310 dst->thread.sve_state = NULL; in arch_dup_task_struct()
Dptrace.c773 membuf_write(&to, target->thread.sve_state, end - start); in sve_get()
848 if (!target->thread.sve_state) { in sve_set()
866 target->thread.sve_state, in sve_set()
/arch/arm64/kvm/
Dreset.c113 vcpu->arch.sve_state = buf; in kvm_vcpu_finalize_sve()
144 void *sve_state = vcpu->arch.sve_state; in kvm_arm_vcpu_destroy() local
148 if (sve_state) in kvm_arm_vcpu_destroy()
149 kvm_unshare_hyp(sve_state, sve_state + vcpu_sve_state_size(vcpu)); in kvm_arm_vcpu_destroy()
150 kfree(sve_state); in kvm_arm_vcpu_destroy()
156 memset(vcpu->arch.sve_state, 0, vcpu_sve_state_size(vcpu)); in kvm_vcpu_reset_sve()
Dfpsimd.c108 vcpu->arch.sve_state, in kvm_arch_vcpu_ctxsync_fp()
Dguest.c341 if (WARN_ON(vcpu->arch.sve_state)) in set_sve_vls()
496 if (copy_to_user(uptr, vcpu->arch.sve_state + region.koffset, in get_sve_reg()
522 if (copy_from_user(vcpu->arch.sve_state + region.koffset, uptr, in set_sve_reg()
/arch/arm64/kvm/hyp/nvhe/
Dpkvm.c373 void *sve_state = shadow_vcpu->vcpu.arch.sve_state; in unpin_host_vcpu() local
377 if (!sve_state) in unpin_host_vcpu()
380 sve_state = kern_hyp_va(sve_state); in unpin_host_vcpu()
382 hyp_unpin_shared_mem(sve_state, sve_state + sve_state_size); in unpin_host_vcpu()
442 void *sve_state; in init_shadow_vcpu() local
444 shadow_vcpu->arch.sve_state = in init_shadow_vcpu()
445 READ_ONCE(host_vcpu->arch.sve_state); in init_shadow_vcpu()
449 sve_state = kern_hyp_va(shadow_vcpu->arch.sve_state); in init_shadow_vcpu()
452 if (!shadow_vcpu->arch.sve_state || !sve_state_size || in init_shadow_vcpu()
453 hyp_pin_shared_mem(sve_state, sve_state + sve_state_size)) { in init_shadow_vcpu()
[all …]
/arch/arm64/include/asm/
Dfpsimd.h49 void *sve_state, unsigned int sve_vl);
65 return (char *)thread->sve_state + sve_ffr_offset(thread->sve_vl); in sve_pffr()
Dprocessor.h153 void *sve_state; /* SVE registers, if any */ member
Dkvm_host.h405 void *sve_state; member
512 #define vcpu_sve_pffr(vcpu) (kern_hyp_va((vcpu)->arch.sve_state) + \