* [pve-devel] maybe a windows reboot hang fix
@ 2022-08-15 7:00 DERUMIER, Alexandre
2022-08-16 9:37 ` Wolfgang Bumiller
0 siblings, 1 reply; 3+ messages in thread
From: DERUMIER, Alexandre @ 2022-08-15 7:00 UTC (permalink / raw)
To: pve-devel
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.
"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pve-devel] maybe a windows reboot hang fix
2022-08-15 7:00 [pve-devel] maybe a windows reboot hang fix DERUMIER, Alexandre
@ 2022-08-16 9:37 ` Wolfgang Bumiller
2022-08-16 9:46 ` DERUMIER, Alexandre
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Bumiller @ 2022-08-16 9:37 UTC (permalink / raw)
To: DERUMIER, Alexandre; +Cc: pve-devel
On Mon, Aug 15, 2022 at 07:00:51AM +0000, DERUMIER, Alexandre wrote:
> 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
Seems like qemu 7.0 already contains this, I just forwarded a 7.0
package to the pvetest repo if you'd like to play around with it :-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pve-devel] maybe a windows reboot hang fix
2022-08-16 9:37 ` Wolfgang Bumiller
@ 2022-08-16 9:46 ` DERUMIER, Alexandre
0 siblings, 0 replies; 3+ messages in thread
From: DERUMIER, Alexandre @ 2022-08-16 9:46 UTC (permalink / raw)
To: Wolfgang Bumiller; +Cc: pve-devel
Thanks wolfgang.
I have also build a 6.2 with the patch, I'm going to share it on the
forum too,
as many users are impacted, but it's difficult to reproduce as we need
to wait 1 or 2 months.
(and I just reboot my windows servers last week for the monthly update)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-16 9:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15 7:00 [pve-devel] maybe a windows reboot hang fix DERUMIER, Alexandre
2022-08-16 9:37 ` Wolfgang Bumiller
2022-08-16 9:46 ` DERUMIER, Alexandre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox