[Qemu-devel] [patch 2/3] add object_property_add_alias

2014-06-04 Thread mtosatti
Allowing addition of a link without keeping pointer-to-pointer. Signed-off-by: Marcelo Tosatti --- include/qom/object.h | 13 + qom/object.c | 73 +-- 2 files changed, 72 insertions(+), 14 deletions(-) Index: qemu/include/qom/

[Qemu-devel] [patch 3/3] mc146818rtc: add "rtc" link to "/machine"

2014-06-04 Thread mtosatti
Add a link to rtc under /machine providing a stable location for management apps to query "date" field. {"execute":"qom-get","arguments":{"path":"/machine/rtc","property":"date"} } Suggested by Paolo Bonzini. Signed-off-by: Marcelo Tosatti --- hw/timer/mc146818rtc.c |9 + 1 file

[Qemu-devel] [patch 0/3] add QMP command to reset rtc interrupt backlog (v4)

2014-06-04 Thread mtosatti
v4: fix command name, correct english (Eric Blake) add object_property_add_alias (Paolo) --- It is necessary to reset RTC interrupt backlog if guest time is synchronized via a different mechanism, such as QGA's guest-set-time command. Failing to do so causes both corrections to be ap

[Qemu-devel] [patch 1/3] mc146818rtc: add rtc-reset-reinjection QMP command

2014-06-04 Thread mtosatti
It is necessary to reset RTC interrupt reinjection backlog if guest time is synchronized via a different mechanism, such as QGA's guest-set-time command. Failing to do so causes both corrections to be applied (summed), resulting in an incorrect guest time. Signed-off-by: Marcelo Tosatti --- h

[Qemu-devel] [patch 0/3] add QMP command to reset rtc interrupt backlog (v3)

2014-06-02 Thread mtosatti
It is necessary to reset RTC interrupt backlog if guest time is synchronized via a different mechanism, such as QGA's guest-set-time command. Failing to do so causes both corrections to be applied (summed), resulting in an incorrect guest time. --- changelog: v3: - add object_property_add_ali

[Qemu-devel] [patch 3/3] mc146818rtc: add "rtc" link to "/machine"

2014-06-02 Thread mtosatti
Add a link to rtc under /machine providing a stable location for management apps to query "date" field. {"execute":"qom-get","arguments":{"path":"/machine/rtc","property":"date"} } Suggested by Paolo Bonzini. Signed-off-by: Marcelo Tosatti Index: qemu/hw/timer/mc146818rtc.c ==

[Qemu-devel] [patch 2/3] add object_property_add_alias

2014-06-02 Thread mtosatti
Allowing addition of a link without keeping pointer-to-pointer. Signed-off-by: Marcelo Tosatti Index: qemu/include/qom/object.h === --- qemu.orig/include/qom/object.h +++ qemu/include/qom/object.h @@ -1073,6 +1073,19 @@ typedef enum

[Qemu-devel] [patch 1/3] mc146818rtc: add rtc_reset_reinjection QMP command

2014-06-02 Thread mtosatti
It is necessary to reset RTC interrupt reinjection backlog if guest time is synchronized via a different mechanism, such as QGA's guest-set-time command. Failing to do so causes both corrections to be applied (summed), resulting in an incorrect guest time. Signed-off-by: Marcelo Tosatti Index:

[Qemu-devel] [patch 2/3] mc146818rtc: add rtc_reset_reinjection QMP command

2014-05-30 Thread mtosatti
It is necessary to reset RTC interrupt reinjection backlog if guest time is synchronized via a different mechanism, such as QGA's guest-set-time command. Failing to do so causes both corrections to be applied (summed), resulting in an incorrect guest time. Signed-off-by: Marcelo Tosatti Index:

[Qemu-devel] [patch 1/3] generate device configuration file header

2014-05-30 Thread mtosatti
Required to use device CONFIG_ options from C code. To be used by next patch. Signed-off-by: Marcelo Tosatti Index: qemu/Makefile.target === --- qemu.orig/Makefile.target +++ qemu/Makefile.target @@ -37,6 +37,9 @@ STPFILES= config

[Qemu-devel] [patch 0/3] add QMP command to reset rtc interrupt backlog (v2)

2014-05-30 Thread mtosatti
It is necessary to reset RTC interrupt backlog if guest time is synchronized via a different mechanism, such as QGA's guest-set-time command. Failing to do so causes both corrections to be applied (summed), resulting in an incorrect guest time.

[Qemu-devel] [patch 3/3] mc146818rtc: add "rtc" link to "/machines"

2014-05-30 Thread mtosatti
Add a link to rtc under /machines providing a stable location for management apps to query "date" field. {"execute":"qom-get","arguments":{"path":"/machine/rtc","property":"date"} } Suggested by Paolo Bonzini. Signed-off-by: Marcelo Tosatti Index: qemu/hw/timer/mc146818rtc.c =