|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] write_tsc in a PV domain?
> as part of its ABI. It is not a general tsc. You can't meaningfully
> execute "rdtsc" without also being (indirectly) aware of what pcpu its
> running on and applying the appropriate corrections to turn it into
> system monotonic time. Executing rdtsc willy-nilly gets you useless
> results; fortunately no PV Xen kernel does that.
Actually for user space this isn't at all true. You can use rdtsc
directly and sample the data for things like profiling then correct for
things like spikes and skews from processor switches by filtering.
> No, write_tsc is meaningless, and anyone trying to execute it is not
> even wrong.
Writing to the tsc is perfectly reasonable providing the tsc is an
advertised feature. Being able to use the tsc becomes much more relevant
with newer processors which have sane tsc implementations in the
architecture however.
Unfortunately if you hide the tsc and hide the tsc flag in the cpu info
lots of stuff doesn't run due to crap coding 8(
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] write_tsc in a PV domain?, (continued)
- Re: [Xen-devel] write_tsc in a PV domain?, Keir Fraser
- RE: [Xen-devel] write_tsc in a PV domain?, Dan Magenheimer
- Re: [Xen-devel] write_tsc in a PV domain?, Keir Fraser
- Re: [Xen-devel] write_tsc in a PV domain?, Jeremy Fitzhardinge
- RE: [Xen-devel] write_tsc in a PV domain?, Dan Magenheimer
- Re: [Xen-devel] write_tsc in a PV domain?, Jeremy Fitzhardinge
- RE: [Xen-devel] write_tsc in a PV domain?, Dan Magenheimer
- Re: [Xen-devel] write_tsc in a PV domain?, Chris Lalancette
- RE: [Xen-devel] write_tsc in a PV domain?, Dan Magenheimer
- Re: [Xen-devel] write_tsc in a PV domain?, Chris Lalancette
- Re: [Xen-devel] write_tsc in a PV domain?,
Alan Cox <=
- Re: [Xen-devel] write_tsc in a PV domain?, Jeremy Fitzhardinge
- RE: [Xen-devel] write_tsc in a PV domain?, Dan Magenheimer
- Re: [Xen-devel] write_tsc in a PV domain?, Alan Cox
- RE: [Xen-devel] write_tsc in a PV domain?, Dan Magenheimer
- Re: [Xen-devel] write_tsc in a PV domain?, Alan Cox
- RE: [Xen-devel] write_tsc in a PV domain?, Dan Magenheimer
- [Xen-devel] rdtsc: correctness vs performance on Xen (and KVM?), Dan Magenheimer
- [Xen-devel] RE: rdtsc: correctness vs performance on Xen (and KVM?), Dan Magenheimer
- [Xen-devel] Re: rdtsc: correctness vs performance on Xen (and KVM?), Jeremy Fitzhardinge
- Re: [Xen-devel] write_tsc in a PV domain?, Jeremy Fitzhardinge
|
|
|
|
|