[Lguest] [PATCH] Provide timespec to guests rather than jiffies clock.
Rusty Russell
rusty at rustcorp.com.au
Fri Jul 27 15:18:25 EST 2007
On Thu, 2007-07-26 at 21:26 -0700, Andrew Morton wrote:
> > +/* This routine supplies the Guest with time: it's used for wallclock time at
> > + * initial boot and as a rough time source if the TSC isn't available. */
> > +void write_timestamp(struct lguest *lg)
> > +{
> > + struct timespec now;
> > + ktime_get_real_ts(&now);
> > + if (put_user(now, &lg->lguest_data->time))
> > + kill_guest(lg, "Writing timestamp");
> > +}
>
> This seems a rather generic name for a kernel-wide symbol. Can I do
> s/write_timestamp/lguest_write_timestamp/g?
Yes, sorry, it was originally static (but needs to be called once on
initialization).
Thanks,
Rusty.
More information about the Lguest
mailing list