From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mv7lN-0003iK-26 for qemu-devel@nongnu.org; Tue, 06 Oct 2009 06:59:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mv7lG-0003gz-Su for qemu-devel@nongnu.org; Tue, 06 Oct 2009 06:59:24 -0400 Received: from [199.232.76.173] (port=40364 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv7lG-0003gw-K8 for qemu-devel@nongnu.org; Tue, 06 Oct 2009 06:59:18 -0400 Received: from david.siemens.de ([192.35.17.14]:18249) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mv7lG-0004OU-00 for qemu-devel@nongnu.org; Tue, 06 Oct 2009 06:59:18 -0400 Message-ID: <4ACB2301.4050001@siemens.com> Date: Tue, 06 Oct 2009 12:59:13 +0200 From: Jan Kiszka MIME-Version: 1.0 Subject: [PATCH] Register rtc options for -set (was: [Qemu-devel] [PATCH v3 4/5] Refactor RTC command line switches) References: <20090915113603.8313.49563.stgit@mchn012c.ww002.siemens.net> <20090915113604.8313.37848.stgit@mchn012c.ww002.siemens.net> <1254825174.2720.17.camel@blaa> In-Reply-To: <1254825174.2720.17.camel@blaa> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark McLoughlin Cc: Blue Swirl , Anthony Liguori , Dor Laor , Glauber Costa , "qemu-devel@nongnu.org" Mark McLoughlin wrote: > On Tue, 2009-09-15 at 13:36 +0200, Jan Kiszka wrote: >> Deprecate -localtime, -setdate and -rtc-td-hack in favor of a new >> unified command line switch: >> >> -rtc [base=utc|localtime|date][,driftfix=none|slew] >> >> Signed-off-by: Jan Kiszka >> --- >> >> qemu-config.c | 17 ++++++++ >> qemu-config.h | 1 >> qemu-options.hx | 47 ++++++++++++----------- >> vl.c | 111 ++++++++++++++++++++++++++++++++++++++----------------- >> 4 files changed, 119 insertions(+), 57 deletions(-) >> >> diff --git a/qemu-config.c b/qemu-config.c >> index 39bf6a9..45a3e09 100644 >> --- a/qemu-config.c >> +++ b/qemu-config.c >> @@ -151,6 +151,23 @@ QemuOptsList qemu_device_opts = { >> }, >> }; >> >> +QemuOptsList qemu_rtc_opts = { >> + .name = "rtc", >> + .head = QTAILQ_HEAD_INITIALIZER(qemu_rtc_opts.head), >> + .desc = { >> + { >> + .name = "base", >> + .type = QEMU_OPT_STRING, >> +#ifdef TARGET_I386 >> + },{ >> + .name = "driftfix", >> + .type = QEMU_OPT_STRING, >> +#endif >> + }, >> + { /* end if list */ } >> + }, >> +}; >> + >> static QemuOptsList *lists[] = { >> &qemu_drive_opts, >> &qemu_chardev_opts, > > Need to add qemu_rtc_opts to this list for -set > Ah, ok, thanks. Jan ----------> Signed-off-by: Jan Kiszka --- qemu-config.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu-config.c b/qemu-config.c index ca93dc7..2e396ae 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -176,6 +176,7 @@ static QemuOptsList *lists[] = { &qemu_drive_opts, &qemu_chardev_opts, &qemu_device_opts, + &qemu_rtc_opts, NULL, };