]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci: acpi: Windows 'PCI Label Id' bug workaround
authorIgor Mammedov <imammedo@redhat.com>
Wed, 15 Jan 2025 12:53:41 +0000 (13:53 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 17 Jan 2025 06:30:54 +0000 (09:30 +0300)
commit7170aa66aaf794c972c31d126235716b28f00cdd
tree7345a42f580e24e46763c6f846c59029e5960660
parentb107128ea6b3755e7ab5f9392ddffe8910caa9d0
pci: acpi: Windows 'PCI Label Id' bug workaround

Current versions of Windows call _DSM(func=7) regardless
of whether it is supported or not. It leads to NICs having bogus
'PCI Label Id = 0', where none should be set at all.

Also presence of 'PCI Label Id' triggers another Windows bug
on localized versions that leads to hangs. The later bug is fixed
in latest updates for 'Windows Server' but not in consumer
versions of Windows (and there is no plans to fix it
as far as I'm aware).

Given it's easy, implement Microsoft suggested workaround
(return invalid Package) so that affected Windows versions
could boot on QEMU.
This would effectvely remove bogus 'PCI Label Id's on NICs,
but MS teem confirmed that flipping 'PCI Label Id' should not
change 'Network Connection' ennumeration, so it should be safe
for QEMU to change _DSM without any compat code.

Smoke tested with WinXP and WS2022
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/774
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20250115125342.3883374-3-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 0b053391985abcc40b16ac8fc4a7f6588d1d95c1)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/acpi-build.c