Skip to contentSkip to conversation

document -r option

Qemu-devel Nathan Sidwell 1 participant 1 message Jan 29, 2009

lore
Share & tools
lore
#0 lore raw

This patch adds help and documentation for the '-r <version>' option available to user-mode linux.

Please apply, if ok.

nathan

Signature · 1 line
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
main.c +1 -0
Index: linux-user/main.c
===================================================================
@@ -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"
qemu-doc.texi +6 -1
Index: qemu-doc.texi
===================================================================
@@ -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