Home
last modified time | relevance | path

Searched refs:xcrs (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/tools/testing/selftests/kvm/include/x86_64/
H A Dprocessor.h382 struct kvm_xcrs xcrs; member
851 struct kvm_xcrs *xcrs) in vcpu_xcrs_get() argument
853 vcpu_ioctl(vcpu, KVM_GET_XCRS, xcrs); in vcpu_xcrs_get()
855 static inline void vcpu_xcrs_set(struct kvm_vcpu *vcpu, struct kvm_xcrs *xcrs) in vcpu_xcrs_set() argument
857 vcpu_ioctl(vcpu, KVM_SET_XCRS, xcrs); in vcpu_xcrs_set()
/openbmc/qemu/target/i386/kvm/
H A Dkvm.c3454 struct kvm_xcrs xcrs = {}; in kvm_put_xcrs() local
3460 xcrs.nr_xcrs = 1; in kvm_put_xcrs()
3461 xcrs.flags = 0; in kvm_put_xcrs()
3462 xcrs.xcrs[0].xcr = 0; in kvm_put_xcrs()
3463 xcrs.xcrs[0].value = env->xcr0; in kvm_put_xcrs()
3464 return kvm_vcpu_ioctl(CPU(cpu), KVM_SET_XCRS, &xcrs); in kvm_put_xcrs()
4230 struct kvm_xcrs xcrs; in kvm_get_xcrs() local
4236 ret = kvm_vcpu_ioctl(CPU(cpu), KVM_GET_XCRS, &xcrs); in kvm_get_xcrs()
4241 for (i = 0; i < xcrs.nr_xcrs; i++) { in kvm_get_xcrs()
4243 if (xcrs.xcrs[i].xcr == 0) { in kvm_get_xcrs()
[all …]
/openbmc/linux/tools/arch/x86/include/uapi/asm/
H A Dkvm.h409 struct kvm_xcr xcrs[KVM_MAX_XCRS]; member
/openbmc/linux/arch/x86/include/uapi/asm/
H A Dkvm.h409 struct kvm_xcr xcrs[KVM_MAX_XCRS]; member
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dprocessor.c984 vcpu_xcrs_get(vcpu, &state->xcrs); in vcpu_save_state()
1015 vcpu_xcrs_set(vcpu, &state->xcrs); in vcpu_load_state()
/openbmc/qemu/linux-headers/asm-x86/
H A Dkvm.h408 struct kvm_xcr xcrs[KVM_MAX_XCRS]; member
/openbmc/linux/arch/x86/kvm/
H A Dx86.c5446 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()
5465 guest_xcrs->xcrs[i].value); in kvm_vcpu_ioctl_x86_set_xcrs()
5659 struct kvm_xcrs *xcrs; in kvm_arch_vcpu_ioctl() member
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()
[all …]
/openbmc/linux/Documentation/virt/kvm/
H A Dapi.rst1648 struct kvm_xcr xcrs[KVM_MAX_XCRS];
1652 This ioctl would copy current vcpu's xcrs to the userspace.
1675 struct kvm_xcr xcrs[KVM_MAX_XCRS];