Skip to content

force the TSC unreliable by reporting C2 state

Marcelo Tosatti kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7kvm: qemu: inform valid C2 state in ACPI tablebios/acpi-dsdt.dsl+40 -10 replies
2/7kvm: qemu: disable c2 via _CST notificationqemu/hw/acpi.c+60 -00 replies
3/7libkvm: in-kernel C2 halt interfacelibkvm/libkvm.c libkvm/libkvm.h+20 -00 replies
4/7libkvm: handle_io return handler valuelibkvm/libkvm.c+1 -10 replies
5/7qemu: kvm: unhalt vcpu0 on pit irqqemu/hw/i8259.c qemu/qemu-kvm.c qemu/qemu-kvm.h+11 -00 replies
6/7kvm: qemu: enable in-kernel C2 emulation / userspace emulationqemu/hw/acpi.c qemu/qemu-kvm-x86.c qemu/qemu-kvm.c +1 more+36 -40 replies
7/7KVM: in-kernel ACPI C2 idle emulationarch/x86/kvm/Makefile arch/x86/kvm/acpi.c arch/x86/kvm/acpi.h +8 more+129 -261 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/7] force the TSC unreliable by reporting C2 state

Avi, I don't think this causes such a huge performance regression. NOHZ makes the frequency of timer reads go down significantly.

As for constant tick guests, well, the impact will be similar to changing to SMP, since those fallback to ACPI timer anyway now.

The C2 emulation is required by Ubuntu 7.10 for example, which refuses to process the CST notification.

Stock Linux kernels (as old as 2.6.20) do mark C2 invalid upon the CST notification.