Lines Matching refs:xsave
3036 struct xregs_state *xsave = &vcpu->arch.guest_fpu.state.xsave; in fill_xsave() local
3037 u64 xstate_bv = xsave->header.xfeatures; in fill_xsave()
3044 memcpy(dest, xsave, XSAVE_HDR_OFFSET); in fill_xsave()
3057 void *src = get_xsave_addr(xsave, feature); in fill_xsave()
3072 struct xregs_state *xsave = &vcpu->arch.guest_fpu.state.xsave; in load_xsave() local
3080 memcpy(xsave, src, XSAVE_HDR_OFFSET); in load_xsave()
3083 xsave->header.xfeatures = xstate_bv; in load_xsave()
3085 xsave->header.xcomp_bv = host_xcr0 | XSTATE_COMPACTION_ENABLED; in load_xsave()
3095 void *dest = get_xsave_addr(xsave, feature); in load_xsave()
3207 struct kvm_xsave *xsave; in kvm_arch_vcpu_ioctl() member
3394 u.xsave = kzalloc(sizeof(struct kvm_xsave), GFP_KERNEL); in kvm_arch_vcpu_ioctl()
3396 if (!u.xsave) in kvm_arch_vcpu_ioctl()
3399 kvm_vcpu_ioctl_x86_get_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl()
3402 if (copy_to_user(argp, u.xsave, sizeof(struct kvm_xsave))) in kvm_arch_vcpu_ioctl()
3408 u.xsave = memdup_user(argp, sizeof(*u.xsave)); in kvm_arch_vcpu_ioctl()
3409 if (IS_ERR(u.xsave)) in kvm_arch_vcpu_ioctl()
3410 return PTR_ERR(u.xsave); in kvm_arch_vcpu_ioctl()
3412 r = kvm_vcpu_ioctl_x86_set_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl()
7203 vcpu->arch.guest_fpu.state.xsave.header.xcomp_bv = in fx_init()