Lines Matching refs:fxsave
4489 &vcpu->arch.guest_fpu->state.fxsave, in kvm_vcpu_ioctl_x86_get_xsave()
4518 memcpy(&vcpu->arch.guest_fpu->state.fxsave, in kvm_vcpu_ioctl_x86_set_xsave()
9743 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_get_fpu() local
9747 fxsave = &vcpu->arch.guest_fpu->state.fxsave; in kvm_arch_vcpu_ioctl_get_fpu()
9748 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
9749 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
9750 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
9751 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
9752 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
9753 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
9754 fpu->last_dp = fxsave->rdp; in kvm_arch_vcpu_ioctl_get_fpu()
9755 memcpy(fpu->xmm, fxsave->xmm_space, sizeof(fxsave->xmm_space)); in kvm_arch_vcpu_ioctl_get_fpu()
9763 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_set_fpu() local
9767 fxsave = &vcpu->arch.guest_fpu->state.fxsave; in kvm_arch_vcpu_ioctl_set_fpu()
9769 memcpy(fxsave->st_space, fpu->fpr, 128); in kvm_arch_vcpu_ioctl_set_fpu()
9770 fxsave->cwd = fpu->fcw; in kvm_arch_vcpu_ioctl_set_fpu()
9771 fxsave->swd = fpu->fsw; in kvm_arch_vcpu_ioctl_set_fpu()
9772 fxsave->twd = fpu->ftwx; in kvm_arch_vcpu_ioctl_set_fpu()
9773 fxsave->fop = fpu->last_opcode; in kvm_arch_vcpu_ioctl_set_fpu()
9774 fxsave->rip = fpu->last_ip; in kvm_arch_vcpu_ioctl_set_fpu()
9775 fxsave->rdp = fpu->last_dp; in kvm_arch_vcpu_ioctl_set_fpu()
9776 memcpy(fxsave->xmm_space, fpu->xmm, sizeof(fxsave->xmm_space)); in kvm_arch_vcpu_ioctl_set_fpu()