From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Date: Wed, 19 Oct 2005 08:39:45 +0000 Subject: Udev incompatibility with qemu and bochs Message-Id: <43560651.9090802@ums.usu.ru> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hello, udevstart contains the following code: static void asmlinkage sig_handler(int signum) { switch (signum) { case SIGALRM: exit(1); case SIGINT: case SIGTERM: exit(20 + signum); } } int main(int argc, char *argv[], char *envp[]) { /* snip */ sigaction(SIGALRM, &act, NULL); sigaction(SIGINT, &act, NULL); sigaction(SIGTERM, &act, NULL); /* trigger timeout to prevent hanging processes */ alarm(UDEV_ALARM_TIMEOUT); /* snip */ } UDEV_ALARM_TIMEOUT is defined to 120 seconds in udev.h. The problem is that it does take 2 minutes to populate /dev inside slow emulators like qemu or bochs, especially when the emulated and host CPU types differ and udev rules include RUN+=/sbin/udev_run_hotplugd. The reason is that inside those emulators exec() is very expensive (involves jit-compilation from one sort of machine code to another). Please provide an option to disable this alarm. The preferred form would be an environment variable, so that I can type "linux UDEV_NO_ALARM=1" at the boot prompt inside the emulator and see the system booting normally. Thanks, -- Alexander E. Patrakov ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel