On Tue, 2025-10-14 at 18:05 +0200, Ilya Leoshkevich wrote:
> After reset, both TOD and CKC values are set to 0, so if
^^^
This is inaccurate, only the TOD programmable register is set to 0.
I will fix this in v2.
> clock-comparator interrupts are enabled, one should occur shortly
> thereafter.
>
> Currently the code does not set tod_timer, so this does not happen.
>
> Fix by adding a tcg_s390_tod_updated() call. Initialize TOD clock
> before CPUs in order to ensure that the respective object exists
> during the CPU reset.
>
> Signed-off-by: Ilya Leoshkevich <[email protected]>
> ---
> hw/s390x/s390-virtio-ccw.c | 6 +++---
> target/s390x/cpu.c | 8 ++++++++
> 2 files changed, 11 insertions(+), 3 deletions(-)
[...]