[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] RE: rdtsc: correctness vs performance on Xen (and KVM?)



> There's still a race there

Good point.  Essentially we need to ensure that
{{rdtsc and the pvclock struct values for PCPU-X}}
are obtained atomically and there's no way to guarantee
that (at least without incurring overhead that's likely
to exceed just emulating rdtsc to begin with).
 
> > I'm clueless about GDTs and the LSL instrution so would
> > need some help prototyping this.
> >   
> 
> It's what vsyscall already uses.  Your scheme is precisely 
> analogous to
> what's already there.

(...except if it can be done entirely in the app with no
OS dependencies)

Won't pvclock+vsyscall have the same race?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.