Received: from eggs.gnu.org ([208.118.235.92]:40100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8D3y-0004Yy-66 for qemu-devel@nongnu.org; Thu, 15 Mar 2012 11:58:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8D3o-0006DQ-Bp for qemu-devel@nongnu.org; Thu, 15 Mar 2012 11:58:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8D3o-0006DK-2r for qemu-devel@nongnu.org; Thu, 15 Mar 2012 11:57:52 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2FFvntW031805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Mar 2012 11:57:50 -0400 Received: from mailreader.lws.brq.redhat.com (ovpn-112-23.ams2.redhat.com [10.36.112.23]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2FFvl2d018728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 15 Mar 2012 11:57:49 -0400 Received: from mailreader.lws.brq.redhat.com (localhost [127.0.0.1]) by mailreader.lws.brq.redhat.com (8.14.5/8.14.5) with ESMTP id q2FFvj47003037 for ; Thu, 15 Mar 2012 16:57:45 +0100 Received: (from mrezanin@localhost) by mailreader.lws.brq.redhat.com (8.14.5/8.14.5/Submit) id q2FFvixm003036 for qemu-devel@nongnu.org; Thu, 15 Mar 2012 16:57:44 +0100 Date: Thu, 15 Mar 2012 16:57:44 +0100 From: Miroslav Rezanina Message-ID: <20120315155744.GA1529@lws.brq.redhat.com> References: <20585aca-cce1-4305-9ef8-69e51321930c@zmail17.collab.prod.int.phx2.redhat.com> <20120314085310.GA4042@lws.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120314085310.GA4042@lws.brq.redhat.com> Subject: [Qemu-devel] [PATCH v3] Man page: Add -global description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org There's only TODO information in qemu man page for -global option. This is a basic description of this option with simple example. Signed-off-by: Miroslav Rezanina Patch: -- diff --git a/qemu-options.hx b/qemu-options.hx index daefce3..db8be37 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -288,13 +288,19 @@ TODO ETEXI DEF("global", HAS_ARG, QEMU_OPTION_global, - "-global driver.property=value\n" + "-global driver.prop=value\n" " set a global default for a driver property\n", QEMU_ARCH_ALL) STEXI -@item -global +@item -global @var{driver}.@var{prop}=@var{value} @findex -global -TODO +Set default value of @var{driver}'s property @var{prop} to @var{value}, e.g.: + +@example +qemu -global ide-drive.physical_block_size=4096 -drive file=file,if=ide,index=0,media=disk +@end example + +In particular, you can use this to set driver properties for devices which are created automatically by the machine model. To create a device which is not created automatically and set properties on it, use -@option{device}. ETEXI DEF("mtdblock", HAS_ARG, QEMU_OPTION_mtdblock,