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8E_HehPo(n
z*c=8r@^x*fBWGCR108u=80yF!7V1Dp{;rd5a;J^m6_2)k3ky#0c(@^dsK+C2-@?)n
zdVJ|Y{!p(Fk3}H#8J|DYFA|UGEcClRf2j9ojEO1qc$n;4+K8TJjVU(N)4cT&J<S}G
oWvI^(KcZhm9=Cm{-z6UP>KVEx;s0~=M+<Eso^@+%K<Hfh4+O78OaK4?
literal 0
HcmV?d00001
@@ -781,6 +781,17 @@ static void test_acpi_q35_tcg_bridge(void)
free_test_data(&data);
}
+static void test_acpi_piix4_tcg_cpuhp_legacy(void)
+{
+ test_data data;
+
+ memset(&data, 0, sizeof(data));
+ data.machine = MACHINE_PC;
+ data.variant = ".cphp_legacy";
+ test_acpi_one("-machine pc-i440fx-2.6,accel=tcg", &data);
+ free_test_data(&data);
+}
+
int main(int argc, char *argv[])
{
const char *arch = qtest_get_arch();
@@ -797,6 +808,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/legacy",
+ test_acpi_piix4_tcg_cpuhp_legacy);
}
ret = g_test_run();
boot_sector_cleanup(disk);
it should help to notice regression if legacy CPU hotplug unintentionally disappears in old machine types. Signed-off-by: Igor Mammedov <imammedo@redhat.com> --- tests/acpi-test-data/pc/DSDT.cphp_legacy | Bin 0 -> 5502 bytes tests/bios-tables-test.c | 13 +++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/acpi-test-data/pc/DSDT.cphp_legacy