<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/include/hw/rtc, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/include/hw/rtc?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/include/hw/rtc?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-05-10T13:45:15Z</updated>
<entry>
<title>hw/i386: move rtc-reset-reinjection command out of hw/rtc</title>
<updated>2024-05-10T13:45:15Z</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2024-05-09T17:00:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=d0be0ac2c37eb978ed51c822b4a8a7dc9015e1e0'/>
<id>urn:sha1:d0be0ac2c37eb978ed51c822b4a8a7dc9015e1e0</id>
<content type='text'>
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-&gt;rtc.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Reviewed-by: Zhao Liu &lt;zhao1.liu@intel.com&gt;
Message-ID: &lt;20240509170044.190795-12-pbonzini@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>hw/rtc/sun4v-rtc: Relicense to GPLv2-or-later</title>
<updated>2024-03-07T12:54:56Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2024-02-23T16:13:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=fd7f95f23d6fe485332c1d4b489eb719fcb7c225'/>
<id>urn:sha1:fd7f95f23d6fe485332c1d4b489eb719fcb7c225</id>
<content type='text'>
The sun4v RTC device model added under commit a0e893039cf2ce0 in 2016
was unfortunately added with a license of GPL-v3-or-later, which is
not compatible with other QEMU code which has a GPL-v2-only license.

Relicense the code in the .c and the .h file to GPL-v2-or-later,
to make it compatible with the rest of QEMU.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Paolo Bonzini (for Red Hat) &lt;pbonzini@redhat.com&gt;
Signed-off-by: Artyom Tarasenko &lt;atar4qemu@gmail.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Acked-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-id: 20240223161300.938542-1-peter.maydell@linaro.org
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/rtc/aspeed_rtc: Use 64-bit offset for holding time_t difference</title>
<updated>2023-08-31T08:45:18Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2023-08-31T08:45:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=c0a63857282afebaeed606a3dca803bb3bfb6aa3'/>
<id>urn:sha1:c0a63857282afebaeed606a3dca803bb3bfb6aa3</id>
<content type='text'>
In the aspeed_rtc device we store a difference between two time_t
values in an 'int'. This is not really correct when time_t could
be 64 bits. Enlarge the field to 'int64_t'.

This is a migration compatibility break for the aspeed boards.
While we are changing the vmstate, remove the accidental
duplicate of the offset field.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Cédric Le Goater &lt;clg@kaod.org&gt;
</content>
</entry>
<entry>
<title>hw/rtc: Rename rtc_[get|set]_memory -&gt; mc146818rtc_[get|set]_cmos_data</title>
<updated>2023-02-27T21:29:02Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2023-02-10T23:18:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=2d4bd81e396fb7d5f9af0c55be78a6af2f1fd19c'/>
<id>urn:sha1:2d4bd81e396fb7d5f9af0c55be78a6af2f1fd19c</id>
<content type='text'>
rtc_get_memory() and rtc_set_memory() helpers only work with
TYPE_MC146818_RTC devices. 'memory' in their name refer to
the CMOS region. Rename them as mc146818rtc_get_cmos_data()
and mc146818rtc_set_cmos_data() to be explicit about what
they are doing.

Mechanical change doing:

  $ sed -i -e 's/rtc_set_memory/mc146818rtc_set_cmos_data/g' \
        $(git grep -wl rtc_set_memory)
  $ sed -i -e 's/rtc_get_memory/mc146818rtc_get_cmos_data/g' \
        $(git grep -wl rtc_get_memory)

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20230210233116.80311-4-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/rtc/mc146818rtc: Pass MC146818RtcState instead of ISADevice argument</title>
<updated>2023-02-27T21:29:02Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2023-02-10T23:17:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=55c86cb8038d8a2db792712fd27b4f486ee09c7a'/>
<id>urn:sha1:55c86cb8038d8a2db792712fd27b4f486ee09c7a</id>
<content type='text'>
rtc_get_memory() and rtc_set_memory() methods can not take any
TYPE_ISA_DEVICE object. They expect a TYPE_MC146818_RTC one.

Simplify the API by passing a MC146818RtcState.

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20230210233116.80311-3-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/rtc/mc146818rtc: Rename RTCState -&gt; MC146818RtcState</title>
<updated>2023-02-27T21:29:02Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2023-02-10T23:17:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=8df7129790896ffde2f9cb1005a0ac8cf1005280'/>
<id>urn:sha1:8df7129790896ffde2f9cb1005a0ac8cf1005280</id>
<content type='text'>
RTCState only represents a Motorola MC146818 model,
not any RTC chipset. Rename the structure as MC146818RtcState
using:

  $ sed -i -e s/RTCState/MC146818RtcState/g $(git grep -wl RTCState)

Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20230210233116.80311-2-philmd@linaro.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/rtc/mc146818rtc: Make the mc146818 RTC device target independent</title>
<updated>2023-01-13T15:22:57Z</updated>
<author>
<name>Thomas Huth</name>
<email>thuth@redhat.com</email>
</author>
<published>2023-01-10T09:53:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=e896d849331eb853cf3b7df6a24be279ae9a421d'/>
<id>urn:sha1:e896d849331eb853cf3b7df6a24be279ae9a421d</id>
<content type='text'>
The only reason for this code being target dependent was the IRQ-counting
related code in rtc_policy_slew_deliver_irq(). Since these functions have
been moved into a new, separate file (kvm_irqcount.c) which is now always
compiled and linked if necessary, we can get rid of the #ifdef TARGET_I386
switches in mc146818rtc.c and declare it in the softmmu_ss instead of
specific_ss, so that the code only gets compiled once for all targets.

Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Message-Id: &lt;20230110095351.611724-4-thuth@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>goldfish_rtc: Add big-endian property</title>
<updated>2022-09-04T06:02:56Z</updated>
<author>
<name>Stafford Horne</name>
<email>shorne@gmail.com</email>
</author>
<published>2022-06-12T11:53:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=65f5144e1726c36c97df7e70484250941aafaa27'/>
<id>urn:sha1:65f5144e1726c36c97df7e70484250941aafaa27</id>
<content type='text'>
Add a new property "big-endian" to allow configuring the RTC as either
little or big endian, the default is little endian.

Currently overriding the default to big endian is only used by the m68k
virt platform.  New platforms should prefer to use little endian and not
set this.

Cc: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Stafford Horne &lt;shorne@gmail.com&gt;
</content>
</entry>
<entry>
<title>hw/rtc/mc146818rtc: QOM'ify io_base offset</title>
<updated>2022-06-11T09:44:50Z</updated>
<author>
<name>Bernhard Beschow</name>
<email>shentey@gmail.com</email>
</author>
<published>2022-05-29T18:40:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=5b21b331beaa20225b481ea068e21dcb65aba598'/>
<id>urn:sha1:5b21b331beaa20225b481ea068e21dcb65aba598</id>
<content type='text'>
Exposing the io_base offset as a QOM property not only allows it to be
configurable but also to be displayed in HMP:

Before:

(qemu) info qtree
       ...
          dev: mc146818rtc, id ""
            gpio-out "" 1
            base_year = 0 (0x0)
            irq = 8 (0x8)
            lost_tick_policy = "discard"

After:

          dev: mc146818rtc, id ""
            gpio-out "" 1
            base_year = 0 (0x0)
            iobase = 112 (0x70)
            irq = 8 (0x8)
            lost_tick_policy = "discard"

Signed-off-by: Bernhard Beschow &lt;shentey@gmail.com&gt;
Reviewed-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Message-Id: &lt;20220529184006.10712-4-shentey@gmail.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
</content>
</entry>
<entry>
<title>Clean up decorations and whitespace around header guards</title>
<updated>2022-05-11T14:50:32Z</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2022-05-06T13:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=ea9cea93c69d508a333dd1b0cb1a44f6daf80b63'/>
<id>urn:sha1:ea9cea93c69d508a333dd1b0cb1a44f6daf80b63</id>
<content type='text'>
Cleaned up with scripts/clean-header-guards.pl.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20220506134911.2856099-5-armbru@redhat.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
</feed>
