qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Eduardo Habkost <ehabkost@redhat.com>,
	Sergio Lopez <slp@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Richard Henderson <richard.henderson@linaro.org>,
	Gerd Hoffmann <kraxel@redhat.com>,
	Igor Mammedov <imammedo@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Richard Henderson <rth@twiddle.net>
Subject: [PATCH v3 10/12] tests/acpi: add ioapic2=on test for microvm
Date: Thu,  3 Dec 2020 11:54:21 +0100	[thread overview]
Message-ID: <20201203105423.10431-11-kraxel@redhat.com> (raw)
In-Reply-To: <20201203105423.10431-1-kraxel@redhat.com>

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>
---
 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 0a0ce76ffcf9..4c4e6dd1e9cc 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1154,6 +1154,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 = {
@@ -1280,6 +1291,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



  parent reply	other threads:[~2020-12-03 10:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-03 10:54 [PATCH v3 00/12] microvm: add second ioapic Gerd Hoffmann
2020-12-03 10:54 ` [PATCH v3 01/12] [testing] disable xhci msix Gerd Hoffmann
2020-12-03 11:00   ` Michael S. Tsirkin
2020-12-03 11:19     ` Gerd Hoffmann
2020-12-03 10:54 ` [PATCH v3 02/12] x86: rewrite gsi_handler() Gerd Hoffmann
2020-12-03 10:54 ` [PATCH v3 03/12] x86: add support for second ioapic Gerd Hoffmann
2020-12-03 13:21   ` Sergio Lopez
2020-12-03 10:54 ` [PATCH v3 04/12] microvm: make number of virtio transports runtime changeable Gerd Hoffmann
2020-12-03 13:26   ` Sergio Lopez
2020-12-03 10:54 ` [PATCH v3 05/12] microvm: make pcie irq base " Gerd Hoffmann
2020-12-03 13:27   ` Sergio Lopez
2020-12-03 10:54 ` [PATCH v3 06/12] microvm: drop microvm_gsi_handler() Gerd Hoffmann
2020-12-03 13:27   ` Sergio Lopez
2020-12-03 10:54 ` [PATCH v3 07/12] microvm: add second ioapic Gerd Hoffmann
2020-12-03 15:12   ` Sergio Lopez
2020-12-03 10:54 ` [PATCH v3 08/12] tests/acpi: allow updates for expected data files Gerd Hoffmann
2020-12-03 10:54 ` [PATCH v3 09/12] tests/acpi: add data files for ioapic2 test variant Gerd Hoffmann
2020-12-03 10:54 ` Gerd Hoffmann [this message]
2020-12-03 10:54 ` [PATCH v3 11/12] tests/acpi: update expected data files Gerd Hoffmann
2020-12-03 10:54 ` [PATCH v3 12/12] tests/acpi: disallow updates for " Gerd Hoffmann
2020-12-03 11:01 ` [PATCH v3 00/12] microvm: add second ioapic Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201203105423.10431-11-kraxel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=rth@twiddle.net \
    --cc=slp@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).