[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/11] tests/acpi: add ioapic2=on test for microvm
From: |
Gerd Hoffmann |
Subject: |
[PULL 09/11] tests/acpi: add ioapic2=on test for microvm |
Date: |
Thu, 10 Dec 2020 13:13:57 +0100 |
APIC table changes:
[034h 0052 1] Subtable Type : 01 [I/O APIC]
[035h 0053 1] Length : 0C
[036h 0054 1] I/O Apic ID : 00
[037h 0055 1] Reserved : 00
[038h 0056 4] Address : FEC00000
[03Ch 0060 4] Interrupt : 00000000
+[040h 0064 1] Subtable Type : 01 [I/O APIC]
+[041h 0065 1] Length : 0C
+[042h 0066 1] I/O Apic ID : 01
+[043h 0067 1] Reserved : 00
+[044h 0068 4] Address : FEC10000
+[048h 0072 4] Interrupt : 00000018
DSDT table changes:
- Device (VR07)
+ Device (VR23)
{
Name (_HID, "LNRO0005") // _HID: Hardware ID
- Name (_UID, 0x07) // _UID: Unique ID
+ Name (_UID, 0x17) // _UID: Unique ID
Name (_CCA, One) // _CCA: Cache Coherency Attribute
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
{
Memory32Fixed (ReadWrite,
- 0xFEB00E00, // Address Base
+ 0xFEB02E00, // Address Base
0x00000200, // Address Length
)
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
{
- 0x00000017,
+ 0x0000002F,
}
})
}
}
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-id: 20201203105423.10431-11-kraxel@redhat.com
---
tests/qtest/bios-tables-test.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 61bf861ac91d..f2f79dd6a4a0 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1163,6 +1163,17 @@ static void test_acpi_microvm_pcie_tcg(void)
free_test_data(&data);
}
+static void test_acpi_microvm_ioapic2_tcg(void)
+{
+ test_data data;
+
+ test_acpi_microvm_prepare(&data);
+ data.variant = ".ioapic2";
+ test_acpi_one(" -machine microvm,acpi=on,ioapic2=on,rtc=off",
+ &data);
+ free_test_data(&data);
+}
+
static void test_acpi_virt_tcg_numamem(void)
{
test_data data = {
@@ -1323,6 +1334,7 @@ int main(int argc, char *argv[])
qtest_add_func("acpi/microvm", test_acpi_microvm_tcg);
qtest_add_func("acpi/microvm/usb", test_acpi_microvm_usb_tcg);
qtest_add_func("acpi/microvm/rtc", test_acpi_microvm_rtc_tcg);
+ qtest_add_func("acpi/microvm/ioapic2", test_acpi_microvm_ioapic2_tcg);
if (strcmp(arch, "x86_64") == 0) {
qtest_add_func("acpi/microvm/pcie", test_acpi_microvm_pcie_tcg);
}
--
2.27.0
- [PULL 00/11] Microvm 20201210 patches, Gerd Hoffmann, 2020/12/10
- [PULL 03/11] microvm: make number of virtio transports runtime changeable, Gerd Hoffmann, 2020/12/10
- [PULL 10/11] tests/acpi: update expected data files, Gerd Hoffmann, 2020/12/10
- [PULL 07/11] tests/acpi: allow updates for expected data files, Gerd Hoffmann, 2020/12/10
- [PULL 01/11] x86: rewrite gsi_handler(), Gerd Hoffmann, 2020/12/10
- [PULL 02/11] x86: add support for second ioapic, Gerd Hoffmann, 2020/12/10
- [PULL 04/11] microvm: make pcie irq base runtime changeable, Gerd Hoffmann, 2020/12/10
- [PULL 11/11] tests/acpi: disallow updates for expected data files, Gerd Hoffmann, 2020/12/10
- [PULL 06/11] microvm: add second ioapic, Gerd Hoffmann, 2020/12/10
- [PULL 09/11] tests/acpi: add ioapic2=on test for microvm,
Gerd Hoffmann <=
- [PULL 05/11] microvm: drop microvm_gsi_handler(), Gerd Hoffmann, 2020/12/10
- [PULL 08/11] tests/acpi: add data files for ioapic2 test variant, Gerd Hoffmann, 2020/12/10
- Re: [PULL 00/11] Microvm 20201210 patches, Peter Maydell, 2020/12/10