Lines Matching refs:xsave
3169 struct xregs_state *xsave = &vcpu->arch.guest_fpu.state.xsave; in fill_xsave() local
3170 u64 xstate_bv = xsave->header.xfeatures; in fill_xsave()
3177 memcpy(dest, xsave, XSAVE_HDR_OFFSET); in fill_xsave()
3191 void *src = get_xsave_addr(xsave, feature); in fill_xsave()
3206 struct xregs_state *xsave = &vcpu->arch.guest_fpu.state.xsave; in load_xsave() local
3214 memcpy(xsave, src, XSAVE_HDR_OFFSET); in load_xsave()
3217 xsave->header.xfeatures = xstate_bv; in load_xsave()
3219 xsave->header.xcomp_bv = host_xcr0 | XSTATE_COMPACTION_ENABLED; in load_xsave()
3229 void *dest = get_xsave_addr(xsave, feature); in load_xsave()
3362 struct kvm_xsave *xsave; in kvm_arch_vcpu_ioctl() member
3552 u.xsave = kzalloc(sizeof(struct kvm_xsave), GFP_KERNEL); in kvm_arch_vcpu_ioctl()
3554 if (!u.xsave) in kvm_arch_vcpu_ioctl()
3557 kvm_vcpu_ioctl_x86_get_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl()
3560 if (copy_to_user(argp, u.xsave, sizeof(struct kvm_xsave))) in kvm_arch_vcpu_ioctl()
3566 u.xsave = memdup_user(argp, sizeof(*u.xsave)); in kvm_arch_vcpu_ioctl()
3567 if (IS_ERR(u.xsave)) in kvm_arch_vcpu_ioctl()
3568 return PTR_ERR(u.xsave); in kvm_arch_vcpu_ioctl()
3570 r = kvm_vcpu_ioctl_x86_set_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl()
7456 vcpu->arch.guest_fpu.state.xsave.header.xcomp_bv = in fx_init()