All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] x86/cpu: TSC handling adjustments
@ 2026-10-30 13:24 Roger Pau Monne
  2026-10-30 13:24 ` [PATCH 1/2] x86/cpu: keep cached TSC_AUX state coherent with hardware Roger Pau Monne
  2026-10-30 13:24 ` [PATCH 2/2] x86/hvm: sync APs TSC with the BSP at creation only Roger Pau Monne
  0 siblings, 2 replies; 12+ messages in thread
From: Roger Pau Monne @ 2026-10-30 13:24 UTC (permalink / raw)
  To: xen-devel; +Cc: Roger Pau Monne, Jan Beulich, Andrew Cooper, Teddy Astie

Hello,

The fist patch fixes a bug if started with TSC_AUX != 0, as then the
cached value won't match the hardware one.

Second patch fixes handling of TSC_ADJUST and TSC offset for HVM
domains, in an attempt to make it consistent with hardware behavior.

Thanks, Roger.

Roger Pau Monne (2):
  x86/cpu: keep cached TSC_AUX state coherent with hardware
  x86/hvm: sync APs TSC with the BSP at creation only

 xen/arch/x86/acpi/power.c |  3 +++
 xen/arch/x86/cpu/common.c |  5 +++++
 xen/arch/x86/hvm/domain.c |  5 -----
 xen/arch/x86/hvm/hvm.c    | 19 +++++++++++--------
 xen/arch/x86/hvm/save.c   | 34 ++++++++++++++++++++++++++++++++--
 xen/arch/x86/time.c       |  5 ++---
 6 files changed, 53 insertions(+), 18 deletions(-)

-- 
2.55.0



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

end of thread, other threads:[~2026-11-02 14:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-30 13:24 [PATCH 0/2] x86/cpu: TSC handling adjustments Roger Pau Monne
2026-10-30 13:24 ` [PATCH 1/2] x86/cpu: keep cached TSC_AUX state coherent with hardware Roger Pau Monne
2026-11-02  9:42   ` Teddy Astie
2026-11-02 11:51   ` Andrew Cooper
2026-11-02 13:59     ` Roger Pau Monné
2026-10-30 13:24 ` [PATCH 2/2] x86/hvm: sync APs TSC with the BSP at creation only Roger Pau Monne
2026-11-02  7:40   ` chunjie.zhu
2026-11-02  8:34     ` Roger Pau Monné
2026-11-02 10:03       ` chunjie.zhu
2026-11-02  9:35   ` Teddy Astie
2026-11-02 13:44   ` Andrew Cooper
2026-11-02 14:08     ` Roger Pau Monné

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.