qapi: move RTC_CHANGE to the target schema
commit183e4281a30962729b760dfe8bed5aab27238b0c
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 14 Feb 2019 15:22:51 +0000 (14 16:22 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 18 Feb 2019 13:44:05 +0000 (18 14:44 +0100)
tree0b736465bb7b583e5d538c9cd720aac5814be19a
parent9d7b70864af66a6ce04abafd4a06915cbfab16e2
qapi: move RTC_CHANGE to the target schema

A few targets don't emit RTC_CHANGE, we could restrict the event to
the tagets that do emit it.

Note: There is a lot more of events & commands that we could restrict
to capable targets, with the cost of some additional complexity, but
the benefit of added correctness and better introspection.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190214152251.2073-19-armbru@redhat.com>
hw/ppc/spapr_rtc.c
hw/timer/mc146818rtc.c
qapi/misc.json
qapi/target.json