All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] time: fix time accounting for x86 HVM guests
@ 2026-04-14 10:33 Roger Pau Monne
  2026-04-14 10:33 ` [PATCH 1/2] x86/time: use native TSC scaling factors when TSC is not scaled Roger Pau Monne
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Roger Pau Monne @ 2026-04-14 10:33 UTC (permalink / raw)
  To: xen-devel
  Cc: Roger Pau Monne, Jan Beulich, Andrew Cooper, Teddy Astie,
	Stefano Stabellini, Julien Grall, Bertrand Marquis, Michal Orzel,
	Volodymyr Babchuk, Alistair Francis, Connor Davis,
	Oleksii Kurochko

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(-)

-- 
2.53.0



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-04-16 13:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14 10:33 [PATCH 0/2] time: fix time accounting for x86 HVM guests Roger Pau Monne
2026-04-14 10:33 ` [PATCH 1/2] x86/time: use native TSC scaling factors when TSC is not scaled Roger Pau Monne
2026-04-16 11:28   ` Jan Beulich
2026-04-16 12:51     ` Roger Pau Monné
2026-04-16 12:57       ` Jan Beulich
2026-04-16 13:13     ` Roger Pau Monné
2026-04-16 13:21       ` Jan Beulich
2026-04-14 10:33 ` [PATCH 2/2] xen/cpu: round up cpu_khz calculations Roger Pau Monne
2026-04-14 11:36   ` Tu Dinh
2026-04-14 11:56     ` Roger Pau Monné
2026-04-16  7:55   ` Jan Beulich
2026-04-14 20:08 ` [PATCH 0/2] time: fix time accounting for x86 HVM guests Stefano Stabellini
2026-04-15  8:44 ` Marek Marczykowski-Górecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.