Index: linux-user/main.c =================================================================== --- linux-user/main.c (revision 6469) +++ linux-user/main.c (working copy) @@ -2183,6 +2183,7 @@ static void usage(void) "-h print this help\n" "-g port wait gdb connection to port\n" "-L path set the elf interpreter prefix (default=%s)\n" + "-r version set the kernel version reported to application\n" "-s size set the stack size in bytes (default=%ld)\n" "-cpu model select CPU (-cpu ? for list)\n" "-drop-ld-preload drop LD_PRELOAD for target process\n" Index: qemu-doc.texi =================================================================== --- qemu-doc.texi (revision 6469) +++ qemu-doc.texi (working copy) @@ -3158,7 +3158,7 @@ qemu-i386 /usr/local/qemu-i386/wine/bin/ @subsection Command line options @example -usage: qemu-i386 [-h] [-d] [-L path] [-s size] [-cpu model] [-g port] program [arguments...] +usage: qemu-i386 [-h] [-d] [-L path] [-r version] [-s size] [-cpu model] [-g port] program [arguments...] @end example @table @option @@ -3166,6 +3166,11 @@ usage: qemu-i386 [-h] [-d] [-L path] [-s Print the help @item -L path Set the x86 elf interpreter prefix (default=/usr/local/qemu-i386) +@item -r version +Set the kernel version reported by the uname syscall. An application +(in particular the C library) may require a minimum kernel version, +and terminate with a 'FATAL: kernel too old' message if the host +kernel is not sufficiently modern. @item -s size Set the x86 stack size in bytes (default=524288) @item -cpu model