qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] Fix and improve core RTC function and documentation
@ 2018-10-11 12:23 Artem Pisarenko
  2018-10-11 12:23 ` [Qemu-devel] [PATCH 1/4] vl: improve/fix documentation related to RTC function Artem Pisarenko
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Artem Pisarenko @ 2018-10-11 12:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: Artem Pisarenko

Modifications are motivated by bug https://bugs.launchpad.net/qemu/+bug/1797033 I've encountered recently.

Trying to fix it and analyzing its effect on all use cases (not covered in bug report) revealed much deeper problems.
This is my first patch to QEMU and I'm not sure whether the way I addressed them is proper.
They definitely require either modifications to current implementation (breaking compability), or adding clarifications to user documentation. I've tried to find compromise.
Changes I propose are driven mostly by my interpretation of user documentation and comments in code, rather than by existing implementation.

I've splitted patches in a way that at least some of them may be accepted. Following subsets are make sense on their own:
- 1
- 1,2,3

I limited refactoring only to vl.c, although it leads to reworking of all hw/* rtc models which have unreasonable duplications of actions performed by vl.c.
I'm sure such kind of rework will reveal more hidden bugs/features, but so far I've had enough (it's a long story how muсh effort and pain cost me to find that tricky bug above).
I suppose just to draw attention of relevant hw/* maintainers.

Artem Pisarenko (4):
  vl: improve/fix documentation related to RTC function
  vl: refactor -rtc option references
  Fixes RTC bug with base datetime shifts in clock=vm
  vl,qapi: offset value calculation in RTC_CHANGE event reverted to
    match behavior before #1797033 bugfix and documented

 qapi/misc.json  |   3 +-
 qemu-options.hx |  14 +++++---
 vl.c            | 102 ++++++++++++++++++++++++++++++++++++--------------------
 3 files changed, 76 insertions(+), 43 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-17 13:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-11 12:23 [Qemu-devel] [PATCH 0/4] Fix and improve core RTC function and documentation Artem Pisarenko
2018-10-11 12:23 ` [Qemu-devel] [PATCH 1/4] vl: improve/fix documentation related to RTC function Artem Pisarenko
2018-10-11 12:23 ` [Qemu-devel] [PATCH 2/4] vl: refactor -rtc option references Artem Pisarenko
2018-10-11 12:23 ` [Qemu-devel] [PATCH 3/4] Fixes RTC bug with base datetime shifts in clock=vm Artem Pisarenko
2018-10-11 12:23 ` [Qemu-devel] [PATCH 4/4] vl, qapi: offset value calculation in RTC_CHANGE event reverted to match behavior before #1797033 bugfix and documented Artem Pisarenko
2018-10-17 13:56   ` Eric Blake
2018-10-17 11:53 ` [Qemu-devel] [PATCH 0/4] Fix and improve core RTC function and documentation Artem Pisarenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).