From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSa8J-0002wv-Ut for qemu-devel@nongnu.org; Thu, 29 Jan 2009 11:52:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSa8H-0002wh-VD for qemu-devel@nongnu.org; Thu, 29 Jan 2009 11:52:51 -0500 Received: from [199.232.76.173] (port=34546 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSa8H-0002we-Os for qemu-devel@nongnu.org; Thu, 29 Jan 2009 11:52:49 -0500 Received: from mx20.gnu.org ([199.232.41.8]:56940) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LSa8H-0004Xi-D0 for qemu-devel@nongnu.org; Thu, 29 Jan 2009 11:52:49 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSa8G-0003mp-2I for qemu-devel@nongnu.org; Thu, 29 Jan 2009 11:52:48 -0500 Message-ID: <4981DEF5.8040801@codesourcery.com> Date: Thu, 29 Jan 2009 16:53:09 +0000 From: Nathan Sidwell MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060801080808070102050503" Subject: [Qemu-devel] document -r option Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------060801080808070102050503 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit This patch adds help and documentation for the '-r ' option available to user-mode linux. Please apply, if ok. nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery --------------060801080808070102050503 Content-Type: text/x-patch; name="doc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="doc.patch" 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 --------------060801080808070102050503--