Lines Matching refs:fxsave
11614 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_get_fpu() local
11621 fxsave = &vcpu->arch.guest_fpu.fpstate->regs.fxsave; in kvm_arch_vcpu_ioctl_get_fpu()
11622 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
11623 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
11624 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
11625 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
11626 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
11627 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
11628 fpu->last_dp = fxsave->rdp; in kvm_arch_vcpu_ioctl_get_fpu()
11629 memcpy(fpu->xmm, fxsave->xmm_space, sizeof(fxsave->xmm_space)); in kvm_arch_vcpu_ioctl_get_fpu()
11637 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_set_fpu() local
11644 fxsave = &vcpu->arch.guest_fpu.fpstate->regs.fxsave; in kvm_arch_vcpu_ioctl_set_fpu()
11646 memcpy(fxsave->st_space, fpu->fpr, 128); in kvm_arch_vcpu_ioctl_set_fpu()
11647 fxsave->cwd = fpu->fcw; in kvm_arch_vcpu_ioctl_set_fpu()
11648 fxsave->swd = fpu->fsw; in kvm_arch_vcpu_ioctl_set_fpu()
11649 fxsave->twd = fpu->ftwx; in kvm_arch_vcpu_ioctl_set_fpu()
11650 fxsave->fop = fpu->last_opcode; in kvm_arch_vcpu_ioctl_set_fpu()
11651 fxsave->rip = fpu->last_ip; in kvm_arch_vcpu_ioctl_set_fpu()
11652 fxsave->rdp = fpu->last_dp; in kvm_arch_vcpu_ioctl_set_fpu()
11653 memcpy(fxsave->xmm_space, fpu->xmm, sizeof(fxsave->xmm_space)); in kvm_arch_vcpu_ioctl_set_fpu()