lkml.org 
[lkml]   [2014]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] Drivers: hv: util: Implement Time Synchronization using host time sample
From
> +/* helper function to call adjtimex command in user mode */
> +static void run_adjtimex_cmd(s64 tickvalue)
> +{
> + char *argv[4], *envp[3];
> + char str_tickvalue[20];
> +
> + sprintf(str_tickvalue, "%lld", tickvalue);
> +
> + argv[0] = "/sbin/adjtimex";
> + argv[1] = "-t";
> + argv[2] = str_tickvalue;
> + argv[3] = NULL;
> +
> + envp[0] = "HOME=/";
> + envp[1] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin";
> + envp[2] = NULL;
> +
> + call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC);
> +}


What happens when adjtimex is not present?
Is there no kernel space function for that?
Does this patch affect "not setting correct time on restore" or "not
setting correct time on live migration" bug?

Thanks

Mike


\
 
 \ /
  Last update: 2014-09-26 14:01    [W:0.084 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site