Lines Matching refs:xcrs
5446 guest_xcrs->xcrs[0].xcr = XCR_XFEATURE_ENABLED_MASK; in kvm_vcpu_ioctl_x86_get_xcrs()
5447 guest_xcrs->xcrs[0].value = vcpu->arch.xcr0; in kvm_vcpu_ioctl_x86_get_xcrs()
5463 if (guest_xcrs->xcrs[i].xcr == XCR_XFEATURE_ENABLED_MASK) { in kvm_vcpu_ioctl_x86_set_xcrs()
5465 guest_xcrs->xcrs[i].value); in kvm_vcpu_ioctl_x86_set_xcrs()
5659 struct kvm_xcrs *xcrs; in kvm_arch_vcpu_ioctl() member
5910 u.xcrs = kzalloc(sizeof(struct kvm_xcrs), GFP_KERNEL_ACCOUNT); in kvm_arch_vcpu_ioctl()
5912 if (!u.xcrs) in kvm_arch_vcpu_ioctl()
5915 kvm_vcpu_ioctl_x86_get_xcrs(vcpu, u.xcrs); in kvm_arch_vcpu_ioctl()
5918 if (copy_to_user(argp, u.xcrs, in kvm_arch_vcpu_ioctl()
5925 u.xcrs = memdup_user(argp, sizeof(*u.xcrs)); in kvm_arch_vcpu_ioctl()
5926 if (IS_ERR(u.xcrs)) { in kvm_arch_vcpu_ioctl()
5927 r = PTR_ERR(u.xcrs); in kvm_arch_vcpu_ioctl()
5931 r = kvm_vcpu_ioctl_x86_set_xcrs(vcpu, u.xcrs); in kvm_arch_vcpu_ioctl()