diff options
author | Johannes Berg <johannes.berg@intel.com> | 2020-02-13 14:26:47 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-03-29 23:29:08 +0200 |
commit | 88ce642492339f49a0b391af40e5798c08948e49 (patch) | |
tree | 157046746a6ff7554cc0b843daad22519ad88e74 /arch/um/kernel/skas/syscall.c | |
parent | dd9ada5627245a3441ebde00736dd63d09acc222 (diff) |
um: Implement time-travel=ext
This implements synchronized time-travel mode which - using a special
application on a unix socket - lets multiple machines take part in a
time-travelling simulation together.
The protocol for the unix domain socket is defined in the new file
include/uapi/linux/um_timetravel.h.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel/skas/syscall.c')
-rw-r--r-- | arch/um/kernel/skas/syscall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/kernel/skas/syscall.c b/arch/um/kernel/skas/syscall.c index 2e82820f7d29..0a12d5a09217 100644 --- a/arch/um/kernel/skas/syscall.c +++ b/arch/um/kernel/skas/syscall.c @@ -24,7 +24,8 @@ void handle_syscall(struct uml_pt_regs *r) * went to sleep, even if said userspace interacts with the kernel in * various ways. */ - if (time_travel_mode == TT_MODE_INFCPU) + if (time_travel_mode == TT_MODE_INFCPU || + time_travel_mode == TT_MODE_EXTERNAL) schedule(); /* Initialize the syscall number and default return value. */ |