Add vDSO support for timekeeping devices that support the KVM/XEN
paravirtual clock API.
Details
Details
- Reviewers
kib markj stevek royger - Commits
- rG2a16b0f333d4: libc: vDSO timekeeping: Add pvclock support
rG4b34c91973dd: pvclock: Add vDSO support
rG249f2478e382: pvclock: Add 'struct pvclock' API
rGa3d932dfef5e: libc: vDSO timekeeping: Add pvclock support
rGd4b2d3035a23: pvclock: Add vDSO support
rG0b3382b863f3: pvclock: Add 'struct pvclock' API
Tested as part of testing D29733.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/x86/x86/pvclock.c | ||
---|---|---|
174 | Should it (formally) be atomic_cmpset_rel_64? | |
177 | Could this be written more simply as: ret = now; if ((flags & PVCLOCK_FLAG_TSC_STABLE) == 0) { last = atomic_load_acq_64(&pvclock_last_systime); do { if (last > now) { ret = last; break; } } while (!atomic_fcmpset_64(&pvclock_last_systime, &last, now); } ? |