Lines Matching refs:fxsave
3832 struct fxsave { struct
3873 struct fxsave *fxsave = (struct fxsave *)&vcpu->arch.guest_fx_image; in kvm_arch_vcpu_ioctl_get_fpu() local
3877 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
3878 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
3879 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
3880 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
3881 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
3882 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
3883 fpu->last_dp = fxsave->rdp; in kvm_arch_vcpu_ioctl_get_fpu()
3884 memcpy(fpu->xmm, fxsave->xmm_space, sizeof fxsave->xmm_space); in kvm_arch_vcpu_ioctl_get_fpu()
3893 struct fxsave *fxsave = (struct fxsave *)&vcpu->arch.guest_fx_image; in kvm_arch_vcpu_ioctl_set_fpu() local
3897 memcpy(fxsave->st_space, fpu->fpr, 128); in kvm_arch_vcpu_ioctl_set_fpu()
3898 fxsave->cwd = fpu->fcw; in kvm_arch_vcpu_ioctl_set_fpu()
3899 fxsave->swd = fpu->fsw; in kvm_arch_vcpu_ioctl_set_fpu()
3900 fxsave->twd = fpu->ftwx; in kvm_arch_vcpu_ioctl_set_fpu()
3901 fxsave->fop = fpu->last_opcode; in kvm_arch_vcpu_ioctl_set_fpu()
3902 fxsave->rip = fpu->last_ip; in kvm_arch_vcpu_ioctl_set_fpu()
3903 fxsave->rdp = fpu->last_dp; in kvm_arch_vcpu_ioctl_set_fpu()
3904 memcpy(fxsave->xmm_space, fpu->xmm, sizeof fxsave->xmm_space); in kvm_arch_vcpu_ioctl_set_fpu()