Windows guest hangs after reboot from the guest OS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Fedora) |
Unknown
|
Unknown
|
|||
qemu (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned | ||
Jammy |
Incomplete
|
Undecided
|
Sergio Durigan Junior |
Bug Description
[ Impact ]
Some versions of Windows hang on reboot if their TSC value is greater
than 2^54. The calibration of the Hyper-V reference time overflows
and fails; as a result the processors' clock sources are out of sync.
[ Test Plan ]
TBD.
[ Where problems could occur ]
TBD.
[ Original Description ]
Description:
Some versions of Windows hang on reboot if their TSC value is greater
than 2^54. The calibration of the Hyper-V reference time overflows
and fails; as a result the processors' clock sources are out of sync.
The issue is that the TSC _should_ be reset to 0 on CPU reset and
QEMU tries to do that. However, KVM special cases writing 0 to the
TSC and thinks that QEMU is trying to hot-plug a CPU, which is
correct the first time through but not later. Thwart this valiant
effort and reset the TSC to 1 instead, but only if the CPU has been
run once.
For this to work, env->tsc has to be moved to the part of CPUArchState
that is not zeroed at the beginning of x86_cpu_reset.
Solution: [PATCH] target/i386: properly reset TSC on reset
I created and tested a ppa ubuntu package already. The patch fixes this issue.
Link to ppa: https:/
It affects only jammy 22.04 package. The newest version is: qemu-1:
Related branches
- Canonical Server Core Reviewers: Pending requested
- Canonical Server Reporter: Pending requested
-
Diff: 104 lines (+82/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-2064914-properly-reset-tsc-on-reset.patch (+74/-0)
description: | updated |
Changed in qemu (Ubuntu Jammy): | |
status: | New → Triaged |
Changed in qemu (Ubuntu): | |
status: | New → Incomplete |
description: | updated |
The attachment "Patch imported from RHEL 8" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]