[...]

> > > What about Linux inmate cells on Intel? Has anybody else seem horrid 
> > > timer resolutions (like ".resolution: 1000000 nsecs") as well? The 
> > > aforementioned ARM patch makes no sense for the x86's version of time.c, 
> > > I guess. Should we be providing HPET address to the inmate the same way 
> > > it's done for PM timer address? Any other ideas?
> > 
> > What's your setup exactly?
> 
> Maybe it's something in my inmate Linux config? I've tried with two
> codebases there: RT Linux and upstream (both with Jailhouse patches,
> naturally). I'll attach one of the configs.

OK, apparently this fixes that (just as for ARM):

--- a/arch/x86/kernel/time.c
+++ b/arch/x86/kernel/time.c
@@ -85,6 +85,7 @@ static __init void x86_late_time_init(void)
 {
        x86_init.timers.timer_init();
        tsc_init();
+        tick_setup_hrtimer_broadcast();
 }

so that I now see

cpu: 0
 clock 0:
  .base:       ffff880003813300
  .index:      0
  .resolution: 1 nsecs
  .get_time:   ktime_get
  .offset:     0 nsecs



-- 
Gustavo Lima Chaves
Intel - Open Source Technology Center

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to