]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/acpi-build.c
hw/acpi: add indication for i8042 in IA-PC boot flags of the FADT table
authorLiav Albani <liavalb@gmail.com>
Fri, 4 Mar 2022 15:40:30 +0000 (21:10 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 6 Mar 2022 21:06:16 +0000 (16:06 -0500)
commit5334bf5703408b7948d9fd8bb8a599c97cdc84a3
tree658e28b52c5a3f07133dffce8a75468cb6952034
parent43b6277ac2dc2a61acf303d9d515fafb0b876cc1
hw/acpi: add indication for i8042 in IA-PC boot flags of the FADT table

This can allow the guest OS to determine more easily if i8042 controller
is present in the system or not, so it doesn't need to do probing of the
controller, but just initialize it immediately, before enumerating the
ACPI AML namespace.

The 8042 bit in IAPC_BOOT_ARCH was introduced from ACPI spec v2 (FADT
revision 2 and above). Therefore, in this change, we only enable this bit for
x86/q35 machine types since x86/i440fx machines use FADT ACPI table with
revision 1.

Signed-off-by: Liav Albani <liavalb@gmail.com>
Signed-off-by: Ani Sinha <ani@anisinha.ca>
Message-Id: <20220304154032.2071585-3-ani@anisinha.ca>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/aml-build.c
hw/i386/acpi-build.c
include/hw/acpi/acpi-defs.h
include/hw/input/i8042.h