mc146818rtc: add "rtc-time" link to "/machine/rtc"
commit654a36d857ff949e0d1989904b76f53fded9dc83
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 4 Jun 2014 17:52:03 +0000 (4 14:52 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Jul 2014 08:20:30 +0000 (1 10:20 +0200)
treec7098442e826967c84bf8ff6c4ee9e482caac842
parentd190698e6f806198da42c05c35b623760b6e1f00
mc146818rtc: add "rtc-time" link to "/machine/rtc"

Add a link to rtc under /machine providing a stable
location for management apps to query the value of the
time.  The link should be added by any object that sends
RTC_TIME_CHANGE events.

{"execute":"qom-get","arguments":{"path":"/machine","property":"rtc-time"} }

Suggested by Paolo Bonzini and Andreas Faerber.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/timer/mc146818rtc.c