linux/arch/um
Johannes Berg 85e73968a0 um: virtio_uml: Fix time-travel external time propagation
When creating an external event, the current time needs to
be propagated to other participants of a simulation. This
is done in the places here where we kick a virtq etc.

However, it must be done for _all_ external events, and
that includes making the initial socket connection and
later closing it. Call time_travel_propagate_time() to do
this before making or closing the socket connection.

Apparently, at least for the initial connection creation,
due to the remote side in my use cases using microseconds
(rather than nanoseconds), this wasn't a problem yet; only
started failing between 5.14-rc1 and 5.15-rc1 (didn't test
others much), or possibly depending on the configuration,
where more delays happen before the virtio devices are
initialized.

Fixes: 88ce642492 ("um: Implement time-travel=ext")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2021-12-21 21:29:30 +01:00
..
configs kunit: Move default config from arch/um -> tools/testing/kunit 2021-06-23 17:49:17 -06:00
drivers um: virtio_uml: Fix time-travel external time propagation 2021-12-21 21:29:30 +01:00
include um: registers: Rename function names to avoid conflicts and build problems 2021-12-21 21:22:19 +01:00
kernel um: Replace if (cond) BUG() with BUG_ON() 2021-12-21 21:18:39 +01:00
os-Linux um: registers: Rename function names to avoid conflicts and build problems 2021-12-21 21:22:19 +01:00
scripts License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
.gitignore um: gitignore: Add kernel/capflags.c 2021-12-21 21:22:43 +01:00
Kbuild kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild 2021-05-26 23:10:37 +09:00
Kconfig This pull request contains the following changes for UML: 2021-09-09 13:45:26 -07:00
Kconfig.debug um: Disable CONFIG_GCOV with MODULES 2021-04-15 23:10:33 +02:00
Makefile kbuild: do not require sub-make for separate output tree builds 2021-08-10 08:23:39 +09:00
Makefile-os-Linux
Makefile-skas