> Am 23.12.2014 um 04:14 schrieb David Gibson <da...@gibson.dropbear.id.au>: > >> 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 <da...@gibson.dropbear.id.au> >> >> 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. I don't understand - what does JSON have to do with it? Alex
- [Qemu-devel] [PATCHv2 0/8] pseries: Fix and extend PAPR RTC... David Gibson
- [Qemu-devel] [PATCHv2 4/8] Generalize QOM publishing o... David Gibson
- [Qemu-devel] [PATCHv2 1/8] pseries: Move sPAPR RTC cod... David Gibson
- [Qemu-devel] [PATCHv2 8/8] pseries: Export RTC time vi... David Gibson
- Re: [Qemu-devel] [PATCHv2 8/8] pseries: Export RTC... Alexander Graf
- Re: [Qemu-devel] [PATCHv2 8/8] pseries: Export... David Gibson
- Re: [Qemu-devel] [PATCHv2 8/8] pseries: Ex... Alexander Graf
- [Qemu-devel] [PATCHv2 5/8] pseries: Make RTAS time of ... David Gibson
- [Qemu-devel] [PATCHv2 2/8] pseries: Add more parameter... David Gibson
- [Qemu-devel] [PATCHv2 7/8] pseries: Move rtc_offset in... David Gibson
- Re: [Qemu-devel] [PATCHv2 7/8] pseries: Move rtc_o... Alexander Graf
- Re: [Qemu-devel] [PATCHv2 7/8] pseries: Move r... David Gibson
- Re: [Qemu-devel] [PATCHv2 7/8] pseries: Mo... Alexander Graf
- [Qemu-devel] [PATCHv2 6/8] pseries: Make the PAPR RTC ... David Gibson
- [Qemu-devel] [PATCHv2 3/8] pseries: Add spapr_rtc_read... David Gibson
- Re: [Qemu-devel] [PATCHv2 0/8] pseries: Fix and extend... Alexander Graf