* [Bug 217799] New: kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43)
@ 2023-08-16 8:52 bugzilla-daemon
2023-08-16 9:04 ` [Bug 217799] " bugzilla-daemon
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-daemon @ 2023-08-16 8:52 UTC (permalink / raw)
To: kvm
https://bugzilla.kernel.org/show_bug.cgi?id=217799
Bug ID: 217799
Summary: kvm: Windows Server 2003 VM fails to work on 6.1.44
(works fine on 6.1.43)
Product: Virtualization
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: kvm
Assignee: virtualization_kvm@kernel-bugs.osdl.org
Reporter: rm+bko@romanrm.net
Regression: No
Hello,
I have a virtual machine running the old Windows Server 2003. On kernels 6.1.44
and 6.1.45, the QEMU VNC window stays dark, not switching to any of the guest's
video modes and the VM process uses only ~64 MB of RAM of the assigned 2 GB,
indefinitely. It's like the VM is paused/halted/stuck before even starting. The
process can be killed successfully and then restarted again (with the same
result), so it is not deadlocked in kernel or the like.
Kernel 6.1.43 works fine.
I have also tried downgrading CPU microcode from 20230808 to 20230719, but that
did not help.
The CPU is AMD Ryzen 5900. I suspect some of the newly added mitigations may be
the culprit?
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 217799] kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43)
2023-08-16 8:52 [Bug 217799] New: kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43) bugzilla-daemon
@ 2023-08-16 9:04 ` bugzilla-daemon
2023-08-16 9:22 ` bugzilla-daemon
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2023-08-16 9:04 UTC (permalink / raw)
To: kvm
https://bugzilla.kernel.org/show_bug.cgi?id=217799
--- Comment #1 from Roman Mamedov (rm+bko@romanrm.net) ---
Booting the kernel with "spec_rstack_overflow=off" solves the problem.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 217799] kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43)
2023-08-16 8:52 [Bug 217799] New: kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43) bugzilla-daemon
2023-08-16 9:04 ` [Bug 217799] " bugzilla-daemon
@ 2023-08-16 9:22 ` bugzilla-daemon
2023-08-16 10:58 ` bugzilla-daemon
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2023-08-16 9:22 UTC (permalink / raw)
To: kvm
https://bugzilla.kernel.org/show_bug.cgi?id=217799
Bagas Sanjaya (bagasdotme@gmail.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bagasdotme@gmail.com
--- Comment #2 from Bagas Sanjaya (bagasdotme@gmail.com) ---
(In reply to Roman Mamedov from comment #0)
> Hello,
>
> I have a virtual machine running the old Windows Server 2003. On kernels
> 6.1.44 and 6.1.45, the QEMU VNC window stays dark, not switching to any of
> the guest's video modes and the VM process uses only ~64 MB of RAM of the
> assigned 2 GB, indefinitely. It's like the VM is paused/halted/stuck before
> even starting. The process can be killed successfully and then restarted
> again (with the same result), so it is not deadlocked in kernel or the like.
>
> Kernel 6.1.43 works fine.
>
> I have also tried downgrading CPU microcode from 20230808 to 20230719, but
> that did not help.
>
> The CPU is AMD Ryzen 5900. I suspect some of the newly added mitigations may
> be the culprit?
Can you do bisection between v6.1.44 and v6.1.45 to find out the specific
mitigation that have this regression?
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 217799] kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43)
2023-08-16 8:52 [Bug 217799] New: kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43) bugzilla-daemon
2023-08-16 9:04 ` [Bug 217799] " bugzilla-daemon
2023-08-16 9:22 ` bugzilla-daemon
@ 2023-08-16 10:58 ` bugzilla-daemon
2023-08-16 11:17 ` [Bug 217799] kvm: Speculative RAS Overflow mitigation breaks old Windows guest VMs bugzilla-daemon
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2023-08-16 10:58 UTC (permalink / raw)
To: kvm
https://bugzilla.kernel.org/show_bug.cgi?id=217799
--- Comment #3 from Roman Mamedov (rm+bko@romanrm.net) ---
Hello,
Unfortunately I am not in a position to easily do bisects.
But as noted above, setting "spec_rstack_overflow=off" is enough to solve it.
Further info, trying with an XP x64 install ISO provided by Microsoft:
https://archive.org/details/windows-xp-professional-x64-edition
With "spec_rstack_overflow=off", it works fine. But in the default state of
this new mitigation (which is "safe RET, no microcode" on my machine), the
install ISO hangs at the "Setup is starting Windows" message. So if anyone
wants to reproduce on their local machine, there is now a quick and legal way
to do so.
My QEMU command-line:
kvm -cpu host -m 2048 -machine pc,mem-merge=on,accel=kvm -vnc [::]:24 -device
ide-hd,drive=drive0,bus=ide.0 -drive
if=none,id=drive0,cache=writeback,aio=threads,format=raw,discard=unmap,detect-zeroes=off,file=xp.img
-rtc base=localtime -cdrom xp64ce.iso -boot d
I should add that when a VM is in this stuck state, the CPU load by QEMU
process is 0% (not 100%).
And I am not sure why the default mitigation state says "no microcode", as I
use a 2023-08-08 updated microcode package from Debian.
# dmesg | grep microcode
[ 0.401618] Speculative Return Stack Overflow: IBPB-extending microcode not
applied!
[ 0.401618] Speculative Return Stack Overflow: Mitigation: safe RET, no
microcode
[ 1.051941] microcode: CPU0: patch_level=0x0a201016
[ 1.051947] microcode: CPU1: patch_level=0x0a201016
[ 1.051953] microcode: CPU2: patch_level=0x0a201016
[ 1.051960] microcode: CPU3: patch_level=0x0a201016
[ 1.051967] microcode: CPU4: patch_level=0x0a201016
[ 1.051973] microcode: CPU5: patch_level=0x0a201016
[ 1.051981] microcode: CPU6: patch_level=0x0a201016
[ 1.051989] microcode: CPU7: patch_level=0x0a201016
[ 1.051996] microcode: CPU8: patch_level=0x0a201016
[ 1.052003] microcode: CPU9: patch_level=0x0a201016
[ 1.052010] microcode: CPU10: patch_level=0x0a201016
[ 1.052018] microcode: CPU11: patch_level=0x0a201016
[ 1.052024] microcode: CPU12: patch_level=0x0a201016
[ 1.052030] microcode: CPU13: patch_level=0x0a201016
[ 1.052036] microcode: CPU14: patch_level=0x0a201016
[ 1.052041] microcode: CPU15: patch_level=0x0a201016
[ 1.052046] microcode: CPU16: patch_level=0x0a201016
[ 1.052052] microcode: CPU17: patch_level=0x0a201016
[ 1.052058] microcode: CPU18: patch_level=0x0a201016
[ 1.052064] microcode: CPU19: patch_level=0x0a201016
[ 1.052070] microcode: CPU20: patch_level=0x0a201016
[ 1.052076] microcode: CPU21: patch_level=0x0a201016
[ 1.052082] microcode: CPU22: patch_level=0x0a201016
[ 1.052088] microcode: CPU23: patch_level=0x0a201016
[ 1.052092] microcode: Microcode Update Driver: v2.2.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 217799] kvm: Speculative RAS Overflow mitigation breaks old Windows guest VMs
2023-08-16 8:52 [Bug 217799] New: kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43) bugzilla-daemon
` (2 preceding siblings ...)
2023-08-16 10:58 ` bugzilla-daemon
@ 2023-08-16 11:17 ` bugzilla-daemon
2023-08-16 13:50 ` bugzilla-daemon
2023-08-16 17:23 ` bugzilla-daemon
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2023-08-16 11:17 UTC (permalink / raw)
To: kvm
https://bugzilla.kernel.org/show_bug.cgi?id=217799
Roman Mamedov (rm+bko@romanrm.net) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bp@alien8.de
Kernel Version| |6.1.44
Summary|kvm: Windows Server 2003 VM |kvm: Speculative RAS
|fails to work on 6.1.44 |Overflow mitigation breaks
|(works fine on 6.1.43) |old Windows guest VMs
--- Comment #4 from Roman Mamedov (rm+bko@romanrm.net) ---
Borislav, as you are author of the patch adding Speculative RAS Overflow
mitigation, could you maybe take a look what could be wrong here? Thanks
Windows XP-era 64-bit guest VMs in KVM no longer work with it enabled.
Windows 7 (and likely newer) does work.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 217799] kvm: Speculative RAS Overflow mitigation breaks old Windows guest VMs
2023-08-16 8:52 [Bug 217799] New: kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43) bugzilla-daemon
` (3 preceding siblings ...)
2023-08-16 11:17 ` [Bug 217799] kvm: Speculative RAS Overflow mitigation breaks old Windows guest VMs bugzilla-daemon
@ 2023-08-16 13:50 ` bugzilla-daemon
2023-08-16 17:23 ` bugzilla-daemon
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2023-08-16 13:50 UTC (permalink / raw)
To: kvm
https://bugzilla.kernel.org/show_bug.cgi?id=217799
Sean Christopherson (seanjc@google.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |seanjc@google.com
--- Comment #5 from Sean Christopherson (seanjc@google.com) ---
As pointed out by Vitaly, this is probably the guest RFLAGS corruption bug[*],
especially since it's XP specific (more likely to trigger emulation). The fix
should make its way to Linus' tree this week, and hopefully to stable kernels
shortly thereafter. Though if you can manually apply and test the fix before
then, that would be very helpful.
[*] https://lore.kernel.org/all/20230811155255.250835-1-seanjc@google.com
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 217799] kvm: Speculative RAS Overflow mitigation breaks old Windows guest VMs
2023-08-16 8:52 [Bug 217799] New: kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43) bugzilla-daemon
` (4 preceding siblings ...)
2023-08-16 13:50 ` bugzilla-daemon
@ 2023-08-16 17:23 ` bugzilla-daemon
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2023-08-16 17:23 UTC (permalink / raw)
To: kvm
https://bugzilla.kernel.org/show_bug.cgi?id=217799
Roman Mamedov (rm+bko@romanrm.net) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX
--- Comment #6 from Roman Mamedov (rm+bko@romanrm.net) ---
Indeed, this patch appears to fix it. I built 6.1.46 with it added, and the
issue is no longer present. Thanks!
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-08-16 17:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-16 8:52 [Bug 217799] New: kvm: Windows Server 2003 VM fails to work on 6.1.44 (works fine on 6.1.43) bugzilla-daemon
2023-08-16 9:04 ` [Bug 217799] " bugzilla-daemon
2023-08-16 9:22 ` bugzilla-daemon
2023-08-16 10:58 ` bugzilla-daemon
2023-08-16 11:17 ` [Bug 217799] kvm: Speculative RAS Overflow mitigation breaks old Windows guest VMs bugzilla-daemon
2023-08-16 13:50 ` bugzilla-daemon
2023-08-16 17:23 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox