static int kvm_put_xcrs(X86CPU *cpu)

{

    CPUX86State *env = &cpu->env;

    struct kvm_xcrs xcrs = {};



    if (!kvm_has_xcrs()) {

        return 0;

    }



    xcrs.nr_xcrs = 1;

    xcrs.flags = 0;

    xcrs.xcrs[0].xcr = 0;

    xcrs.xcrs[0].value = env->xcr0;

    return kvm_vcpu_ioctl(CPU(cpu), KVM_SET_XCRS, &xcrs);

}

static int kvm_put_xcrs(X86CPU *cpu)

{

    CPUX86State *env = &cpu->env;

    struct kvm_xcrs xcrs = {};



    if (!kvm_has_xcrs()) {

        return 0;

    }



    xcrs.nr_xcrs = 1;

    xcrs.flags = 0;

    xcrs.xcrs[0].xcr = 0;

    xcrs.xcrs[0].value = env->xcr0;

    return kvm_vcpu_ioctl(CPU(cpu), KVM_SET_XCRS, &xcrs);

}

static int FUNC_0(X86CPU *VAR_0)

{

    CPUX86State *env = &VAR_0->env;

    struct kvm_xcrs VAR_1 = {};



    if (!kvm_has_xcrs()) {

        return 0;

    }



    VAR_1.nr_xcrs = 1;

    VAR_1.flags = 0;

    VAR_1.VAR_1[0].xcr = 0;

    VAR_1.VAR_1[0].value = env->xcr0;

    return kvm_vcpu_ioctl(CPU(VAR_0), KVM_SET_XCRS, &VAR_1);

}

static int FUNC_0(X86CPU *VAR_0)
{ CPUX86State *env = &VAR_0->env; struct kvm_xcrs VAR_1 = {}; if (!kvm_has_xcrs()) { return 0; } VAR_1.nr_xcrs = 1; VAR_1.flags = 0; VAR_1.VAR_1[0].xcr = 0; VAR_1.VAR_1[0].value = env->xcr0; return kvm_vcpu_ioctl(CPU(VAR_0), KVM_SET_XCRS, &VAR_1); }