From: "DERUMIER, Alexandre" <Alexandre.DERUMIER@groupe-cyllene.com>
To: pve-devel <pve-devel@lists.proxmox.com>
Subject: [pve-devel] maybe a windows reboot hang fix
Date: Mon, 15 Aug 2022 07:00:51 +0000 [thread overview]
Message-ID: <bf35a2fb-c2e8-230b-a725-0e8c4a4655c5@groupe-cyllene.com> (raw)
Hi,
I'm still trying to fix windows reboot hang after windows update (I also
have the problem in production).
I have found a related bug in redhat bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1975840#c151
https://access.redhat.com/solutions/6836351
Issue Microsoft Windows guests hang while rebooting, the bootscreen
shows the Windows log and the boot circle endlessly.
Resolution There is no resolution or workaround at this time, please
power off the Guest and power on again.
Root Cause This is Bug 1975840 - Windows guest hangs after updating and
restarting from the guest OS
and is caused by a TSC (Time Stamp Counter) issue in Guest when it
overflows during boot time i
f the value provided by the virtualization platform is already high. It
tends to affect Guests with longer uptimes.
A patch has been in qemu master
https://github.com/qemu/qemu/commit/5286c3662294119dc2dd1e9296757337211451f6
It's really a small patch, it can be backported easily
"
target/i386: properly reset TSC on reset
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.
"
next reply other threads:[~2022-08-15 7:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-15 7:00 DERUMIER, Alexandre [this message]
2022-08-16 9:37 ` Wolfgang Bumiller
2022-08-16 9:46 ` DERUMIER, Alexandre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bf35a2fb-c2e8-230b-a725-0e8c4a4655c5@groupe-cyllene.com \
--to=alexandre.derumier@groupe-cyllene.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox