You might think 'mayfail' can be called by other code as true in some cases,
but no, it's always false.
I wonder why this "mayfail" argument exists and is propagated at all, when it
cannot be anything else than false.
I tried to remove the "mayfail" parameter completely and things seem just fine.
In any case, the only thing that "mayfail" seems to control, is in
module_load_file, and is a single printf:
g_module = g_module_open(fname, flags);
if (!g_module) {
if (!mayfail) {
fprintf(stderr, "Failed to open module: %s\n",
g_module_error());
}
ret = -EINVAL;
goto out;
}
Weird.. Is someone building proprietary modules on top of QEMU? Is this what
this is currently trying to address?
But then, the result is just a printf...