Skip to content

Sync TSC for guest when vcpu has been migrated to another cpu

Leonard Norrgard kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Sync guest viewable TSC when vcpu migrateddrivers/kvm/svm.c drivers/kvm/vmx.c+64 -13 replies
2/3Add a vcpu_migrated statisticdrivers/kvm/kvm_main.c drivers/kvm/svm.c drivers/kvm/vmx.c+5 -01 reply
3/3Widen key column in kvm_statkvm_stat+2 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Sync TSC for guest when vcpu has been migrated to another cpu

When a vcpu is migrated to another cpu, an unexpected difference in current and previous cpu TSC values can cause a guest to wait indefinitely. A known workaround has been to run kvm with taskset, locking it to a single cpu. This patch series modifies the guest TSC offset as needed to guarantee that the guest sees a monotonically increasing TSC, adds a statistic for vcpu_migrated and updates kvm_stat so the first column isn't truncated.

[1/3] Sync guest viewable TSC when vcpu migrated
[2/3] Add a vcpu_migrated statistic
[3/3] Widen key column in kvm_stat

-- Leonard

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV