Package: qemu-kvm
Version: 1:2.12+dfsg-3
Severity: normal

Dear Maintainer,

CLOCK_MONOTONIC should not jump during sleep, according to the systemd developer
https://github.com/systemd/systemd/issues/9538#issuecomment-405901335

When the host Linux is supended by "systemctl suspend",
CLOCK_MONOTONIC of the host does not include the time during suspend
and does not jump, but CLOCK_MONOTONIC in the linux running on qemu-kvm
jumps, as follows:

root@debian-unstable:/var/tmp# while true; do python3 -c "import time; 
print(time.monotonic())"; sleep 100; done
19938.840492947
20038.868252082
20138.894991601
20238.91993227
20338.948723988
20995.602910365

This leads to loss of systemd-journald logs as described in
https://github.com/systemd/systemd/issues/9538


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.16.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), 
LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages qemu-kvm depends on:
ii  qemu-system-x86  1:2.12+dfsg-3

qemu-kvm recommends no packages.

qemu-kvm suggests no packages.

-- no debconf information

Reply via email to