static int kvm_s390_supports_mem_limit(KVMState *s)

{

    struct kvm_device_attr attr = {

        .group = KVM_S390_VM_MEM_CTRL,

        .attr = KVM_S390_VM_MEM_LIMIT_SIZE,

    };



    return (kvm_vm_ioctl(s, KVM_HAS_DEVICE_ATTR, &attr) == 0);

}

static int kvm_s390_supports_mem_limit(KVMState *s)

{

    struct kvm_device_attr attr = {

        .group = KVM_S390_VM_MEM_CTRL,

        .attr = KVM_S390_VM_MEM_LIMIT_SIZE,

    };



    return (kvm_vm_ioctl(s, KVM_HAS_DEVICE_ATTR, &attr) == 0);

}

static int FUNC_0(KVMState *VAR_0)

{

    struct kvm_device_attr VAR_1 = {

        .group = KVM_S390_VM_MEM_CTRL,

        .VAR_1 = KVM_S390_VM_MEM_LIMIT_SIZE,

    };



    return (kvm_vm_ioctl(VAR_0, KVM_HAS_DEVICE_ATTR, &VAR_1) == 0);

}

static int FUNC_0(KVMState *VAR_0)
{ struct kvm_device_attr VAR_1 = { .group = KVM_S390_VM_MEM_CTRL,
.VAR_1 = KVM_S390_VM_MEM_LIMIT_SIZE,
}; return (kvm_vm_ioctl(VAR_0, KVM_HAS_DEVICE_ATTR, &VAR_1) == 0); }