Searched refs:sve_state (Results 1 – 10 of 10) sorted by relevance
| /linux/arch/arm64/kvm/ |
| H A D | reset.c | 124 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 D | fpsimd.c | 77 fp_state.sve_state = vcpu->arch.sve_state; in kvm_arch_vcpu_ctxsync_fp()
|
| H A D | arm.c | 2394 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 D | guest.c | 348 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 D | pkvm.c | 390 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 D | hyp-main.c | 42 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 D | switch.h | 458 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 D | processor.h | 167 void *sve_state; /* SVE registers, if any */ member
|
| H A D | kvm_host.h | 726 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 D | signal.c | 391 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()
|