mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] x86/apic: Make noapictimer work with the TSC deadline timer
@ 2026-11-22 10:29 Jiaming Fan
  2026-11-22 10:30 ` [PATCH 1/2] x86/timer: Don't skip PIT setup on UP when the local APIC timer is disabled Jiaming Fan
  2026-11-22 10:30 ` [RFC PATCH 2/2] x86/apic: Honor noapictimer on SMP with the TSC deadline timer Jiaming Fan
  0 siblings, 2 replies; 3+ messages in thread
From: Jiaming Fan @ 2026-11-22 10:29 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen
  Cc: x86, H. Peter Anvin, linux-kernel

I hit this while writing a small VMM as a learning project: a
single-vCPU guest booted with "noapictimer" and no HPET hangs during
boot. It reproduces with QEMU on a host with TSC deadline and ARAT:

  qemu-system-x86_64 -enable-kvm -cpu host -smp 1 -machine q35,hpet=off \
      -nographic -kernel bzImage -append "console=ttyS0 noapictimer"

Patch 1 fixes that. While testing it I noticed that with -smp 2 the
option is silently ignored on TSC deadline CPUs, which patch 2 changes.
Patch 2 is an RFC: it can make machines that boot today panic or hang
when there is no working PIT or HPET, so feel free to drop it. Patch 1
does not depend on it.

Tested with QEMU/KVM on an AMD host and with my VMM: 1 and 2 vCPUs,
with HPET, without HPET, and without HPET and PIT. Not tested on Intel
or bare metal.

Jiaming Fan (2):
  x86/timer: Don't skip PIT setup on UP when the local APIC timer is
    disabled
  x86/apic: Honor noapictimer on SMP with the TSC deadline timer

 arch/x86/kernel/apic/apic.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)


base-commit: c44104f3642da720164042623e4832836aefdd8e
-- 
2.56.1



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

end of thread, other threads:[~2026-11-22 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-22 10:29 [PATCH 0/2] x86/apic: Make noapictimer work with the TSC deadline timer Jiaming Fan
2026-11-22 10:30 ` [PATCH 1/2] x86/timer: Don't skip PIT setup on UP when the local APIC timer is disabled Jiaming Fan
2026-11-22 10:30 ` [RFC PATCH 2/2] x86/apic: Honor noapictimer on SMP with the TSC deadline timer Jiaming Fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®