OSDN Git Service

rtc: Have event RTC_CHANGE identify the RTC by QOM path
authorMarkus Armbruster <armbru@redhat.com>
Tue, 22 Feb 2022 12:02:07 +0000 (13:02 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 28 Feb 2022 10:39:35 +0000 (11:39 +0100)
commit2beb1e5f9acb443d90fe4d366463f89d32d83bc8
tree3039414c1a58c8778309dd16014befeb882489a7
parent03397528d96ff5d631fd2fa40b753548e53b5149
rtc: Have event RTC_CHANGE identify the RTC by QOM path

Event RTC_CHANGE is "emitted when the guest changes the RTC time" (and
the RTC supports the event).  What if there's more than one RTC?
Which one changed?  New @qom-path identifies it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <87a6ejnm80.fsf@pond.sub.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/ppc/spapr_rtc.c
hw/rtc/mc146818rtc.c
hw/rtc/pl031.c
qapi/misc.json