On 23.12.14 01:16, David Gibson wrote: > 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. > > Extending the PAPR RTC in this way makes it clearer it 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. > > I've done some basic sanity testing on this, but not much. In > particular I haven't tested the migration code much yet, so that might > need revision still.
I think we're on the right track. After this patch set, I would like to see no exported functions related to RTC in include/hw/ppc/spapr.h left though :). I'm fairly sure you can get all of them handled via qom properties instead. Alex