[PATCH 0/2] x86/apic: Make noapictimer work with the TSC deadline timer

From: Jiaming Fan

Date: Sun Nov 22 2026 - 05:29:48 EST


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