static void kvm_s390_enable_cmma(KVMState *s)

{

    int rc;

    struct kvm_device_attr attr = {

        .group = KVM_S390_VM_MEM_CTRL,

        .attr = KVM_S390_VM_MEM_ENABLE_CMMA,

    };



    if (kvm_s390_check_enable_cmma(s) || kvm_s390_check_clear_cmma(s)) {

        return;

    }



    rc = kvm_vm_ioctl(s, KVM_SET_DEVICE_ATTR, &attr);

    if (!rc) {

        qemu_register_reset(kvm_s390_clear_cmma_callback, s);

    }

    trace_kvm_enable_cmma(rc);

}

static void kvm_s390_enable_cmma(KVMState *s)

{

    int rc;

    struct kvm_device_attr attr = {

        .group = KVM_S390_VM_MEM_CTRL,

        .attr = KVM_S390_VM_MEM_ENABLE_CMMA,

    };



    if (kvm_s390_check_enable_cmma(s) || kvm_s390_check_clear_cmma(s)) {

        return;

    }



    rc = kvm_vm_ioctl(s, KVM_SET_DEVICE_ATTR, &attr);

    if (!rc) {

        qemu_register_reset(kvm_s390_clear_cmma_callback, s);

    }

    trace_kvm_enable_cmma(rc);

}

static void FUNC_0(KVMState *VAR_0)

{

    int VAR_1;

    struct kvm_device_attr VAR_2 = {

        .group = KVM_S390_VM_MEM_CTRL,

        .VAR_2 = KVM_S390_VM_MEM_ENABLE_CMMA,

    };



    if (kvm_s390_check_enable_cmma(VAR_0) || kvm_s390_check_clear_cmma(VAR_0)) {

        return;

    }



    VAR_1 = kvm_vm_ioctl(VAR_0, KVM_SET_DEVICE_ATTR, &VAR_2);

    if (!VAR_1) {

        qemu_register_reset(kvm_s390_clear_cmma_callback, VAR_0);

    }

    trace_kvm_enable_cmma(VAR_1);

}

static void FUNC_0(KVMState *VAR_0)
{ int VAR_1; struct kvm_device_attr VAR_2 = { .group = KVM_S390_VM_MEM_CTRL,
.VAR_2 = KVM_S390_VM_MEM_ENABLE_CMMA,
}; if (kvm_s390_check_enable_cmma(VAR_0) || kvm_s390_check_clear_cmma(VAR_0)) { return; } VAR_1 = kvm_vm_ioctl(VAR_0, KVM_SET_DEVICE_ATTR, &VAR_2); if (!VAR_1) { qemu_register_reset(kvm_s390_clear_cmma_callback, VAR_0); } trace_kvm_enable_cmma(VAR_1); }