Commit 6fdbfac
committed
Pull up following revision(s) (requested by riastradh in ticket #1170):
sys/arch/xen/xen/xen_clock.c: revision 1.22
xen: Use ordered rdtsc() function, rather than inline rdtsc asm.
This will issue either lfence, mfence, or cpuid before the rdtsc
instruction, depending on the CPU identification, in order to prevent
reordering with respect to surrounding loads -- particularly those
used to query the host's systime parameters.
May help with:
PR port-xen/59437: Xen time stability1 parent 50af184 commit 6fdbfac
1 file changed
Lines changed: 7 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 117 | | |
133 | 118 | | |
134 | 119 | | |
135 | 120 | | |
136 | | - | |
| 121 | + | |
| 122 | + | |
137 | 123 | | |
138 | 124 | | |
139 | 125 | | |
| |||
256 | 242 | | |
257 | 243 | | |
258 | 244 | | |
259 | | - | |
| 245 | + | |
260 | 246 | | |
261 | 247 | | |
262 | 248 | | |
| |||
538 | 524 | | |
539 | 525 | | |
540 | 526 | | |
541 | | - | |
| 527 | + | |
542 | 528 | | |
543 | 529 | | |
544 | 530 | | |
| |||
549 | 535 | | |
550 | 536 | | |
551 | 537 | | |
552 | | - | |
| 538 | + | |
553 | 539 | | |
554 | 540 | | |
555 | 541 | | |
| |||
0 commit comments