Lines Matching refs:fxsave
3237 &vcpu->arch.guest_fpu.state.fxsave, in kvm_vcpu_ioctl_x86_get_xsave()
3267 memcpy(&vcpu->arch.guest_fpu.state.fxsave, in kvm_vcpu_ioctl_x86_set_xsave()
7365 struct fxregs_state *fxsave = in kvm_arch_vcpu_ioctl_get_fpu() local
7366 &vcpu->arch.guest_fpu.state.fxsave; in kvm_arch_vcpu_ioctl_get_fpu()
7368 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
7369 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
7370 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
7371 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
7372 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
7373 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
7374 fpu->last_dp = fxsave->rdp; in kvm_arch_vcpu_ioctl_get_fpu()
7375 memcpy(fpu->xmm, fxsave->xmm_space, sizeof fxsave->xmm_space); in kvm_arch_vcpu_ioctl_get_fpu()
7382 struct fxregs_state *fxsave = in kvm_arch_vcpu_ioctl_set_fpu() local
7383 &vcpu->arch.guest_fpu.state.fxsave; in kvm_arch_vcpu_ioctl_set_fpu()
7385 memcpy(fxsave->st_space, fpu->fpr, 128); in kvm_arch_vcpu_ioctl_set_fpu()
7386 fxsave->cwd = fpu->fcw; in kvm_arch_vcpu_ioctl_set_fpu()
7387 fxsave->swd = fpu->fsw; in kvm_arch_vcpu_ioctl_set_fpu()
7388 fxsave->twd = fpu->ftwx; in kvm_arch_vcpu_ioctl_set_fpu()
7389 fxsave->fop = fpu->last_opcode; in kvm_arch_vcpu_ioctl_set_fpu()
7390 fxsave->rip = fpu->last_ip; in kvm_arch_vcpu_ioctl_set_fpu()
7391 fxsave->rdp = fpu->last_dp; in kvm_arch_vcpu_ioctl_set_fpu()
7392 memcpy(fxsave->xmm_space, fpu->xmm, sizeof fxsave->xmm_space); in kvm_arch_vcpu_ioctl_set_fpu()