-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync LKL system clock with host system clock on boot #158
Comments
I wonder if this is why running |
Can you please test PR #159 ? My basic tests seems to work, but please give it a try with your usecase as well. |
I tested the patch (see PR-Comment). Btw, the lkl_ops.time is missing from the docstring in arch/lkl/include/uapi/asm/host_ops.h |
I guess the following is somehow related; CLOCK_MONOTONIC vs CLOCK_REALTIME. |
Fixed by #159 |
Documentation: teaching: labs: deferred_work: Fix example code
Most Linux systems set the system clock from a hardware clock on boot using hwclock from util-linux.
I am wondering if we can provide this functionality within LKL as well by setting the LKL system clock to the host's system clock.
For many applications the system time inside LKL does not matter, but for lklfuse (and probably also cptofs) it does. Timestamps of files are wrong with the current implementation because the system clock defaults to the unix epoch start if it has not been set explicitly.
The text was updated successfully, but these errors were encountered: