[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv2 8/8] pseries: Export RTC time via QOM
From: |
David Gibson |
Subject: |
Re: [Qemu-devel] [PATCHv2 8/8] pseries: Export RTC time via QOM |
Date: |
Tue, 23 Dec 2014 14:14:56 +1100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Dec 23, 2014 at 01:26:58AM +0100, Alexander Graf wrote:
>
>
> On 23.12.14 01:17, David Gibson wrote:
> > On x86, the guest's RTC can be read with QMP, either from the RTC device's
> > "date" property or via the "rtc-time" property on the machine (which is an
> > alias to the former). This is set up in the mc146818rtc driver, and
> > doesn't work on other targets.
> >
> > This patch adds a similar "date" property to the pseries machine's RTAS RTC
> > and adds a compatible alias to the machine.
> >
> > Signed-off-by: David Gibson <address@hidden>
>
> Very nice, can we somehow get rid of an exported spapr_rtc_read() with
> this as well?
Uhhh.. we could, but I really don't like the idea.
It seems perverse to encode the current time into JSON, just so we can
decode it into a struct tm again in the events code.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
pgp5TCV9q2A2o.pgp
Description: PGP signature
- [Qemu-devel] [PATCHv2 7/8] pseries: Move rtc_offset into RTC device's state structure, (continued)
- [Qemu-devel] [PATCHv2 3/8] pseries: Add spapr_rtc_read() helper function, David Gibson, 2014/12/22
- [Qemu-devel] [PATCHv2 2/8] pseries: Add more parameter validation in RTAS time of day functions, David Gibson, 2014/12/22
- [Qemu-devel] [PATCHv2 4/8] Generalize QOM publishing of date and time from mc146818rtc.c, David Gibson, 2014/12/22
- [Qemu-devel] [PATCHv2 6/8] pseries: Make the PAPR RTC a qdev device, David Gibson, 2014/12/22
- [Qemu-devel] [PATCHv2 8/8] pseries: Export RTC time via QOM, David Gibson, 2014/12/22
Re: [Qemu-devel] [PATCHv2 0/8] pseries: Fix and extend PAPR RTC implementation, Alexander Graf, 2014/12/22