Lines Matching refs:guest_xcrs
2555 struct kvm_xcrs *guest_xcrs) in kvm_vcpu_ioctl_x86_get_xcrs() argument
2558 guest_xcrs->nr_xcrs = 0; in kvm_vcpu_ioctl_x86_get_xcrs()
2562 guest_xcrs->nr_xcrs = 1; in kvm_vcpu_ioctl_x86_get_xcrs()
2563 guest_xcrs->flags = 0; in kvm_vcpu_ioctl_x86_get_xcrs()
2564 guest_xcrs->xcrs[0].xcr = XCR_XFEATURE_ENABLED_MASK; in kvm_vcpu_ioctl_x86_get_xcrs()
2565 guest_xcrs->xcrs[0].value = vcpu->arch.xcr0; in kvm_vcpu_ioctl_x86_get_xcrs()
2569 struct kvm_xcrs *guest_xcrs) in kvm_vcpu_ioctl_x86_set_xcrs() argument
2576 if (guest_xcrs->nr_xcrs > KVM_MAX_XCRS || guest_xcrs->flags) in kvm_vcpu_ioctl_x86_set_xcrs()
2579 for (i = 0; i < guest_xcrs->nr_xcrs; i++) in kvm_vcpu_ioctl_x86_set_xcrs()
2581 if (guest_xcrs->xcrs[0].xcr == XCR_XFEATURE_ENABLED_MASK) { in kvm_vcpu_ioctl_x86_set_xcrs()
2583 guest_xcrs->xcrs[0].value); in kvm_vcpu_ioctl_x86_set_xcrs()