Skip to content

time: fix time accounting for x86 HVM guests

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/time: use native TSC scaling factors when TSC is not scaledxen/arch/x86/time.c+13 -55 replies
2/2xen/cpu: round up cpu_khz calculationsxen/arch/arm/time.c xen/arch/riscv/time.c xen/arch/x86/time.c+4 -43 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchStefano StabelliniMarek Marczykowski-GóreckiJan Beulich
SeriesT-b T-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] time: fix time accounting for x86 HVM guests

Hello,

When not emulating the TSC the guest time value calculated by using the vCPU time info page in HVM mode would drift between time synchronization intervals. First patch fixes the drift, second patch makes the calculation of cpu_khz round up the value for better accuracy.

Thanks, Roger.

Roger Pau Monne (2):
x86/time: use native TSC scaling factors when TSC is not scaled xen/cpu: round up cpu_khz calculations

 xen/arch/arm/time.c   |  4 ++--
 xen/arch/riscv/time.c |  2 +-
 xen/arch/x86/time.c   | 20 ++++++++++++++------
 3 files changed, 17 insertions(+), 9 deletions(-)
Signature · 1 line
2.53.0