On Thu, May 09, 2024 at 07:00:42PM +0200, Paolo Bonzini wrote: > Date: Thu, 9 May 2024 19:00:42 +0200 > From: Paolo Bonzini <pbonz...@redhat.com> > Subject: [PATCH 11/13] hw/i386: move rtc-reset-reinjection command out of > hw/rtc > X-Mailer: git-send-email 2.45.0 > > The rtc-reset-reinjection QMP command is specific to x86, other boards do not > have the ACK tracking functionality that is needed for RTC interrupt > reinjection. Therefore the QMP command is only included in x86, but > qmp_rtc_reset_reinjection() is implemented by hw/rtc/mc146818rtc.c > and requires tracking of all created RTC devices. Move the implementation > to hw/i386, so that 1) it is available even if no RTC device exist > 2) the only RTC that exists is easily found in x86ms->rtc. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > include/hw/rtc/mc146818rtc.h | 2 +- > hw/i386/monitor.c | 46 ++++++++++++++++++++++++++++++++++++ > hw/rtc/mc146818rtc.c | 12 ++-------- > hw/i386/meson.build | 1 + > 4 files changed, 50 insertions(+), 11 deletions(-) > create mode 100644 hw/i386/monitor.c
Reviewed-by: Zhao Liu <zhao1....@intel.com>