From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mlh6G-0005hM-8k for qemu-devel@nongnu.org; Thu, 10 Sep 2009 06:42:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mlh6B-0005cH-5n for qemu-devel@nongnu.org; Thu, 10 Sep 2009 06:41:59 -0400 Received: from [199.232.76.173] (port=49355 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mlh6B-0005c4-0r for qemu-devel@nongnu.org; Thu, 10 Sep 2009 06:41:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39098) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mlh6A-0001cW-G1 for qemu-devel@nongnu.org; Thu, 10 Sep 2009 06:41:54 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8AAfrGh000650 for ; Thu, 10 Sep 2009 06:41:53 -0400 Received: from zweiblum.home.kraxel.org (vpn1-5-18.ams2.redhat.com [10.36.5.18]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8AAfpXs031684 for ; Thu, 10 Sep 2009 06:41:52 -0400 Message-ID: <4AA8D7EB.8060907@redhat.com> Date: Thu, 10 Sep 2009 12:41:47 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH 0/5] Refactor and enhance RTC configuration References: <20090909151111.26816.49862.stgit@mchn012c.ww002.siemens.net> <4AA7CC66.5060008@us.ibm.com> In-Reply-To: <4AA7CC66.5060008@us.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 09/09/09 17:40, Anthony Liguori wrote: > Jan Kiszka wrote: >> The aim of this series is to allow using the emulated PC RTC (MC146818) >> as a reliable time source for guests. This is particularly useful if the >> host runs NTP or has otherwise access to an accurate clock while the >> guest has not (no network, impossible to add an NTP implementation >> etc.). >> >> To achieve this, the command line switch -rtc is introduced. It takes >> the option 'clock' to switch between the currently used base ('vm') and >> the new QEMU_CLOCK_HOST ('host'). At this chance, -rtc is also used to >> deprecate all the other RTC-related stand-alone switches. >> >> First tests indicate that this approach works as expected and could >> increase the usefulness of the virtual RTC enormously. However, there >> might be pitfalls I've missed so far. Feedback would be welcome! > > You get most of this pretty cheaply with qdev conversion. If you give > the rtc a default id, you can tweak all of the properties with the -set > command line option. It isn't that simple. -set device.$id.$property=$value works only for devices actually created via -device. cheers, Gerd