qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv3 0/9] pseries: Fix and extend PAPR RTC implementation
@ 2015-02-06  3:55 David Gibson
  2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 1/9] Generalize QOM publishing of date and time from mc146818rtc.c David Gibson
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: David Gibson @ 2015-02-06  3:55 UTC (permalink / raw)
  To: agraf, aik, mdroth
  Cc: amit.shah, pbonzini, qemu-ppc, qemu-devel, David Gibson

At the moment, the PAPR RTC implementation (actually a paravirt
firmware interface, rather than a normal device) works directly off
host time, and so doesn't respect the options such as clock=vm which
can be specified in the -rtc command line option.  This series
addresses those defects.

The above makes it clearer that the spapr RTC should probably be its
own separate qdev, so this series also implements that.

Finally it moves the code from mc146818rtc for publishing the RTC time
via QOM into generic QOM helpers, and extends the PAPR RTC driver to
export in a similar way.

Changes since v2:
  * We still need the rtc_offset field in sPAPREnvironment to handle
    incoming migrations from older versions, but we no longer send it
    for outgoing migrations.
Changes since v1:
  * Actually create a qdev device for the PAPR RTC
    * Instead of duplicating the QOM publishing code from mc146818, move
        it into a generic helper
	

*** BLURB HERE ***

David Gibson (9):
  Generalize QOM publishing of date and time from mc146818rtc.c
  Add more VMSTATE_*_TEST variants for integers
  pseries: Move sPAPR RTC code into its own file
  pseries: Add more parameter validation in RTAS time of day functions
  pseries: Add spapr_rtc_read() helper function
  pseries: Make RTAS time of day functions respect -rtc options
  pseries: Make the PAPR RTC a qdev device
  pseries: Move rtc_offset into RTC device's state structure
  pseries: Export RTC time via QOM

 hw/ppc/Makefile.objs        |   2 +-
 hw/ppc/spapr.c              |  44 ++++++++-
 hw/ppc/spapr_events.c       |   2 +-
 hw/ppc/spapr_rtas.c         |  49 ----------
 hw/ppc/spapr_rtc.c          | 212 ++++++++++++++++++++++++++++++++++++++++++++
 hw/timer/mc146818rtc.c      |  44 +--------
 include/hw/ppc/spapr.h      |   8 +-
 include/migration/vmstate.h |  15 ++++
 include/qom/object.h        |  14 +++
 qom/object.c                |  79 +++++++++++++++++
 10 files changed, 373 insertions(+), 96 deletions(-)
 create mode 100644 hw/ppc/spapr_rtc.c

-- 
2.1.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-09 21:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-06  3:55 [Qemu-devel] [PATCHv3 0/9] pseries: Fix and extend PAPR RTC implementation David Gibson
2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 1/9] Generalize QOM publishing of date and time from mc146818rtc.c David Gibson
2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 2/9] Add more VMSTATE_*_TEST variants for integers David Gibson
2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 3/9] pseries: Move sPAPR RTC code into its own file David Gibson
2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 4/9] pseries: Add more parameter validation in RTAS time of day functions David Gibson
2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 5/9] pseries: Add spapr_rtc_read() helper function David Gibson
2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 6/9] pseries: Make RTAS time of day functions respect -rtc options David Gibson
2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 7/9] pseries: Make the PAPR RTC a qdev device David Gibson
2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 8/9] pseries: Move rtc_offset into RTC device's state structure David Gibson
2015-02-06  3:55 ` [Qemu-devel] [PATCHv3 9/9] pseries: Export RTC time via QOM David Gibson
2015-02-09 21:47 ` [Qemu-devel] [Qemu-ppc] [PATCHv3 0/9] pseries: Fix and extend PAPR RTC implementation Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).