[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 32/33] tests: acpi: add CPU hotplug testcase
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH 32/33] tests: acpi: add CPU hotplug testcase |
Date: |
Tue, 17 May 2016 16:43:24 +0200 |
Test with:
-smp 2,cores=3,sockets=2,maxcpus=6 \
-numa node,cpus=0-2 -numa node,cpus=3-5
to capture sparse APIC ID values that default
AMD CPU has in above configuration and SRAT table
genarated with NUMA option on.
Signed-off-by: Igor Mammedov <address@hidden>
---
to keep series bisectable include new template files for
SRAT tables so tha test won't fail with:
ERROR:tests/bios-tables-test.c:498:load_expected_aml: assertion failed:
(exp_sdt.aml_file)
---
tests/acpi-test-data/pc/SRAT.cphp | Bin 0 -> 304 bytes
tests/acpi-test-data/q35/SRAT.cphp | Bin 0 -> 304 bytes
tests/bios-tables-test.c | 30 ++++++++++++++++++++++++++++++
3 files changed, 30 insertions(+)
create mode 100644 tests/acpi-test-data/pc/SRAT.cphp
create mode 100644 tests/acpi-test-data/q35/SRAT.cphp
diff --git a/tests/acpi-test-data/pc/SRAT.cphp
b/tests/acpi-test-data/pc/SRAT.cphp
new file mode 100644
index
0000000000000000000000000000000000000000..ff2137642f488ec70b85207ed6c20e7351d61e98
GIT binary patch
literal 304
zcmWFzattwGWME)4bMklg2v%^42yhMtiUEZfKx_~V!f+sf!DmF1XF}yOvY_!<(fDl0
pd`1npO;83GTmZW|po75R12aq^syaB21u74tQT&BzFU&Ml8UVWm2>}2A
literal 0
HcmV?d00001
diff --git a/tests/acpi-test-data/q35/SRAT.cphp
b/tests/acpi-test-data/q35/SRAT.cphp
new file mode 100644
index
0000000000000000000000000000000000000000..ff2137642f488ec70b85207ed6c20e7351d61e98
GIT binary patch
literal 304
zcmWFzattwGWME)4bMklg2v%^42yhMtiUEZfKx_~V!f+sf!DmF1XF}yOvY_!<(fDl0
pd`1npO;83GTmZW|po75R12aq^syaB21u74tQT&BzFU&Ml8UVWm2>}2A
literal 0
HcmV?d00001
diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c
index 9acf9ba..b74ec7f 100644
--- a/tests/bios-tables-test.c
+++ b/tests/bios-tables-test.c
@@ -789,6 +789,34 @@ static void test_acpi_q35_tcg_bridge(void)
free_test_data(&data);
}
+static void test_acpi_piix4_tcg_cphp(void)
+{
+ test_data data;
+
+ memset(&data, 0, sizeof(data));
+ data.machine = MACHINE_PC;
+ data.variant = ".cphp";
+ test_acpi_one("-machine accel=tcg"
+ " -smp 2,cores=3,sockets=2,maxcpus=6"
+ " -numa node,cpus=0-2 -numa node,cpus=3-5",
+ &data);
+ free_test_data(&data);
+}
+
+static void test_acpi_q35_tcg_cphp(void)
+{
+ test_data data;
+
+ memset(&data, 0, sizeof(data));
+ data.machine = MACHINE_Q35;
+ data.variant = ".cphp";
+ test_acpi_one("-machine q35,accel=tcg"
+ " -smp 2,cores=3,sockets=2,maxcpus=6"
+ " -numa node,cpus=0-2 -numa node,cpus=3-5",
+ &data);
+ free_test_data(&data);
+}
+
int main(int argc, char *argv[])
{
const char *arch = qtest_get_arch();
@@ -805,6 +833,8 @@ int main(int argc, char *argv[])
qtest_add_func("acpi/piix4/tcg/bridge", test_acpi_piix4_tcg_bridge);
qtest_add_func("acpi/q35/tcg", test_acpi_q35_tcg);
qtest_add_func("acpi/q35/tcg/bridge", test_acpi_q35_tcg_bridge);
+ qtest_add_func("acpi/piix4/tcg/cpuhp", test_acpi_piix4_tcg_cphp);
+ qtest_add_func("acpi/q35/tcg/cpuhp", test_acpi_q35_tcg_cphp);
}
ret = g_test_run();
boot_sector_cleanup(disk);
--
1.8.3.1
- [Qemu-devel] [PATCH 20/33] pc: q35: initialize new CPU hotplug hw, (continued)
[Qemu-devel] [PATCH 31/33] tests: acpi: update expected tables with new cpu-hotplug methods enabled by default, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 19/33] pc: piix4/ich9: add 'cpu-hotplug-legacy' property, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 23/33] acpi: add CPU devices AML to DSDT, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 32/33] tests: acpi: add CPU hotplug testcase,
Igor Mammedov <=
[Qemu-devel] [PATCH 29/33] acpi: cpuhp: provide cpu._PXM method if running in numa mode, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 33/33] tests: acpi: add DSDT/MADT expected tables for cpu-hotplug case, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 27/33] pc: numa: replace node_cpu indexing by apic_id with possible_cpus index, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 28/33] pc: set X86CPU.node property if QEMU starts with numa enabled, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 30/33] acpi: cpuhp: add cpu._OST handling, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 26/33] target-i386: add X86CPU.node property, Igor Mammedov, 2016/05/17