Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vmm: call notify_guest_clock_paused for Hyper-V guests - #7933

Merged
rbradford merged 1 commit into
cloud-hypervisor:mainfrom
cocoonstack:fix/clock-paused-hyperv
Mar 31, 2026
Merged

rbradford merged 1 commit into
cloud-hypervisor:mainfrom
cocoonstack:fix/clock-paused-hyperv

Conversation

@CMGS

@CMGS CMGS commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Previously, KVM_KVMCLOCK_CTRL was skipped when kvm_hyperv=on because Windows does not use pvclock directly. However, KVM internally uses pvclock data structures as the basis for computing the Hyper-V Reference TSC page parameters. Not calling KVM_KVMCLOCK_CTRL means there is no mechanism to signal time discontinuity to Windows guests after pause/resume, contributing to multi-minute hangs.

Remove the kvm_hyperv guard so all guests receive the clock-paused notification.

close #7931

@CMGS
CMGS requested a review from a team as a code owner March 31, 2026 06:33

@phip1611 phip1611 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We reviewed this internally and also think this is a good fix. Thanks!

Previously, KVM_KVMCLOCK_CTRL was skipped when kvm_hyperv=on because
Windows does not use pvclock directly. However, KVM internally uses
pvclock data structures as the basis for computing the Hyper-V
Reference TSC page parameters. Not calling KVM_KVMCLOCK_CTRL means
there is no mechanism to signal time discontinuity to Windows guests
after pause/resume, contributing to multi-minute hangs.

Remove the kvm_hyperv guard so all guests receive the clock-paused
notification.

Signed-off-by: CMGS <[email protected]>
@CMGS
CMGS force-pushed the fix/clock-paused-hyperv branch from e6957d2 to bd26ebd Compare March 31, 2026 07:08
phip1611 pushed a commit to phip1611/cloud-hypervisor that referenced this pull request Mar 31, 2026
Backport [0].

Previously, KVM_KVMCLOCK_CTRL was skipped when kvm_hyperv=on because
Windows does not use pvclock directly. However, KVM internally uses
pvclock data structures as the basis for computing the Hyper-V
Reference TSC page parameters. Not calling KVM_KVMCLOCK_CTRL means
there is no mechanism to signal time discontinuity to Windows guests
after pause/resume, contributing to multi-minute hangs.

Remove the kvm_hyperv guard so all guests receive the clock-paused
notification.

[0] cloud-hypervisor#7933

Signed-off-by: CMGS <[email protected]>
tpressure pushed a commit to cyberus-technology/cloud-hypervisor that referenced this pull request Mar 31, 2026
Backport [0].

Previously, KVM_KVMCLOCK_CTRL was skipped when kvm_hyperv=on because
Windows does not use pvclock directly. However, KVM internally uses
pvclock data structures as the basis for computing the Hyper-V
Reference TSC page parameters. Not calling KVM_KVMCLOCK_CTRL means
there is no mechanism to signal time discontinuity to Windows guests
after pause/resume, contributing to multi-minute hangs.

Remove the kvm_hyperv guard so all guests receive the clock-paused
notification.

[0] cloud-hypervisor#7933

Signed-off-by: CMGS <[email protected]>
@rbradford
rbradford added this pull request to the merge queue Mar 31, 2026
Merged via the queue into cloud-hypervisor:main with commit ca58685 Mar 31, 2026
38 checks passed
@CMGS
CMGS deleted the fix/clock-paused-hyperv branch April 1, 2026 02:18
@rbradford rbradford moved this to ✅ Done in Cloud Hypervisor Roadmap Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

notify_guest_clock_paused (KVM_KVMCLOCK_CTRL) skipped for Hyper-V guests, stale TSC reference page after pause

3 participants