]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/extra/0004-Revert-x86-acpi-workaround-Windows-not-handling-name.patch
update submodule and patches to QEMU 9.0.0
[pve-qemu.git] / debian / patches / extra / 0004-Revert-x86-acpi-workaround-Windows-not-handling-name.patch
CommitLineData
c38e337f
FE
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Fiona Ebner <f.ebner@proxmox.com>
3Date: Fri, 17 Nov 2023 11:18:06 +0100
4Subject: [PATCH] Revert "x86: acpi: workaround Windows not handling name
5 references in Package properly"
6
7This reverts commit 44d975ef340e2f21f236f9520c53e1b30d2213a4.
8
9As reported in the community forum [0] and reproduced locally this
10breaks VirtIO network adapters in (at least) the German ISO of Windows
11Server 2022. The fix itself was for
12
13> Issue is not fatal but as result acpi-index/"PCI Label ID" property
14> is either not shown in device details page or shows incorrect value.
15
16so revert and tolerate that as a stop-gap, rather than have the
17devices not working at all.
18
19[0]: https://forum.proxmox.com/threads/92094/post-605684
20
21Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
22---
23 hw/i386/acpi-build.c | 8 ++------
24 1 file changed, 2 insertions(+), 6 deletions(-)
25
26diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
4fbd50e2 27index 53f804ac16..9b1b9f0412 100644
c38e337f
FE
28--- a/hw/i386/acpi-build.c
29+++ b/hw/i386/acpi-build.c
4fbd50e2 30@@ -347,13 +347,9 @@ Aml *aml_pci_device_dsm(void)
c38e337f
FE
31 {
32 Aml *params = aml_local(0);
33 Aml *pkg = aml_package(2);
34- aml_append(pkg, aml_int(0));
35- aml_append(pkg, aml_int(0));
36+ aml_append(pkg, aml_name("BSEL"));
37+ aml_append(pkg, aml_name("ASUN"));
38 aml_append(method, aml_store(pkg, params));
39- aml_append(method,
40- aml_store(aml_name("BSEL"), aml_index(params, aml_int(0))));
41- aml_append(method,
42- aml_store(aml_name("ASUN"), aml_index(params, aml_int(1))));
43 aml_append(method,
44 aml_return(aml_call5("PDSM", aml_arg(0), aml_arg(1),
45 aml_arg(2), aml_arg(3), params))