bool kvmppc_is_mem_backend_page_size_ok(const char *obj_path)

{

    Object *mem_obj = object_resolve_path(obj_path, NULL);

    char *mempath = object_property_get_str(mem_obj, "mem-path", NULL);

    long pagesize;



    if (mempath) {

        pagesize = qemu_mempath_getpagesize(mempath);


    } else {

        pagesize = getpagesize();

    }



    return pagesize >= max_cpu_page_size;

}
bool kvmppc_is_mem_backend_page_size_ok(const char *obj_path)

{

    Object *mem_obj = object_resolve_path(obj_path, NULL);

    char *mempath = object_property_get_str(mem_obj, "mem-path", NULL);

    long pagesize;



    if (mempath) {

        pagesize = qemu_mempath_getpagesize(mempath);


    } else {

        pagesize = getpagesize();

    }



    return pagesize >= max_cpu_page_size;

}
bool FUNC_0(const char *obj_path)

{

    Object *mem_obj = object_resolve_path(obj_path, NULL);

    char *VAR_0 = object_property_get_str(mem_obj, "mem-path", NULL);

    long VAR_1;



    if (VAR_0) {

        VAR_1 = qemu_mempath_getpagesize(VAR_0);


    } else {

        VAR_1 = getpagesize();

    }



    return VAR_1 >= max_cpu_page_size;

}
bool FUNC_0(const char *obj_path)
{ Object *mem_obj = object_resolve_path(obj_path, NULL); char *VAR_0 = object_property_get_str(mem_obj, "mem-path", NULL); long VAR_1; if (VAR_0) { VAR_1 = qemu_mempath_getpagesize(VAR_0); } else { VAR_1 = getpagesize(); } return VAR_1 >= max_cpu_page_size; }