On Wed, Nov 2, 2011 at 6:51 PM, Anthony Liguori <anth...@codemonkey.ws> wrote: > @@ -77,6 +78,20 @@ static DeviceInfo *qdev_find_info(BusInfo *bus_info, > const ch > continue; > return info; > } > + > + /* try to load an appropriately named module */ > + { > + char *path = g_module_build_path(PREFIX, info->name); > + GModule *mod = g_module_open(path, G_MODULE_BIND_LOCAL); > + void (*init)(void); > + > + if (g_module_symbol(mod, "mod_init", &init)) { > + init();
We need taint marker support from day 1. Or perhaps a nicer thing: require each module to declare a support URL string. QEMU will print out support URLs when displaying version information or on startup. This way it's easy to indentify who to ask for help if QEMU appears broken - we'll know if a third-party plugin is involved. Stefan