ACPI: i386: bump MADT to revision 3
PATCH v2 1/3 ACPI: bios-tables-test.c step 2 (allowed-diff entries)
In reply to Eric DeVolderFollowing the guidelines in tests/qtest/bios-tables-test.c, set up bios-tables-test-allowed-diff.h to ignore the imminent changes to the APIC tables, per step 2.
--- tests/qtest/bios-tables-test-allowed-diff.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
tests/qtest/bios-tables-test-allowed-diff.h +14 -0
@@ -1 +1,15 @@/* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/microvm/APIC" , +"tests/data/acpi/microvm/APIC.ioapic2" , +"tests/data/acpi/microvm/APIC.pcie" , +"tests/data/acpi/pc/APIC" , +"tests/data/acpi/pc/APIC.acpihmat" , +"tests/data/acpi/pc/APIC.cphp" , +"tests/data/acpi/pc/APIC.dimmpxm" , +"tests/data/acpi/q35/APIC" , +"tests/data/acpi/q35/APIC.acpihmat" , +"tests/data/acpi/q35/APIC.acpihmat-noinitiator" , +"tests/data/acpi/q35/APIC.core-count2" , +"tests/data/acpi/q35/APIC.cphp" , +"tests/data/acpi/q35/APIC.dimmpxm" , +"tests/data/acpi/q35/APIC.xapic",
Signature · 1 line
2.31.1
PATCH v2 2/3 ACPI: i386: bump to MADT to revision 3
In reply to Eric DeVolderCurrently i386 QEMU generates MADT revision 3, and reports MADT revision 1. Set .revision to 3 to match reality.
cle.com/T/#t
--- hw/i386/acpi-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-common.c +1 -1
@@ -102,7 +102,7 @@ void acpi_build_madt(GArray *table_data, BIOSLinker *linker,MachineClass *mc =MACHINE_GET_CLASS (x86ms);const CPUArchIdList *apic_ids = mc->possible_cpu_arch_ids (MACHINE (x86ms));AcpiDeviceIfClass *adevc =ACPI_DEVICE_IF_GET_CLASS (adev); -AcpiTable table = { .sig ="APIC" , .rev =1 , .oem_id = oem_id, +AcpiTable table = { .sig ="APIC" , .rev =3 , .oem_id = oem_id, .oem_table_id = oem_table_id };acpi_table_begin (&table, table_data);
Signature · 1 line
2.31.1
PATCH v2 3/3 ACPI: bios-tables-test.c step 5 (update expected table binaries)
In reply to Eric DeVolderFollowing the guidelines in tests/qtest/bios-tables-test.c, this is step 5 and 6.
An examination of all the files impacted (as listed in bios-tables-test-allowe-diff.h) shows only the MADT/APIC tables bumping revision from 1 to 3, and a corresponding change to the checksum. The below diff is typical:
--- /tmp/asl-1F9641.dsl 2023-05-16 15:18:31.292579156 -0400
+++ /tmp/asl-GVD741.dsl 2023-05-16 15:18:31.291579149 -0400
@@ -1,32 +1,32 @@
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20230331 (64-bit version)
* Copyright (c) 2000 - 2023 Intel Corporation
*
- * Disassembly of tests/data/acpi/pc/APIC, Tue May 16 15:18:31 2023
+ * Disassembly of /tmp/aml-R4D741, Tue May 16 15:18:31 2023
*
* ACPI Data Table [APIC]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue (in hex) */
[000h 0000 004h] Signature : "APIC" [Multiple APIC Description Table (MADT)]
[004h 0004 004h] Table Length : 00000078
-[008h 0008 001h] Revision : 01 -[009h 0009 001h] Checksum : 8A +[008h 0008 001h] Revision : 03 +[009h 0009 001h] Checksum : 88
[00Ah 0010 006h] Oem ID : "BOCHS "
[010h 0016 008h] Oem Table ID : "BXPC "
[018h 0024 004h] Oem Revision : 00000001
[01Ch 0028 004h] Asl Compiler ID : "BXPC"
[020h 0032 004h] Asl Compiler Revision : 00000001
[024h 0036 004h] Local Apic Address : FEE00000
[028h 0040 004h] Flags (decoded below) : 00000001
PC-AT Compatibility : 1
[02Ch 0044 001h] Subtable Type : 00 [Processor Local APIC]
[02Dh 0045 001h] Length : 08
[02Eh 0046 001h] Processor ID : 00
[02Fh 0047 001h] Local Apic ID : 00
[030h 0048 004h] Flags (decoded below) : 00000001
Processor Enabled : 1
@@ -81,24 +81,24 @@
[06Bh 0107 001h] Source : 0B
[06Ch 0108 004h] Interrupt : 0000000B
[070h 0112 002h] Flags (decoded below) : 000D
Polarity : 1
Trigger Mode : 3
[072h 0114 001h] Subtable Type : 04 [Local APIC NMI]
[073h 0115 001h] Length : 06
[074h 0116 001h] Processor ID : FF
[075h 0117 002h] Flags (decoded below) : 0000
Polarity : 0
Trigger Mode : 0
[077h 0119 001h] Interrupt Input LINT : 01
Raw Table Data: Length 120 (0x78)
- 0000: 41 50 49 43 78 00 00 00 01 8A 42 4F 43 48 53 20 // APICx.....BOCHS
+ 0000: 41 50 49 43 78 00 00 00 03 88 42 4F 43 48 53 20 // APICx.....BOCHS
0010: 42 58 50 43 20 20 20 20 01 00 00 00 42 58 50 43 // BXPC ....BXPC
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
0030: 01 00 00 00 01 0C 00 00 00 00 C0 FE 00 00 00 00 // ................
0040: 02 0A 00 00 02 00 00 00 00 00 02 0A 00 05 05 00 // ................
0050: 00 00 0D 00 02 0A 00 09 09 00 00 00 0D 00 02 0A // ................
0060: 00 0A 0A 00 00 00 0D 00 02 0A 00 0B 0B 00 00 00 // ................
0070: 0D 00 04 06 FF 00 00 01 // ........--- tests/data/acpi/microvm/APIC | Bin 70 -> 70 bytes tests/data/acpi/microvm/APIC.ioapic2 | Bin 82 -> 82 bytes tests/data/acpi/microvm/APIC.pcie | Bin 110 -> 110 bytes tests/data/acpi/pc/APIC | Bin 120 -> 120 bytes tests/data/acpi/pc/APIC.acpihmat | Bin 128 -> 128 bytes tests/data/acpi/pc/APIC.cphp | Bin 160 -> 160 bytes tests/data/acpi/pc/APIC.dimmpxm | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC | Bin 120 -> 120 bytes tests/data/acpi/q35/APIC.acpihmat | Bin 128 -> 128 bytes tests/data/acpi/q35/APIC.acpihmat-noinitiator | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC.core-count2 | Bin 2478 -> 2478 bytes tests/data/acpi/q35/APIC.cphp | Bin 160 -> 160 bytes tests/data/acpi/q35/APIC.dimmpxm | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC.xapic | Bin 2686 -> 2686 bytes tests/qtest/bios-tables-test-allowed-diff.h | 14 -------------- 15 files changed, 14 deletions(-)
tests/data/acpi/microvm/APIC binary +0 -0
tests/data/acpi/microvm/APIC.ioapic2 binary +0 -0
tests/data/acpi/microvm/APIC.pcie binary +0 -0
tests/data/acpi/pc/APIC binary +0 -0
tests/data/acpi/pc/APIC.acpihmat binary +0 -0
tests/data/acpi/pc/APIC.cphp binary +0 -0
tests/data/acpi/pc/APIC.dimmpxm binary +0 -0
tests/data/acpi/q35/APIC binary +0 -0
tests/data/acpi/q35/APIC.acpihmat binary +0 -0
tests/data/acpi/q35/APIC.acpihmat-noinitiator binary +0 -0
tests/data/acpi/q35/APIC.core-count2 binary +0 -0
tests/data/acpi/q35/APIC.cphp binary +0 -0
tests/data/acpi/q35/APIC.dimmpxm binary +0 -0
tests/data/acpi/q35/APIC.xapic binary +0 -0
tests/qtest/bios-tables-test-allowed-diff.h +0 -14
@@ -1,15 +1 @@/* List of comma-separated changed AML files to ignore */ -"tests/data/acpi/microvm/APIC" , -"tests/data/acpi/microvm/APIC.ioapic2" , -"tests/data/acpi/microvm/APIC.pcie" , -"tests/data/acpi/pc/APIC" , -"tests/data/acpi/pc/APIC.acpihmat" , -"tests/data/acpi/pc/APIC.cphp" , -"tests/data/acpi/pc/APIC.dimmpxm" , -"tests/data/acpi/q35/APIC" , -"tests/data/acpi/q35/APIC.acpihmat" , -"tests/data/acpi/q35/APIC.acpihmat-noinitiator" , -"tests/data/acpi/q35/APIC.core-count2" , -"tests/data/acpi/q35/APIC.cphp" , -"tests/data/acpi/q35/APIC.dimmpxm" , -"tests/data/acpi/q35/APIC.xapic",
Signature · 1 line
2.31.1
v2 cover ACPI: i386: bump MADT to revision 3
The following Linux kernel change broke CPU hotplug for MADT revision less than 5.
e2869bd7af60 ("x86/acpi/boot: Do not register processors that cannot be onlined for x2APIC")
Discussion on this topic can be located here:
https://lore.kernel.org/linux-acpi/[email protected]/T/#t
which resulted in the following fixes in Linux 6.3-rc5:
a74fabfbd1b7: ("x86/ACPI/boot: Use FADT version to check support for online capable")
fed8d8773b8e: ("x86/acpi/boot: Correct acpi_is_processor_usable() check")
However, as part of the investigation into resolving this breakage, I learned that i386 QEMU reports revision 1, while technically it generates revision 3.
Below is a table summarizing the changes to the MADT. This information gleamed from the ACPI specs on uefi.org.
ACPI MADT What
Version Version
1.0 MADT not present 2.0 1 Section 5.2.10.4 3.0 2 Section 5.2.11.4
5.2.11.13 Local SAPIC Structure added two new fields:
ACPI Processor UID Value
ACPI Processor UID String
5.2.10.14 Platform Interrupt Sources Structure:
Reserved changed to Platform Interrupt Sources Flags
3.0b 2 Section 5.2.11.4
Added a section describing guidelines for the ordering of processors in the MADT to support proper boot processor and multi-threaded logical processor operation.
4.0 3 Section 5.2.12
Adds Processor Local x2APIC structure type 9 Adds Local x2APIC NMI structure type 0xA
5.0 3 Section 5.2.12
6.0 3 Section 5.2.12
6.0a 4 Section 5.2.12
Adds ARM GIC structure types 0xB-0xF
6.2a 45 Section 5.2.12 <--- version 45, is indeed accurate!
6.2b 5 Section 5.2.12 GIC ITS last Reserved offset changed to 16 from 20 (typo)
6.3 5 Section 5.2.12
Adds Local APIC Flags Online Capable!
Adds GICC SPE Overflow Interrupt field
6.4 5 Section 5.2.12
Adds Multiprocessor Wakeup Structure type 0x10 (change notes says structure previously misplaced?)
6.5 5 Section 5.2.12
For the MADT revision change 1 -> 2, the spec has a change to the SAPIC structure. In general, QEMU does not generate/support SAPIC. So the QEMU i386 MADT revision can safely be moved to 2.
For the MADT revision change 2 -> 3, the spec adds Local x2APIC structures. QEMU has long supported x2apic ACPI structures. So the QEMU i386 MADT revision can safely be moved to 3.
So, set the MADT revision to 3.
Regards,
Eric
---
v2: 17may2023
- Fix problems with the binary tables for the bios-tables-test.c and make check.
v1: 15may2023
- initial
---
Eric DeVolder (3):
ACPI: bios-tables-test.c step 2 (allowed-diff entries)
ACPI: i386: bump to MADT to revision 3
ACPI: bios-tables-test.c step 5 (update expected table binaries)
hw/i386/acpi-common.c | 2 +- tests/data/acpi/microvm/APIC | Bin 70 -> 70 bytes tests/data/acpi/microvm/APIC.ioapic2 | Bin 82 -> 82 bytes tests/data/acpi/microvm/APIC.pcie | Bin 110 -> 110 bytes tests/data/acpi/pc/APIC | Bin 120 -> 120 bytes tests/data/acpi/pc/APIC.acpihmat | Bin 128 -> 128 bytes tests/data/acpi/pc/APIC.cphp | Bin 160 -> 160 bytes tests/data/acpi/pc/APIC.dimmpxm | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC | Bin 120 -> 120 bytes tests/data/acpi/q35/APIC.acpihmat | Bin 128 -> 128 bytes tests/data/acpi/q35/APIC.acpihmat-noinitiator | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC.core-count2 | Bin 2478 -> 2478 bytes tests/data/acpi/q35/APIC.cphp | Bin 160 -> 160 bytes tests/data/acpi/q35/APIC.dimmpxm | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC.xapic | Bin 2686 -> 2686 bytes 15 files changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.31.1
Re: [PATCH v2 1/3] ACPI: bios-tables-test.c step 2 (allowed-diff entries)
In reply to Eric DeVolderQuoted 5 lines · Eric DeVolder
Following the guidelines in
tests/qtest/bios-tables-test.c, set upbios-tables-test-allowed-diff.hto ignore the imminent changes to the APIC tables, per step 2.Signed-off-by Eric DeVolder <[email protected]>
Quoted 28 lines
--- tests/qtest/bios-tables-test-allowed-diff.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)tests/qtest/bios-tables-test-allowed-diff.h +14
-1@@ -1 +1,15 @@/* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/microvm/APIC" , +"tests/data/acpi/microvm/APIC.ioapic2" , +"tests/data/acpi/microvm/APIC.pcie" , +"tests/data/acpi/pc/APIC" , +"tests/data/acpi/pc/APIC.acpihmat" , +"tests/data/acpi/pc/APIC.cphp" , +"tests/data/acpi/pc/APIC.dimmpxm" , +"tests/data/acpi/q35/APIC" , +"tests/data/acpi/q35/APIC.acpihmat" , +"tests/data/acpi/q35/APIC.acpihmat-noinitiator" , +"tests/data/acpi/q35/APIC.core-count2" , +"tests/data/acpi/q35/APIC.cphp" , +"tests/data/acpi/q35/APIC.dimmpxm" , +"tests/data/acpi/q35/APIC.xapic", --2.31.1
Re: [PATCH v2 3/3] ACPI: bios-tables-test.c step 5 (update expected table binaries)
In reply to Eric DeVolderQuoted 73 lines · Eric DeVolder
Following the guidelines in
tests/qtest/bios-tables-test.c, this is step 5 and 6.An examination of all the files impacted (as listed in
bios-tables-test-allowe-diff.h) shows only the MADT/APIC tables bumping revision from 1 to 3, and a corresponding change to the checksum. The below diff is typical:---
/tmp/asl-1F9641.dsl2023-05-16 15:18:31.292579156 -0400
+++/tmp/asl-GVD741.dsl2023-05-16 15:18:31.291579149 -0400
@@ -1,32 +1,32 @@
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20230331 (64-bit version)
* Copyright (c) 2000 - 2023 Intel Corporation
*
- * Disassembly of tests/data/acpi/pc/APIC, Tue May 16 15:18:31 2023
+ * Disassembly of/tmp/aml-R4D741, Tue May 16 15:18:31 2023
*
* ACPI Data Table [APIC]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue (in hex) */[000h 0000 004h] Signature : "APIC" [Multiple APIC Description Table (MADT)]
[004h 0004 004h] Table Length : 00000078-[008h 0008 001h] Revision : 01 -[009h 0009 001h] Checksum : 8A +[008h 0008 001h] Revision : 03 +[009h 0009 001h] Checksum : 88[00Ah 0010 006h] Oem ID : "BOCHS "
[010h 0016 008h] Oem Table ID : "BXPC "
[018h 0024 004h] Oem Revision : 00000001
[01Ch 0028 004h] Asl Compiler ID : "BXPC"
[020h 0032 004h] Asl Compiler Revision : 00000001[024h 0036 004h] Local Apic Address : FEE00000
[028h 0040 004h] Flags (decoded below) : 00000001
PC-AT Compatibility : 1[02Ch 0044 001h] Subtable Type : 00 [Processor Local APIC]
[02Dh 0045 001h] Length : 08
[02Eh 0046 001h] Processor ID : 00
[02Fh 0047 001h] Local Apic ID : 00
[030h 0048 004h] Flags (decoded below) : 00000001
Processor Enabled : 1
@@ -81,24 +81,24 @@
[06Bh 0107 001h] Source : 0B
[06Ch 0108 004h] Interrupt : 0000000B
[070h 0112 002h] Flags (decoded below) : 000D
Polarity : 1
Trigger Mode : 3[072h 0114 001h] Subtable Type : 04 [Local APIC NMI]
[073h 0115 001h] Length : 06
[074h 0116 001h] Processor ID : FF
[075h 0117 002h] Flags (decoded below) : 0000
Polarity : 0
Trigger Mode : 0
[077h 0119 001h] Interrupt Input LINT : 01Raw Table Data: Length 120 (
0x78)- 0000: 41 50 49 43 78 00 00 00 01 8A 42 4F 43 48 53 20 // APICx.....BOCHS + 0000: 41 50 49 43 78 00 00 00 03 88 42 4F 43 48 53 20 // APICx.....BOCHS 0010: 42 58 50 43 20 20 20 20 01 00 00 00 42 58 50 43 // BXPC ....BXPC 0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................ 0030: 01 00 00 00 01 0C 00 00 00 00 C0 FE 00 00 00 00 // ................ 0040: 02 0A 00 00 02 00 00 00 00 00 02 0A 00 05 05 00 // ................ 0050: 00 00 0D 00 02 0A 00 09 09 00 00 00 0D 00 02 0A // ................ 0060: 00 0A 0A 00 00 00 0D 00 02 0A 00 0B 0B 00 00 00 // ................ 0070: 0D 00 04 06 FF 00 00 01 // ........
Quoted 1 line
Signed-off-by Eric DeVolder <[email protected]>
Quoted 168 lines
--- tests/data/acpi/microvm/APIC | Bin 70 -> 70 bytes tests/data/acpi/microvm/APIC.ioapic2 | Bin 82 -> 82 bytes tests/data/acpi/microvm/APIC.pcie | Bin 110 -> 110 bytes tests/data/acpi/pc/APIC | Bin 120 -> 120 bytes tests/data/acpi/pc/APIC.acpihmat | Bin 128 -> 128 bytes tests/data/acpi/pc/APIC.cphp | Bin 160 -> 160 bytes tests/data/acpi/pc/APIC.dimmpxm | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC | Bin 120 -> 120 bytes tests/data/acpi/q35/APIC.acpihmat | Bin 128 -> 128 bytes tests/data/acpi/q35/APIC.acpihmat-noinitiator | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC.core-count2 | Bin 2478 -> 2478 bytes tests/data/acpi/q35/APIC.cphp | Bin 160 -> 160 bytes tests/data/acpi/q35/APIC.dimmpxm | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC.xapic | Bin 2686 -> 2686 bytes tests/qtest/bios-tables-test-allowed-diff.h | 14 -------------- 15 files changed, 14 deletions(-)tests/data/acpi/microvm/APIC binary +0
-0tests/data/acpi/microvm/APIC.ioapic2 binary +0
-0tests/data/acpi/microvm/APIC.pcie binary +0
-0tests/data/acpi/pc/APIC binary +0
-0tests/data/acpi/pc/APIC.acpihmat binary +0
-0tests/data/acpi/pc/APIC.cphp binary +0
-0tests/data/acpi/pc/APIC.dimmpxm binary +0
-0tests/data/acpi/q35/APIC binary +0
-0tests/data/acpi/q35/APIC.acpihmat binary +0
-0tests/data/acpi/q35/APIC.acpihmat-noinitiator binary +0
-0tests/data/acpi/q35/APIC.core-count2 binary +0
-0tests/data/acpi/q35/APIC.cphp binary +0
-0tests/data/acpi/q35/APIC.dimmpxm binary +0
-0tests/data/acpi/q35/APIC.xapic binary +0
-0tests/qtest/bios-tables-test-allowed-diff.h +0
-15@@ -1,15 +1 @@/* List of comma-separated changed AML files to ignore */ -"tests/data/acpi/microvm/APIC" , -"tests/data/acpi/microvm/APIC.ioapic2" , -"tests/data/acpi/microvm/APIC.pcie" , -"tests/data/acpi/pc/APIC" , -"tests/data/acpi/pc/APIC.acpihmat" , -"tests/data/acpi/pc/APIC.cphp" , -"tests/data/acpi/pc/APIC.dimmpxm" , -"tests/data/acpi/q35/APIC" , -"tests/data/acpi/q35/APIC.acpihmat" , -"tests/data/acpi/q35/APIC.acpihmat-noinitiator" , -"tests/data/acpi/q35/APIC.core-count2" , -"tests/data/acpi/q35/APIC.cphp" , -"tests/data/acpi/q35/APIC.dimmpxm" , -"tests/data/acpi/q35/APIC.xapic" , --2.31.1
Quoted 78 lines · On Wed, 17 May 2023 12:25:42 -0400 Eric DeVolder <[email protected]>…
The following Linux kernel change broke CPU hotplug for MADT revision less than 5.
e2869bd7af60("x86/acpi/boot: Do not register processors that cannot be onlined for x2APIC")Discussion on this topic can be located here:
https://lore.kernel.org/linux-acpi/[email protected]/T/#t
which resulted in the following fixes in Linux 6.3-rc5:
a74fabfbd1b7: ("x86/ACPI/boot: Use FADT version to check support for online capable")
fed8d8773b8e: ("x86/acpi/boot: Correctacpi_is_processor_usable()check")However, as part of the investigation into resolving this breakage, I learned that i386 QEMU reports revision 1, while technically it generates revision 3.
Below is a table summarizing the changes to the MADT. This information gleamed from the ACPI specs on uefi.org.
ACPI MADT What
Version Version1.0 MADT not present 2.0 1 Section 5.2.10.4 3.0 2 Section 5.2.11.45.2.11.13 Local SAPIC Structure added two new fields:
ACPI Processor UID Value
ACPI Processor UID String
5.2.10.14 Platform Interrupt Sources Structure:
Reserved changed to Platform Interrupt Sources Flags
3.0b 2 Section 5.2.11.4
Added a section describing guidelines for the ordering of processors in the MADT to support proper boot processor and multi-threaded logical processor operation.
4.0 3 Section 5.2.12
Adds Processor Local x2APIC structure type 9 Adds Local x2APIC NMI structure type0xA5.0 3 Section 5.2.12 6.0 3 Section 5.2.12 6.0a 4 Section 5.2.12 Adds ARM GIC structure types 0xB-0xF 6.2a 45 Section 5.2.12 <--- version 45, is indeed accurate! 6.2b 5 Section 5.2.12GIC ITS last Reserved offset changed to 16 from 20 (typo)
6.3 5 Section 5.2.12
Adds Local APIC Flags Online Capable!
Adds GICC SPE Overflow Interrupt field
6.4 5 Section 5.2.12
Adds Multiprocessor Wakeup Structure type0x10(change notes says structure previously misplaced?)
6.5 5 Section 5.2.12For the MADT revision change 1 -> 2, the spec has a change to the SAPIC structure. In general, QEMU does not generate/support SAPIC. So the QEMU i386 MADT revision can safely be moved to 2.
For the MADT revision change 2 -> 3, the spec adds Local x2APIC structures. QEMU has long supported x2apic ACPI structures. So the QEMU i386 MADT revision can safely be moved to 3.
So, set the MADT revision to 3.
Regards,
Eric
---
v2: 17may2023
- Fix problems with the binary tables for thebios-tables-test.cand make check.v1: 15may2023
- initial
---
Eric DeVolder (3):
ACPI:bios-tables-test.cstep 2 (allowed-diff entries)
ACPI: i386: bump to MADT to revision 3
ACPI:bios-tables-test.cstep 5 (update expected table binaries)
Quoted 17 lines
hw/i386/acpi-common.c | 2 +- tests/data/acpi/microvm/APIC | Bin 70 -> 70 bytes tests/data/acpi/microvm/APIC.ioapic2 | Bin 82 -> 82 bytes tests/data/acpi/microvm/APIC.pcie | Bin 110 -> 110 bytes tests/data/acpi/pc/APIC | Bin 120 -> 120 bytes tests/data/acpi/pc/APIC.acpihmat | Bin 128 -> 128 bytes tests/data/acpi/pc/APIC.cphp | Bin 160 -> 160 bytes tests/data/acpi/pc/APIC.dimmpxm | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC | Bin 120 -> 120 bytes tests/data/acpi/q35/APIC.acpihmat | Bin 128 -> 128 bytes tests/data/acpi/q35/APIC.acpihmat-noinitiator | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC.core-count2 | Bin 2478 -> 2478 bytes tests/data/acpi/q35/APIC.cphp | Bin 160 -> 160 bytes tests/data/acpi/q35/APIC.dimmpxm | Bin 144 -> 144 bytes tests/data/acpi/q35/APIC.xapic | Bin 2686 -> 2686 bytes 15 files changed, 1 insertion(+), 1 deletion(-)