Lines Matching +full:pc +full:- +full:bios
10 * See the COPYING file in the top-level directory.
17 * 2. list any changed files in tests/qtest/bios-tables-test-allowed-diff.h
20 * Contributor or ACPI Maintainer (steps 4-7 need to be redone to resolve conflicts
23 * After 1-3 above tests will pass but ignore differences with the expected files.
24 * You will also notice that tests/qtest/bios-tables-test-allowed-diff.h lists
31 * output. If not - disassemble them yourself in any way you like.
32 * Look at the differences - make sure they make sense and match what the
38 * $(SRC_PATH)/tests/data/acpi/rebuild-expected-aml.sh
48 * tests/qtest/bios-tables-test-allowed-diff.h is empty - this will ensure
52 * - patch 1: list changed files in tests/qtest/bios-tables-test-allowed-diff.h.
53 * - patches 2 - n: real changes, may contain multiple patches.
54 * - patch n + 1: update golden master binaries and empty
55 * tests/qtest/bios-tables-test-allowed-diff.h
62 #include "acpi-utils.h"
63 #include "boot-sector.h"
64 #include "tpm-emu.h"
68 #define MACHINE_PC "pc"
75 #define OEM_TEST_ARGS "-machine x-oem-id=" OEM_ID ",x-oem-table-id=" \
107 static char disk[] = "tests/acpi-test-disk-XXXXXX";
120 return !memcmp(sdt->aml, signature, 4); in compare_signature()
125 g_free(table->aml); in cleanup_table_descriptor()
126 if (table->aml_file && in cleanup_table_descriptor()
127 !table->tmp_files_retain && in cleanup_table_descriptor()
128 g_strstr_len(table->aml_file, -1, "aml-")) { in cleanup_table_descriptor()
129 unlink(table->aml_file); in cleanup_table_descriptor()
131 g_free(table->aml_file); in cleanup_table_descriptor()
132 g_free(table->asl); in cleanup_table_descriptor()
133 if (table->asl_file && in cleanup_table_descriptor()
134 !table->tmp_files_retain) { in cleanup_table_descriptor()
135 unlink(table->asl_file); in cleanup_table_descriptor()
137 g_free(table->asl_file); in cleanup_table_descriptor()
144 if (!data->tables) { in free_test_data()
147 for (i = 0; i < data->tables->len; ++i) { in free_test_data()
148 cleanup_table_descriptor(&g_array_index(data->tables, AcpiSdtTable, i)); in free_test_data()
151 g_array_free(data->tables, true); in free_test_data()
156 uint8_t *rsdp_table = data->rsdp_table; in test_acpi_rsdp_table()
158 acpi_fetch_rsdp_table(data->qts, data->rsdp_addr, rsdp_table); in test_acpi_rsdp_table()
183 if (data->rsdp_table[15 /* Revision offset */] != 0) { in test_acpi_rxsdt_table()
189 acpi_fetch_table(data->qts, &rsdt.aml, &rsdt.aml_len, in test_acpi_rxsdt_table()
190 &data->rsdp_table[addr_off], entry_size, sig, true); in test_acpi_rxsdt_table()
196 acpi_fetch_table(data->qts, &ssdt_table.aml, &ssdt_table.aml_len, ent, in test_acpi_rxsdt_table()
199 g_array_append_val(data->tables, ssdt_table); in test_acpi_rxsdt_table()
207 AcpiSdtTable table = g_array_index(data->tables, typeof(table), 0); in test_acpi_fadt_table()
220 acpi_fetch_table(data->qts, &table.aml, &table.aml_len, in test_acpi_fadt_table()
222 g_array_append_val(data->tables, table); in test_acpi_fadt_table()
231 acpi_fetch_table(data->qts, &table.aml, &table.aml_len, in test_acpi_fadt_table()
233 g_array_append_val(data->tables, table); in test_acpi_fadt_table()
244 fadt_aml[9 /* Checksum */] -= acpi_calc_checksum(fadt_aml, fadt_len); in test_acpi_fadt_table()
258 for (i = 0; i < data->tables->len; ++i) { in dump_aml_files()
259 const char *ext = data->variant ? data->variant : ""; in dump_aml_files()
260 sdt = &g_array_index(data->tables, AcpiSdtTable, i); in dump_aml_files()
262 g_assert(sdt->aml); in dump_aml_files()
263 g_assert(exp_sdt->aml); in dump_aml_files()
267 data->arch, data->machine, in dump_aml_files()
268 sdt->aml, ext); in dump_aml_files()
271 sdt->aml_len == exp_sdt->aml_len && in dump_aml_files()
272 !memcmp(sdt->aml, exp_sdt->aml, sdt->aml_len)) { in dump_aml_files()
284 fd = g_file_open_tmp("aml-XXXXXX", &sdt->aml_file, &error); in dump_aml_files()
288 ret = qemu_write_full(fd, sdt->aml, sdt->aml_len); in dump_aml_files()
289 g_assert(ret == sdt->aml_len); in dump_aml_files()
302 fd = g_file_open_tmp("asl-XXXXXX.dsl", &sdt->asl_file, &error); in create_tmp_asl()
321 g_string_append_printf(command_line, " -p %s ", sdt->asl_file); in load_asl()
324 for (i = 0; i < sdts->len; ++i) { in load_asl()
328 g_string_append_printf(command_line, "-e %s ", temp->aml_file); in load_asl()
332 g_string_append_printf(command_line, "-d %s", sdt->aml_file); in load_asl()
335 ret = g_spawn_command_line_sync(command_line->str, &out, &out_err, NULL, &error); in load_asl()
338 ret = g_file_get_contents(sdt->asl_file, &sdt->asl, in load_asl()
339 &sdt->asl_len, &error); in load_asl()
342 ret = (sdt->asl_len > 0); in load_asl()
362 comment = g_strstr_len(asl->str, asl->len, COMMENT_END); in normalize_asl()
368 asl = g_string_erase(asl, 0, comment - asl->str); in normalize_asl()
372 if (g_str_has_prefix(asl->str, DEF_BLOCK)) { in normalize_asl()
373 block_name = g_strstr_len(asl->str, asl->len, BLOCK_NAME_END); in normalize_asl()
376 block_name + sizeof(BLOCK_NAME_END) - asl->str); in normalize_asl()
394 for (i = 0; i < data->tables->len; ++i) { in load_expected_aml()
397 const char *ext = data->variant ? data->variant : ""; in load_expected_aml()
399 sdt = &g_array_index(data->tables, AcpiSdtTable, i); in load_expected_aml()
404 aml_file = g_strdup_printf("%s/%s/%s/%.4s%s", data_dir, data->arch, in load_expected_aml()
405 data->machine, sdt->aml, ext); in load_expected_aml()
441 #include "bios-tables-test-allowed-diff.h" in test_acpi_find_diff_allowed()
447 if (!g_strcmp0(sdt->aml_file, *f)) { in test_acpi_find_diff_allowed()
454 /* test the list of tables in @data->tables against reference tables */
464 for (i = 0; i < data->tables->len; ++i) { in test_acpi_asl()
467 sdt = &g_array_index(data->tables, AcpiSdtTable, i); in test_acpi_asl()
470 if (sdt->aml_len == exp_sdt->aml_len && in test_acpi_asl()
471 !memcmp(sdt->aml, exp_sdt->aml, sdt->aml_len)) { in test_acpi_asl()
477 "acpi-test: Warning! %.4s binary file mismatch. " in test_acpi_asl()
479 "See source file tests/qtest/bios-tables-test.c " in test_acpi_asl()
481 exp_sdt->aml, sdt->aml_file, exp_sdt->aml_file); in test_acpi_asl()
494 err = load_asl(data->tables, sdt); in test_acpi_asl()
495 asl = normalize_asl(sdt->asl); in test_acpi_asl()
498 * If expected file is empty - it's likely that it was a stub just in test_acpi_asl()
501 if (exp_sdt->aml_len) { in test_acpi_asl()
503 exp_asl = normalize_asl(exp_sdt->asl); in test_acpi_asl()
510 g_assert(!err || exp_err || !exp_sdt->aml_len); in test_acpi_asl()
512 if (g_strcmp0(asl->str, exp_asl->str)) { in test_acpi_asl()
513 sdt->tmp_files_retain = true; in test_acpi_asl()
518 exp_sdt->tmp_files_retain = true; in test_acpi_asl()
520 "acpi-test: Warning! %.4s mismatch. " in test_acpi_asl()
522 exp_sdt->aml, sdt->asl_file, sdt->aml_file, in test_acpi_asl()
523 exp_sdt->asl_file, exp_sdt->aml_file); in test_acpi_asl()
527 const char *diff_cmd = diff_env ? diff_env : "diff -U 16"; in test_acpi_asl()
529 exp_sdt->asl_file, sdt->asl_file); in test_acpi_asl()
550 " rebuild QEMU from scratch and re-run tests with V=1" in test_acpi_asl()
560 struct smbios_21_entry_point *ep_table = &data->smbios_ep_table.ep21; in smbios_ep2_table_ok()
562 qtest_memread(data->qts, addr, ep_table, sizeof(*ep_table)); in smbios_ep2_table_ok()
563 if (memcmp(ep_table->anchor_string, "_SM_", 4)) { in smbios_ep2_table_ok()
566 if (memcmp(ep_table->intermediate_anchor_string, "_DMI_", 5)) { in smbios_ep2_table_ok()
569 if (ep_table->structure_table_length == 0) { in smbios_ep2_table_ok()
572 if (ep_table->number_of_structures == 0) { in smbios_ep2_table_ok()
577 sizeof *ep_table - 0x10)) { in smbios_ep2_table_ok()
585 struct smbios_30_entry_point *ep_table = &data->smbios_ep_table.ep30; in smbios_ep3_table_ok()
587 qtest_memread(data->qts, addr, ep_table, sizeof(*ep_table)); in smbios_ep3_table_ok()
588 if (memcmp(ep_table->anchor_string, "_SM3_", 5)) { in smbios_ep3_table_ok()
608 for (i = 0; i < sizeof sig - 1; ++i) { in test_smbios_entry_point()
609 sig[i] = qtest_readb(data->qts, off + i); in test_smbios_entry_point()
615 data->smbios_ep_addr[SMBIOS_ENTRY_POINT_TYPE_32] = off; in test_smbios_entry_point()
619 for (i = 0; i < sizeof sig3 - 1; ++i) { in test_smbios_entry_point()
620 sig3[i] = qtest_readb(data->qts, off + i); in test_smbios_entry_point()
625 data->smbios_ep_addr[SMBIOS_ENTRY_POINT_TYPE_64] = off; in test_smbios_entry_point()
626 /* found 64-bit entry point, no need to look for 32-bit one */ in test_smbios_entry_point()
633 g_assert_true(data->smbios_ep_addr[SMBIOS_ENTRY_POINT_TYPE_32] || in test_smbios_entry_point()
634 data->smbios_ep_addr[SMBIOS_ENTRY_POINT_TYPE_64]); in test_smbios_entry_point()
636 return data->smbios_ep_addr[SMBIOS_ENTRY_POINT_TYPE_64] ? in test_smbios_entry_point()
659 uint8_t core_count, expected_core_count = data->smbios_core_count; in smbios_cpu_test()
660 uint8_t thread_count, expected_thread_count = data->smbios_thread_count; in smbios_cpu_test()
662 uint16_t core_count2, expected_core_count2 = data->smbios_core_count2; in smbios_cpu_test()
663 uint16_t thread_count2, expected_thread_count2 = data->smbios_thread_count2; in smbios_cpu_test()
670 expected_speed[0] = data->smbios_cpu_max_speed ? : 2000; in smbios_cpu_test()
671 expected_speed[1] = data->smbios_cpu_curr_speed ? : 2000; in smbios_cpu_test()
674 speed = qtest_readw(data->qts, addr + offset[i]); in smbios_cpu_test()
678 core_count = qtest_readb(data->qts, in smbios_cpu_test()
685 thread_count = qtest_readb(data->qts, in smbios_cpu_test()
693 core_count2 = qtest_readw(data->qts, in smbios_cpu_test()
701 thread_count2 = qtest_readw(data->qts, in smbios_cpu_test()
714 int expected_type4_count = data->type4_count; in smbios_type4_count_test()
725 SmbiosEntryPoint *ep_table = &data->smbios_ep_table; in test_smbios_structs()
731 addr = le32_to_cpu(ep_table->ep21.structure_table_address); in test_smbios_structs()
733 addr = le64_to_cpu(ep_table->ep30.structure_table_address); in test_smbios_structs()
740 type = qtest_readb(data->qts, addr); in test_smbios_structs()
742 len = qtest_readb(data->qts, addr + 1); in test_smbios_structs()
744 /* single-instance structs must not have been encountered before */ in test_smbios_structs()
759 crt = qtest_readb(data->qts, addr + len); in test_smbios_structs()
766 g_assert_cmpuint(max_len, <=, ep_table->ep21.max_structure_size); in test_smbios_structs()
777 ++i < le16_to_cpu(ep_table->ep21.number_of_structures) : in test_smbios_structs()
785 g_assert_cmpuint(le16_to_cpu(ep_table->ep21.structure_table_length), ==, in test_smbios_structs()
786 addr - le32_to_cpu(ep_table->ep21.structure_table_address)); in test_smbios_structs()
788 g_assert_cmpuint(le16_to_cpu(ep_table->ep21.max_structure_size), ==, in test_smbios_structs()
793 for (i = 0; i < data->required_struct_types_len; i++) { in test_smbios_structs()
794 g_assert(test_bit(data->required_struct_types[i], struct_bitmap)); in test_smbios_structs()
802 if (data->uefi_fl1 && data->uefi_fl2) { /* use UEFI */ in test_acpi_load_tables()
803 g_assert(data->scan_len); in test_acpi_load_tables()
804 data->rsdp_addr = acpi_find_rsdp_address_uefi(data->qts, in test_acpi_load_tables()
805 data->ram_start, data->scan_len); in test_acpi_load_tables()
807 boot_sector_test(data->qts); in test_acpi_load_tables()
808 data->rsdp_addr = acpi_find_rsdp_address(data->qts); in test_acpi_load_tables()
809 g_assert_cmphex(data->rsdp_addr, <, 0x100000); in test_acpi_load_tables()
812 data->tables = g_array_new(false, true, sizeof(AcpiSdtTable)); in test_acpi_load_tables()
822 if (data->uefi_fl1 && data->uefi_fl2) { /* use UEFI */ in test_acpi_create_args()
824 * TODO: convert '-drive if=pflash' to new syntax (see e33763be7cd3) in test_acpi_create_args()
827 if (data->cd) { in test_acpi_create_args()
828 args = g_strdup_printf("-machine %s%s %s -accel tcg " in test_acpi_create_args()
829 "-nodefaults -nographic " in test_acpi_create_args()
830 "-drive if=pflash,format=raw,file=%s,readonly=on " in test_acpi_create_args()
831 "-drive if=pflash,format=raw,file=%s,snapshot=on -cdrom %s %s", in test_acpi_create_args()
832 data->machine, data->machine_param ?: "", in test_acpi_create_args()
833 data->tcg_only ? "" : "-accel kvm", in test_acpi_create_args()
834 data->uefi_fl1, data->uefi_fl2, data->cd, params ? params : ""); in test_acpi_create_args()
836 args = g_strdup_printf("-machine %s%s %s -accel tcg " in test_acpi_create_args()
837 "-nodefaults -nographic " in test_acpi_create_args()
838 "-drive if=pflash,format=raw,file=%s,readonly=on " in test_acpi_create_args()
839 "-drive if=pflash,format=raw,file=%s,snapshot=on %s", in test_acpi_create_args()
840 data->machine, data->machine_param ?: "", in test_acpi_create_args()
841 data->tcg_only ? "" : "-accel kvm", in test_acpi_create_args()
842 data->uefi_fl1, data->uefi_fl2, params ? params : ""); in test_acpi_create_args()
845 args = g_strdup_printf("-machine %s%s %s -accel tcg " in test_acpi_create_args()
846 "-net none %s " in test_acpi_create_args()
847 "-drive id=hd0,if=none,file=%s,format=raw " in test_acpi_create_args()
848 "-device %s,drive=hd0 ", in test_acpi_create_args()
849 data->machine, data->machine_param ?: "", in test_acpi_create_args()
850 data->tcg_only ? "" : "-accel kvm", in test_acpi_create_args()
852 data->blkdev ?: "ide-hd"); in test_acpi_create_args()
860 data->qts = qtest_init(args); in test_vm_prepare()
868 * Bug on uefi-test-tools to provide entry point: in process_smbios_tables_noexit()
871 if (!(data->uefi_fl1 && data->uefi_fl2)) { in process_smbios_tables_noexit()
880 boot_sector_test(data->qts); in test_smbios()
882 qtest_quit(data->qts); in test_smbios()
901 qtest_quit(data->qts); in process_acpi_tables()
918 /* Supplying -machine accel argument overrides the default (qtest). in test_acpi_piix4_tcg()
938 test_vm_prepare("-S" in test_acpi_piix4_tcg_bridge()
939 " -device pci-bridge,chassis_nr=1" in test_acpi_piix4_tcg_bridge()
940 " -device pci-bridge,bus=pci.1,addr=1.0,chassis_nr=2" in test_acpi_piix4_tcg_bridge()
941 " -device pci-testdev,bus=pci.0,addr=5.0" in test_acpi_piix4_tcg_bridge()
942 " -device pci-testdev,bus=pci.1", &data); in test_acpi_piix4_tcg_bridge()
945 qtest_qmp_device_add(data.qts, "pci-bridge", "hpbr", in test_acpi_piix4_tcg_bridge()
947 qtest_qmp_device_add(data.qts, "pci-bridge", "hpbr_multifunc", in test_acpi_piix4_tcg_bridge()
949 qtest_qmp_device_add(data.qts, "pci-bridge", "hpbrhost", in test_acpi_piix4_tcg_bridge()
951 qtest_qmp_device_add(data.qts, "pci-testdev", "d1", "{'bus': 'pci.0' }"); in test_acpi_piix4_tcg_bridge()
952 qtest_qmp_device_add(data.qts, "pci-testdev", "d2", "{'bus': 'pci.1' }"); in test_acpi_piix4_tcg_bridge()
953 qtest_qmp_device_add(data.qts, "pci-testdev", "d3", "{'bus': 'hpbr', " in test_acpi_piix4_tcg_bridge()
976 test_acpi_one("-global PIIX4_PM.acpi-root-pci-hotplug=off " in test_acpi_piix4_no_root_hotplug()
977 "-device pci-bridge,chassis_nr=1 " in test_acpi_piix4_no_root_hotplug()
978 "-device pci-bridge,bus=pci.1,addr=1.0,chassis_nr=2 " in test_acpi_piix4_no_root_hotplug()
979 "-device pci-testdev,bus=pci.0 " in test_acpi_piix4_no_root_hotplug()
980 "-device pci-testdev,bus=pci.1", &data); in test_acpi_piix4_no_root_hotplug()
993 test_acpi_one("-global PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off " in test_acpi_piix4_no_bridge_hotplug()
994 "-device pci-bridge,chassis_nr=1 " in test_acpi_piix4_no_bridge_hotplug()
995 "-device pci-bridge,bus=pci.1,addr=1.0,chassis_nr=2 " in test_acpi_piix4_no_bridge_hotplug()
996 "-device pci-testdev,bus=pci.0 " in test_acpi_piix4_no_bridge_hotplug()
997 "-device pci-testdev,bus=pci.1,addr=2.0", &data); in test_acpi_piix4_no_bridge_hotplug()
1010 test_acpi_one("-global PIIX4_PM.acpi-root-pci-hotplug=off " in test_acpi_piix4_no_acpi_pci_hotplug()
1011 "-global PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off " in test_acpi_piix4_no_acpi_pci_hotplug()
1012 "-device pci-bridge,chassis_nr=1,addr=4.0 " in test_acpi_piix4_no_acpi_pci_hotplug()
1013 "-device pci-testdev,bus=pci.0,addr=5.0 " in test_acpi_piix4_no_acpi_pci_hotplug()
1014 "-device pci-testdev,bus=pci.0,addr=6.0,acpi-index=101 " in test_acpi_piix4_no_acpi_pci_hotplug()
1015 "-device pci-testdev,bus=pci.1,addr=1.0 " in test_acpi_piix4_no_acpi_pci_hotplug()
1016 "-device pci-testdev,bus=pci.1,addr=2.0,acpi-index=201 " in test_acpi_piix4_no_acpi_pci_hotplug()
1017 "-device pci-bridge,id=nhpbr,chassis_nr=2,shpc=off,addr=7.0 " in test_acpi_piix4_no_acpi_pci_hotplug()
1018 "-device pci-testdev,bus=nhpbr,addr=1.0,acpi-index=301 " in test_acpi_piix4_no_acpi_pci_hotplug()
1036 test_acpi_one("-smbios type=4,max-speed=3000,current-speed=2600", &data); in test_acpi_q35_tcg()
1045 .variant = ".type4-count", in test_acpi_q35_kvm_type4_count()
1051 test_acpi_one("-machine smbios-entry-point-type=64 " in test_acpi_q35_kvm_type4_count()
1052 "-smp cpus=100,maxcpus=120,sockets=5," in test_acpi_q35_kvm_type4_count()
1062 .variant = ".core-count", in test_acpi_q35_kvm_core_count()
1069 test_acpi_one("-machine smbios-entry-point-type=64 " in test_acpi_q35_kvm_core_count()
1070 "-smp 54,sockets=2,dies=3,cores=3,threads=3", in test_acpi_q35_kvm_core_count()
1080 .variant = ".core-count2", in test_acpi_q35_kvm_core_count2()
1087 test_acpi_one("-machine smbios-entry-point-type=64 " in test_acpi_q35_kvm_core_count2()
1088 "-smp 260,dies=2,cores=130,threads=1", in test_acpi_q35_kvm_core_count2()
1098 .variant = ".thread-count", in test_acpi_q35_kvm_thread_count()
1105 test_acpi_one("-machine smbios-entry-point-type=64 " in test_acpi_q35_kvm_thread_count()
1106 "-smp cpus=15,maxcpus=54,sockets=2,dies=3,cores=3,threads=3", in test_acpi_q35_kvm_thread_count()
1116 .variant = ".thread-count2", in test_acpi_q35_kvm_thread_count2()
1123 test_acpi_one("-machine smbios-entry-point-type=64 " in test_acpi_q35_kvm_thread_count2()
1124 "-smp cpus=210,maxcpus=260,dies=2,cores=65,threads=2", in test_acpi_q35_kvm_thread_count2()
1138 test_acpi_one("-device pci-bridge,chassis_nr=1,id=br1" in test_acpi_q35_tcg_bridge()
1139 " -device pci-testdev,bus=pcie.0" in test_acpi_q35_tcg_bridge()
1140 " -device pci-testdev,bus=br1", &data); in test_acpi_q35_tcg_bridge()
1153 test_acpi_one("-global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off" in test_acpi_q35_tcg_no_acpi_hotplug()
1154 " -device pci-testdev,bus=pcie.0,acpi-index=101,addr=3.0" in test_acpi_q35_tcg_no_acpi_hotplug()
1155 " -device pci-bridge,chassis_nr=1,id=shpcbr,addr=4.0" in test_acpi_q35_tcg_no_acpi_hotplug()
1156 " -device pci-testdev,bus=shpcbr,addr=1.0,acpi-index=201" in test_acpi_q35_tcg_no_acpi_hotplug()
1157 " -device pci-bridge,chassis_nr=2,shpc=off,id=noshpcbr,addr=5.0" in test_acpi_q35_tcg_no_acpi_hotplug()
1158 " -device pci-testdev,bus=noshpcbr,addr=1.0,acpi-index=301" in test_acpi_q35_tcg_no_acpi_hotplug()
1159 " -device pcie-root-port,id=hprp,port=0x0,chassis=1,addr=6.0" in test_acpi_q35_tcg_no_acpi_hotplug()
1160 " -device pci-testdev,bus=hprp,acpi-index=401" in test_acpi_q35_tcg_no_acpi_hotplug()
1161 " -device pcie-root-port,id=nohprp,port=0x0,chassis=2,hotplug=off," in test_acpi_q35_tcg_no_acpi_hotplug()
1163 " -device pci-testdev,bus=nohprp,acpi-index=501" in test_acpi_q35_tcg_no_acpi_hotplug()
1164 " -device pcie-root-port,id=nohprpint,port=0x0,chassis=3,hotplug=off," in test_acpi_q35_tcg_no_acpi_hotplug()
1166 " -device pci-testdev,bus=nohprpint,acpi-index=601,addr=0.1" in test_acpi_q35_tcg_no_acpi_hotplug()
1167 " -device pcie-root-port,id=hprp2,port=0x0,chassis=4,bus=nohprpint," in test_acpi_q35_tcg_no_acpi_hotplug()
1169 " -device pci-testdev,bus=hprp2,acpi-index=602" in test_acpi_q35_tcg_no_acpi_hotplug()
1179 .variant = ".multi-bridge", in test_acpi_q35_multif_bridge()
1181 test_vm_prepare("-S" in test_acpi_q35_multif_bridge()
1182 " -device virtio-balloon,id=balloon0,addr=0x4.0x2" in test_acpi_q35_multif_bridge()
1183 " -device pcie-root-port,id=rp0,multifunction=on," in test_acpi_q35_multif_bridge()
1185 " -device pcie-root-port,id=rp1,port=0x1,chassis=2,addr=0x3.0x1" in test_acpi_q35_multif_bridge()
1186 " -device pcie-root-port,id=rp2,port=0x0,chassis=3,bus=rp1,addr=0.0" in test_acpi_q35_multif_bridge()
1187 " -device pci-bridge,bus=rp2,chassis_nr=4,id=br1" in test_acpi_q35_multif_bridge()
1188 " -device pcie-root-port,id=rphptgt1,port=0x0,chassis=5,addr=2.1" in test_acpi_q35_multif_bridge()
1189 " -device pcie-root-port,id=rphptgt2,port=0x0,chassis=6,addr=2.2" in test_acpi_q35_multif_bridge()
1190 " -device pcie-root-port,id=rphptgt3,port=0x0,chassis=7,addr=2.3" in test_acpi_q35_multif_bridge()
1191 " -device pci-testdev,bus=pcie.0,addr=2.4" in test_acpi_q35_multif_bridge()
1192 " -device pci-testdev,bus=pcie.0,addr=2.5,acpi-index=102" in test_acpi_q35_multif_bridge()
1193 " -device pci-testdev,bus=pcie.0,addr=5.0" in test_acpi_q35_multif_bridge()
1194 " -device pci-testdev,bus=pcie.0,addr=0xf.0,acpi-index=101" in test_acpi_q35_multif_bridge()
1195 " -device pci-testdev,bus=rp0,addr=0.0" in test_acpi_q35_multif_bridge()
1196 " -device pci-testdev,bus=br1" in test_acpi_q35_multif_bridge()
1197 " -device pcie-root-port,id=rpnohp,chassis=8,addr=0xA.0,hotplug=off" in test_acpi_q35_multif_bridge()
1198 " -device pcie-root-port,id=rp3,chassis=9,bus=rpnohp" in test_acpi_q35_multif_bridge()
1202 qtest_qmp_device_add(data.qts, "pci-bridge", "hpbr1", in test_acpi_q35_multif_bridge()
1204 qtest_qmp_device_add(data.qts, "pci-bridge", "hpbr2-multiif", in test_acpi_q35_multif_bridge()
1206 qtest_qmp_device_add(data.qts, "pcie-pci-bridge", "hpbr3", in test_acpi_q35_multif_bridge()
1208 qtest_qmp_device_add(data.qts, "pcie-root-port", "hprp", in test_acpi_q35_multif_bridge()
1210 qtest_qmp_device_add(data.qts, "pci-testdev", "hpnic", in test_acpi_q35_multif_bridge()
1235 test_acpi_one("-m 128M,slots=1,maxmem=2G " in test_acpi_q35_tcg_mmio64()
1236 "-cpu Opteron_G1 " in test_acpi_q35_tcg_mmio64()
1237 "-object memory-backend-ram,id=ram0,size=128M " in test_acpi_q35_tcg_mmio64()
1238 "-numa node,memdev=ram0 " in test_acpi_q35_tcg_mmio64()
1239 "-device pci-testdev,membar=2G", in test_acpi_q35_tcg_mmio64()
1251 test_acpi_one("-smp 2,cores=3,sockets=2,maxcpus=6" in test_acpi_piix4_tcg_cphp()
1252 " -object memory-backend-ram,id=ram0,size=64M" in test_acpi_piix4_tcg_cphp()
1253 " -object memory-backend-ram,id=ram1,size=64M" in test_acpi_piix4_tcg_cphp()
1254 " -numa node,memdev=ram0 -numa node,memdev=ram1" in test_acpi_piix4_tcg_cphp()
1255 " -numa dist,src=0,dst=1,val=21", in test_acpi_piix4_tcg_cphp()
1267 test_acpi_one(" -smp 2,cores=3,sockets=2,maxcpus=6" in test_acpi_q35_tcg_cphp()
1268 " -object memory-backend-ram,id=ram0,size=64M" in test_acpi_q35_tcg_cphp()
1269 " -object memory-backend-ram,id=ram1,size=64M" in test_acpi_q35_tcg_cphp()
1270 " -numa node,memdev=ram0 -numa node,memdev=ram1" in test_acpi_q35_tcg_cphp()
1271 " -numa dist,src=0,dst=1,val=21", in test_acpi_q35_tcg_cphp()
1289 test_acpi_one("-device ipmi-bmc-sim,id=bmc0" in test_acpi_q35_tcg_ipmi()
1290 " -device isa-ipmi-bt,bmc=bmc0", in test_acpi_q35_tcg_ipmi()
1304 test_acpi_one("-device ipmi-bmc-sim,id=bmc0" in test_acpi_q35_tcg_smbus_ipmi()
1305 " -device smbus-ipmi,bmc=bmc0", in test_acpi_q35_tcg_smbus_ipmi()
1314 /* Supplying -machine accel argument overrides the default (qtest). in test_acpi_piix4_tcg_ipmi()
1322 test_acpi_one("-device ipmi-bmc-sim,id=bmc0" in test_acpi_piix4_tcg_ipmi()
1323 " -device isa-ipmi-kcs,irq=0,bmc=bmc0", in test_acpi_piix4_tcg_ipmi()
1335 test_acpi_one(" -m 128,slots=3,maxmem=1G" in test_acpi_q35_tcg_memhp()
1336 " -object memory-backend-ram,id=ram0,size=64M" in test_acpi_q35_tcg_memhp()
1337 " -object memory-backend-ram,id=ram1,size=64M" in test_acpi_q35_tcg_memhp()
1338 " -numa node,memdev=ram0 -numa node,memdev=ram1" in test_acpi_q35_tcg_memhp()
1339 " -numa dist,src=0,dst=1,val=21", in test_acpi_q35_tcg_memhp()
1351 test_acpi_one(" -m 128,slots=3,maxmem=1G" in test_acpi_piix4_tcg_memhp()
1352 " -object memory-backend-ram,id=ram0,size=64M" in test_acpi_piix4_tcg_memhp()
1353 " -object memory-backend-ram,id=ram1,size=64M" in test_acpi_piix4_tcg_memhp()
1354 " -numa node,memdev=ram0 -numa node,memdev=ram1" in test_acpi_piix4_tcg_memhp()
1355 " -numa dist,src=0,dst=1,val=21", in test_acpi_piix4_tcg_memhp()
1367 test_acpi_one("-machine smm=off", &data); in test_acpi_piix4_tcg_nosmm()
1377 data.variant = ".smm-compat"; in test_acpi_piix4_tcg_smm_compat()
1378 test_acpi_one("-global PIIX4_PM.smm-compat=on", &data); in test_acpi_piix4_tcg_smm_compat()
1388 data.variant = ".smm-compat-nosmm"; in test_acpi_piix4_tcg_smm_compat_nosmm()
1389 test_acpi_one("-global PIIX4_PM.smm-compat=on -machine smm=off", &data); in test_acpi_piix4_tcg_smm_compat_nosmm()
1412 test_acpi_one(" -object memory-backend-ram,id=ram0,size=128M" in test_acpi_q35_tcg_numamem()
1413 " -numa node -numa node,memdev=ram0", &data); in test_acpi_q35_tcg_numamem()
1424 test_acpi_one(" -object memory-backend-ram,id=ram0,size=128M" in test_acpi_q35_kvm_xapic()
1425 " -numa node -numa node,memdev=ram0" in test_acpi_q35_kvm_xapic()
1426 " -machine kernel-irqchip=on -smp 1,maxcpus=288", &data); in test_acpi_q35_kvm_xapic()
1437 test_acpi_one("-machine smm=off", &data); in test_acpi_q35_tcg_nosmm()
1447 data.variant = ".smm-compat"; in test_acpi_q35_tcg_smm_compat()
1448 test_acpi_one("-global ICH9-LPC.smm-compat=on", &data); in test_acpi_q35_tcg_smm_compat()
1458 data.variant = ".smm-compat-nosmm"; in test_acpi_q35_tcg_smm_compat_nosmm()
1459 test_acpi_one("-global ICH9-LPC.smm-compat=on -machine smm=off", &data); in test_acpi_q35_tcg_smm_compat_nosmm()
1482 test_acpi_one("-machine kernel-irqchip=split -accel kvm" in test_acpi_q35_kvm_dmar()
1483 " -device intel-iommu,intremap=on,device-iotlb=on", &data); in test_acpi_q35_kvm_dmar()
1495 test_acpi_one(" -device amd-iommu", &data); in test_acpi_q35_tcg_ivrs()
1506 test_acpi_one(" -object memory-backend-ram,id=ram0,size=128M" in test_acpi_piix4_tcg_numamem()
1507 " -numa node -numa node,memdev=ram0", &data); in test_acpi_piix4_tcg_numamem()
1517 gchar *tmp_dir_name = g_strdup_printf("qemu-test_acpi_%s_tcg_%s.XXXXXX", in test_acpi_tcg_tpm()
1531 test.addr->type = SOCKET_ADDRESS_TYPE_UNIX; in test_acpi_tcg_tpm()
1532 test.addr->u.q_unix.path = g_build_filename(tmp_path, "sock", NULL); in test_acpi_tcg_tpm()
1546 " -chardev socket,id=chr,path=%s" in test_acpi_tcg_tpm()
1547 " -tpmdev emulator,id=dev,chardev=chr" in test_acpi_tcg_tpm()
1548 " -device tpm-%s,tpmdev=dev", in test_acpi_tcg_tpm()
1549 test.addr->u.q_unix.path, tpm_if); in test_acpi_tcg_tpm()
1554 g_unlink(test.addr->u.q_unix.path); in test_acpi_tcg_tpm()
1581 test_acpi_one(" -machine nvdimm=on,nvdimm-persistence=cpu" in test_acpi_tcg_dimm_pxm()
1582 " -smp 4,sockets=4" in test_acpi_tcg_dimm_pxm()
1583 " -m 128M,slots=3,maxmem=1G" in test_acpi_tcg_dimm_pxm()
1584 " -object memory-backend-ram,id=ram0,size=32M" in test_acpi_tcg_dimm_pxm()
1585 " -object memory-backend-ram,id=ram1,size=32M" in test_acpi_tcg_dimm_pxm()
1586 " -object memory-backend-ram,id=ram2,size=32M" in test_acpi_tcg_dimm_pxm()
1587 " -object memory-backend-ram,id=ram3,size=32M" in test_acpi_tcg_dimm_pxm()
1588 " -numa node,memdev=ram0,nodeid=0" in test_acpi_tcg_dimm_pxm()
1589 " -numa node,memdev=ram1,nodeid=1" in test_acpi_tcg_dimm_pxm()
1590 " -numa node,memdev=ram2,nodeid=2" in test_acpi_tcg_dimm_pxm()
1591 " -numa node,memdev=ram3,nodeid=3" in test_acpi_tcg_dimm_pxm()
1592 " -numa cpu,node-id=0,socket-id=0" in test_acpi_tcg_dimm_pxm()
1593 " -numa cpu,node-id=1,socket-id=1" in test_acpi_tcg_dimm_pxm()
1594 " -numa cpu,node-id=2,socket-id=2" in test_acpi_tcg_dimm_pxm()
1595 " -numa cpu,node-id=3,socket-id=3" in test_acpi_tcg_dimm_pxm()
1596 " -object memory-backend-ram,id=ram4,size=128M" in test_acpi_tcg_dimm_pxm()
1597 " -object memory-backend-ram,id=nvm0,size=128M" in test_acpi_tcg_dimm_pxm()
1598 " -device pc-dimm,id=dimm0,memdev=ram4,node=1" in test_acpi_tcg_dimm_pxm()
1599 " -device nvdimm,id=dimm1,memdev=nvm0,node=2", in test_acpi_tcg_dimm_pxm()
1620 .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", in test_acpi_aarch64_virt_tcg_memhp()
1621 .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", in test_acpi_aarch64_virt_tcg_memhp()
1622 .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", in test_acpi_aarch64_virt_tcg_memhp()
1628 test_acpi_one(" -machine nvdimm=on" in test_acpi_aarch64_virt_tcg_memhp()
1629 " -cpu cortex-a57" in test_acpi_aarch64_virt_tcg_memhp()
1630 " -m 256M,slots=3,maxmem=1G" in test_acpi_aarch64_virt_tcg_memhp()
1631 " -object memory-backend-ram,id=ram0,size=128M" in test_acpi_aarch64_virt_tcg_memhp()
1632 " -object memory-backend-ram,id=ram1,size=128M" in test_acpi_aarch64_virt_tcg_memhp()
1633 " -numa node,memdev=ram0 -numa node,memdev=ram1" in test_acpi_aarch64_virt_tcg_memhp()
1634 " -numa dist,src=0,dst=1,val=21" in test_acpi_aarch64_virt_tcg_memhp()
1635 " -object memory-backend-ram,id=ram2,size=128M" in test_acpi_aarch64_virt_tcg_memhp()
1636 " -object memory-backend-ram,id=nvm0,size=128M" in test_acpi_aarch64_virt_tcg_memhp()
1637 " -device pc-dimm,id=dimm0,memdev=ram2,node=0" in test_acpi_aarch64_virt_tcg_memhp()
1638 " -device nvdimm,id=dimm1,memdev=nvm0,node=1", in test_acpi_aarch64_virt_tcg_memhp()
1647 data->machine = "microvm"; in test_acpi_microvm_prepare()
1648 data->arch = "x86"; in test_acpi_microvm_prepare()
1649 data->required_struct_types = NULL; /* no smbios */ in test_acpi_microvm_prepare()
1650 data->required_struct_types_len = 0; in test_acpi_microvm_prepare()
1651 data->blkdev = "virtio-blk-device"; in test_acpi_microvm_prepare()
1659 test_acpi_one(" -machine microvm,acpi=on,ioapic2=off,rtc=off", in test_acpi_microvm_tcg()
1670 test_acpi_one(" -machine microvm,acpi=on,ioapic2=off,usb=on,rtc=off", in test_acpi_microvm_usb_tcg()
1681 test_acpi_one(" -machine microvm,acpi=on,ioapic2=off,rtc=on", in test_acpi_microvm_rtc_tcg()
1692 data.tcg_only = true; /* need constant host-phys-bits */ in test_acpi_microvm_pcie_tcg()
1693 test_acpi_one(" -machine microvm,acpi=on,ioapic2=off,rtc=off,pcie=on", in test_acpi_microvm_pcie_tcg()
1704 test_acpi_one(" -machine microvm,acpi=on,ioapic2=on,rtc=off", in test_acpi_microvm_ioapic2_tcg()
1715 .uefi_fl1 = "pc-bios/edk2-riscv-code.fd", in test_acpi_riscv64_virt_tcg_numamem()
1716 .uefi_fl2 = "pc-bios/edk2-riscv-vars.fd", in test_acpi_riscv64_virt_tcg_numamem()
1717 .cd = "tests/data/uefi-boot-images/bios-tables-test.riscv64.iso.qcow2", in test_acpi_riscv64_virt_tcg_numamem()
1728 test_acpi_one(" -cpu rva22s64" in test_acpi_riscv64_virt_tcg_numamem()
1729 " -object memory-backend-ram,id=ram0,size=128M" in test_acpi_riscv64_virt_tcg_numamem()
1730 " -numa node,memdev=ram0", in test_acpi_riscv64_virt_tcg_numamem()
1741 .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", in test_acpi_aarch64_virt_tcg_numamem()
1742 .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", in test_acpi_aarch64_virt_tcg_numamem()
1743 .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", in test_acpi_aarch64_virt_tcg_numamem()
1749 test_acpi_one(" -cpu cortex-a57" in test_acpi_aarch64_virt_tcg_numamem()
1750 " -object memory-backend-ram,id=ram0,size=128M" in test_acpi_aarch64_virt_tcg_numamem()
1751 " -numa node,memdev=ram0", in test_acpi_aarch64_virt_tcg_numamem()
1764 .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", in test_acpi_aarch64_virt_tcg_pxb()
1765 .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", in test_acpi_aarch64_virt_tcg_pxb()
1770 * While using -cdrom, the cdrom would auto plugged into pxb-pcie, in test_acpi_aarch64_virt_tcg_pxb()
1771 * the reason is the bus of pxb-pcie is also root bus, it would lead in test_acpi_aarch64_virt_tcg_pxb()
1777 test_acpi_one(" -device pcie-root-port,chassis=1,id=pci.1" in test_acpi_aarch64_virt_tcg_pxb()
1778 " -device virtio-scsi-pci,id=scsi0,bus=pci.1" in test_acpi_aarch64_virt_tcg_pxb()
1779 " -drive file=" in test_acpi_aarch64_virt_tcg_pxb()
1780 "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2," in test_acpi_aarch64_virt_tcg_pxb()
1781 "if=none,media=cdrom,id=drive-scsi0-0-0-1,readonly=on" in test_acpi_aarch64_virt_tcg_pxb()
1782 " -device scsi-cd,bus=scsi0.0,scsi-id=0," in test_acpi_aarch64_virt_tcg_pxb()
1783 "drive=drive-scsi0-0-0-1,id=scsi0-0-0-1,bootindex=1" in test_acpi_aarch64_virt_tcg_pxb()
1784 " -cpu cortex-a57" in test_acpi_aarch64_virt_tcg_pxb()
1785 " -device pxb-pcie,bus_nr=128", in test_acpi_aarch64_virt_tcg_pxb()
1798 test_acpi_one(" -machine hmat=on" in test_acpi_tcg_acpi_hmat()
1799 " -smp 2,sockets=2" in test_acpi_tcg_acpi_hmat()
1800 " -m 128M,slots=2,maxmem=1G" in test_acpi_tcg_acpi_hmat()
1801 " -object memory-backend-ram,size=64M,id=m0" in test_acpi_tcg_acpi_hmat()
1802 " -object memory-backend-ram,size=64M,id=m1" in test_acpi_tcg_acpi_hmat()
1803 " -numa node,nodeid=0,memdev=m0" in test_acpi_tcg_acpi_hmat()
1804 " -numa node,nodeid=1,memdev=m1,initiator=0" in test_acpi_tcg_acpi_hmat()
1805 " -numa cpu,node-id=0,socket-id=0" in test_acpi_tcg_acpi_hmat()
1806 " -numa cpu,node-id=0,socket-id=1" in test_acpi_tcg_acpi_hmat()
1807 " -numa hmat-lb,initiator=0,target=0,hierarchy=memory," in test_acpi_tcg_acpi_hmat()
1808 "data-type=access-latency,latency=1" in test_acpi_tcg_acpi_hmat()
1809 " -numa hmat-lb,initiator=0,target=0,hierarchy=memory," in test_acpi_tcg_acpi_hmat()
1810 "data-type=access-bandwidth,bandwidth=65534M" in test_acpi_tcg_acpi_hmat()
1811 " -numa hmat-lb,initiator=0,target=1,hierarchy=memory," in test_acpi_tcg_acpi_hmat()
1812 "data-type=access-latency,latency=65534" in test_acpi_tcg_acpi_hmat()
1813 " -numa hmat-lb,initiator=0,target=1,hierarchy=memory," in test_acpi_tcg_acpi_hmat()
1814 "data-type=access-bandwidth,bandwidth=32767M" in test_acpi_tcg_acpi_hmat()
1815 " -numa hmat-cache,node-id=0,size=10K,level=1," in test_acpi_tcg_acpi_hmat()
1816 "associativity=direct,policy=write-back,line=8" in test_acpi_tcg_acpi_hmat()
1817 " -numa hmat-cache,node-id=1,size=10K,level=1," in test_acpi_tcg_acpi_hmat()
1818 "associativity=direct,policy=write-back,line=8", in test_acpi_tcg_acpi_hmat()
1839 .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", in test_acpi_aarch64_virt_tcg_acpi_hmat()
1840 .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", in test_acpi_aarch64_virt_tcg_acpi_hmat()
1841 .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", in test_acpi_aarch64_virt_tcg_acpi_hmat()
1848 test_acpi_one(" -machine hmat=on" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1849 " -cpu cortex-a57" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1850 " -smp 4,sockets=2" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1851 " -m 384M" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1852 " -object memory-backend-ram,size=128M,id=ram0" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1853 " -object memory-backend-ram,size=128M,id=ram1" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1854 " -object memory-backend-ram,size=128M,id=ram2" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1855 " -numa node,nodeid=0,memdev=ram0" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1856 " -numa node,nodeid=1,memdev=ram1" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1857 " -numa node,nodeid=2,memdev=ram2" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1858 " -numa cpu,node-id=0,socket-id=0" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1859 " -numa cpu,node-id=0,socket-id=0" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1860 " -numa cpu,node-id=1,socket-id=1" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1861 " -numa cpu,node-id=1,socket-id=1" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1862 " -numa hmat-lb,initiator=0,target=0,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1863 "data-type=access-latency,latency=10" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1864 " -numa hmat-lb,initiator=0,target=0,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1865 "data-type=access-bandwidth,bandwidth=10485760" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1866 " -numa hmat-lb,initiator=0,target=1,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1867 "data-type=access-latency,latency=20" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1868 " -numa hmat-lb,initiator=0,target=1,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1869 "data-type=access-bandwidth,bandwidth=5242880" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1870 " -numa hmat-lb,initiator=0,target=2,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1871 "data-type=access-latency,latency=30" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1872 " -numa hmat-lb,initiator=0,target=2,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1873 "data-type=access-bandwidth,bandwidth=1048576" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1874 " -numa hmat-lb,initiator=1,target=0,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1875 "data-type=access-latency,latency=20" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1876 " -numa hmat-lb,initiator=1,target=0,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1877 "data-type=access-bandwidth,bandwidth=5242880" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1878 " -numa hmat-lb,initiator=1,target=1,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1879 "data-type=access-latency,latency=10" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1880 " -numa hmat-lb,initiator=1,target=1,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1881 "data-type=access-bandwidth,bandwidth=10485760" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1882 " -numa hmat-lb,initiator=1,target=2,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1883 "data-type=access-latency,latency=30" in test_acpi_aarch64_virt_tcg_acpi_hmat()
1884 " -numa hmat-lb,initiator=1,target=2,hierarchy=memory," in test_acpi_aarch64_virt_tcg_acpi_hmat()
1885 "data-type=access-bandwidth,bandwidth=1048576", in test_acpi_aarch64_virt_tcg_acpi_hmat()
1897 data.variant = ".acpihmat-noinitiator"; in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1898 test_acpi_one(" -machine hmat=on" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1899 " -smp 4,sockets=2" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1900 " -m 128M" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1901 " -object memory-backend-ram,size=32M,id=ram0" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1902 " -object memory-backend-ram,size=32M,id=ram1" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1903 " -object memory-backend-ram,size=64M,id=ram2" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1904 " -numa node,nodeid=0,memdev=ram0" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1905 " -numa node,nodeid=1,memdev=ram1" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1906 " -numa node,nodeid=2,memdev=ram2" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1907 " -numa cpu,node-id=0,socket-id=0" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1908 " -numa cpu,node-id=0,socket-id=0" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1909 " -numa cpu,node-id=1,socket-id=1" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1910 " -numa cpu,node-id=1,socket-id=1" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1911 " -numa hmat-lb,initiator=0,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1912 "data-type=access-latency,latency=10" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1913 " -numa hmat-lb,initiator=0,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1914 "data-type=access-bandwidth,bandwidth=10485760" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1915 " -numa hmat-lb,initiator=0,target=1,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1916 "data-type=access-latency,latency=20" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1917 " -numa hmat-lb,initiator=0,target=1,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1918 "data-type=access-bandwidth,bandwidth=5242880" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1919 " -numa hmat-lb,initiator=0,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1920 "data-type=access-latency,latency=30" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1921 " -numa hmat-lb,initiator=0,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1922 "data-type=access-bandwidth,bandwidth=1048576" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1923 " -numa hmat-lb,initiator=1,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1924 "data-type=access-latency,latency=20" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1925 " -numa hmat-lb,initiator=1,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1926 "data-type=access-bandwidth,bandwidth=5242880" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1927 " -numa hmat-lb,initiator=1,target=1,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1928 "data-type=access-latency,latency=10" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1929 " -numa hmat-lb,initiator=1,target=1,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1930 "data-type=access-bandwidth,bandwidth=10485760" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1931 " -numa hmat-lb,initiator=1,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1932 "data-type=access-latency,latency=30" in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1933 " -numa hmat-lb,initiator=1,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1934 "data-type=access-bandwidth,bandwidth=1048576", in test_acpi_q35_tcg_acpi_hmat_noinitiator()
1946 data.variant = ".acpihmat-generic-x"; in test_acpi_q35_tcg_acpi_hmat_generic_x()
1947 test_acpi_one(" -machine hmat=on,cxl=on" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1948 " -smp 3,sockets=3" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1949 " -m 128M,maxmem=384M,slots=2" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1950 " -device pcie-root-port,chassis=1,id=pci.1" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1951 " -device pci-testdev,bus=pci.1," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1953 " -device pci-testdev,bus=pci.1,addr=00.1" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1954 " -device pci-testdev,bus=pci.1,id=gidev,addr=00.2" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1955 " -device pxb-cxl,bus_nr=64,bus=pcie.0,id=cxl.1" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1956 " -object memory-backend-ram,size=64M,id=ram0" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1957 " -object memory-backend-ram,size=64M,id=ram1" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1958 " -numa node,nodeid=0,cpus=0,memdev=ram0" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1959 " -numa node,nodeid=1" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1960 " -object acpi-generic-initiator,id=gi0,pci-dev=gidev,node=1" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1961 " -numa node,nodeid=2" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1962 " -object acpi-generic-port,id=gp0,pci-bus=cxl.1,node=2" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1963 " -numa node,nodeid=3,cpus=1" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1964 " -numa node,nodeid=4,memdev=ram1" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1965 " -numa node,nodeid=5,cpus=2" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1966 " -numa hmat-lb,initiator=0,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1967 "data-type=access-latency,latency=10" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1968 " -numa hmat-lb,initiator=0,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1969 "data-type=access-bandwidth,bandwidth=800M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1970 " -numa hmat-lb,initiator=0,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1971 "data-type=access-latency,latency=100" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1972 " -numa hmat-lb,initiator=0,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1973 "data-type=access-bandwidth,bandwidth=200M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1974 " -numa hmat-lb,initiator=0,target=4,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1975 "data-type=access-latency,latency=100" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1976 " -numa hmat-lb,initiator=0,target=4,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1977 "data-type=access-bandwidth,bandwidth=200M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1978 " -numa hmat-lb,initiator=0,target=5,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1979 "data-type=access-latency,latency=200" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1980 " -numa hmat-lb,initiator=0,target=5,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1981 "data-type=access-bandwidth,bandwidth=400M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1982 " -numa hmat-lb,initiator=1,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1983 "data-type=access-latency,latency=500" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1984 " -numa hmat-lb,initiator=1,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1985 "data-type=access-bandwidth,bandwidth=100M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1986 " -numa hmat-lb,initiator=1,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1987 "data-type=access-latency,latency=50" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1988 " -numa hmat-lb,initiator=1,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1989 "data-type=access-bandwidth,bandwidth=400M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1990 " -numa hmat-lb,initiator=1,target=4,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1991 "data-type=access-latency,latency=50" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1992 " -numa hmat-lb,initiator=1,target=4,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1993 "data-type=access-bandwidth,bandwidth=800M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1994 " -numa hmat-lb,initiator=1,target=5,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1995 "data-type=access-latency,latency=500" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1996 " -numa hmat-lb,initiator=1,target=5,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1997 "data-type=access-bandwidth,bandwidth=100M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
1998 " -numa hmat-lb,initiator=3,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
1999 "data-type=access-latency,latency=20" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2000 " -numa hmat-lb,initiator=3,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2001 "data-type=access-bandwidth,bandwidth=400M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2002 " -numa hmat-lb,initiator=3,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2003 "data-type=access-latency,latency=80" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2004 " -numa hmat-lb,initiator=3,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2005 "data-type=access-bandwidth,bandwidth=200M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2006 " -numa hmat-lb,initiator=3,target=4,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2007 "data-type=access-latency,latency=80" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2008 " -numa hmat-lb,initiator=3,target=4,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2009 "data-type=access-bandwidth,bandwidth=200M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2010 " -numa hmat-lb,initiator=3,target=5,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2011 "data-type=access-latency,latency=20" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2012 " -numa hmat-lb,initiator=3,target=5,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2013 "data-type=access-bandwidth,bandwidth=400M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2014 " -numa hmat-lb,initiator=5,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2015 "data-type=access-latency,latency=20" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2016 " -numa hmat-lb,initiator=5,target=0,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2017 "data-type=access-bandwidth,bandwidth=400M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2018 " -numa hmat-lb,initiator=5,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2019 "data-type=access-latency,latency=80" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2020 " -numa hmat-lb,initiator=5,target=4,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2021 "data-type=access-bandwidth,bandwidth=200M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2022 " -numa hmat-lb,initiator=5,target=4,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2023 "data-type=access-latency,latency=80" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2024 " -numa hmat-lb,initiator=5,target=2,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2025 "data-type=access-bandwidth,bandwidth=200M" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2026 " -numa hmat-lb,initiator=5,target=5,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2027 "data-type=access-latency,latency=10" in test_acpi_q35_tcg_acpi_hmat_generic_x()
2028 " -numa hmat-lb,initiator=5,target=5,hierarchy=memory," in test_acpi_q35_tcg_acpi_hmat_generic_x()
2029 "data-type=access-bandwidth,bandwidth=800M", in test_acpi_q35_tcg_acpi_hmat_generic_x()
2037 gchar *tmp_path = g_dir_make_tmp("qemu-test-erst.XXXXXX", NULL); in test_acpi_erst()
2045 " -object memory-backend-file,id=erstnvram," in test_acpi_erst()
2046 "mem-path=%s,size=0x10000,share=on" in test_acpi_erst()
2047 " -device acpi-erst,memdev=erstnvram", tmp_path); in test_acpi_erst()
2067 gchar *tmp_path = g_dir_make_tmp("qemu-test-erst.XXXXXX", NULL); in test_acpi_microvm_acpi_erst()
2073 data.tcg_only = true; /* need constant host-phys-bits */ in test_acpi_microvm_acpi_erst()
2074 params = g_strdup_printf(" -machine microvm," in test_acpi_microvm_acpi_erst()
2076 " -object memory-backend-file,id=erstnvram," in test_acpi_microvm_acpi_erst()
2077 "mem-path=%s,size=0x10000,share=on" in test_acpi_microvm_acpi_erst()
2078 " -device acpi-erst,memdev=erstnvram", tmp_path); in test_acpi_microvm_acpi_erst()
2093 .uefi_fl1 = "pc-bios/edk2-riscv-code.fd", in test_acpi_riscv64_virt_tcg()
2094 .uefi_fl2 = "pc-bios/edk2-riscv-vars.fd", in test_acpi_riscv64_virt_tcg()
2095 .cd = "tests/data/uefi-boot-images/bios-tables-test.riscv64.iso.qcow2", in test_acpi_riscv64_virt_tcg()
2105 test_acpi_one("-cpu rva22s64 ", &data); in test_acpi_riscv64_virt_tcg()
2115 .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", in test_acpi_aarch64_virt_tcg()
2116 .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", in test_acpi_aarch64_virt_tcg()
2117 .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", in test_acpi_aarch64_virt_tcg()
2124 test_acpi_one("-cpu cortex-a57 " in test_acpi_aarch64_virt_tcg()
2125 "-smbios type=4,max-speed=2900,current-speed=2700", &data); in test_acpi_aarch64_virt_tcg()
2136 .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", in test_acpi_aarch64_virt_tcg_topology()
2137 .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", in test_acpi_aarch64_virt_tcg_topology()
2138 .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", in test_acpi_aarch64_virt_tcg_topology()
2143 test_acpi_one("-cpu cortex-a57 " in test_acpi_aarch64_virt_tcg_topology()
2144 "-smp sockets=1,clusters=2,cores=2,threads=2", &data); in test_acpi_aarch64_virt_tcg_topology()
2160 test_acpi_one("-machine default_bus_bypass_iommu=on " in test_acpi_q35_viot()
2161 "-device virtio-iommu-pci " in test_acpi_q35_viot()
2162 "-device pxb-pcie,bus_nr=0x10,id=pcie.100,bus=pcie.0 " in test_acpi_q35_viot()
2163 "-device pxb-pcie,bus_nr=0x20,id=pcie.200,bus=pcie.0,bypass_iommu=on " in test_acpi_q35_viot()
2164 "-device pxb-pcie,bus_nr=0x30,id=pcie.300,bus=pcie.0", in test_acpi_q35_viot()
2172 gchar *tmp_path = g_dir_make_tmp("qemu-test-cxl.XXXXXX", NULL); in test_acpi_q35_cxl()
2183 params = g_strdup_printf(" -machine cxl=on" in test_acpi_q35_cxl()
2184 " -object memory-backend-file,id=cxl-mem1,mem-path=%s,size=256M" in test_acpi_q35_cxl()
2185 " -object memory-backend-file,id=cxl-mem2,mem-path=%s,size=256M" in test_acpi_q35_cxl()
2186 " -object memory-backend-file,id=cxl-mem3,mem-path=%s,size=256M" in test_acpi_q35_cxl()
2187 " -object memory-backend-file,id=cxl-mem4,mem-path=%s,size=256M" in test_acpi_q35_cxl()
2188 " -object memory-backend-file,id=lsa1,mem-path=%s,size=256M" in test_acpi_q35_cxl()
2189 " -object memory-backend-file,id=lsa2,mem-path=%s,size=256M" in test_acpi_q35_cxl()
2190 " -object memory-backend-file,id=lsa3,mem-path=%s,size=256M" in test_acpi_q35_cxl()
2191 " -object memory-backend-file,id=lsa4,mem-path=%s,size=256M" in test_acpi_q35_cxl()
2192 " -device pxb-cxl,bus_nr=12,bus=pcie.0,id=cxl.1" in test_acpi_q35_cxl()
2193 " -device pxb-cxl,bus_nr=222,bus=pcie.0,id=cxl.2" in test_acpi_q35_cxl()
2194 " -device cxl-rp,port=0,bus=cxl.1,id=rp1,chassis=0,slot=2" in test_acpi_q35_cxl()
2195 " -device cxl-type3,bus=rp1,persistent-memdev=cxl-mem1,lsa=lsa1" in test_acpi_q35_cxl()
2196 " -device cxl-rp,port=1,bus=cxl.1,id=rp2,chassis=0,slot=3" in test_acpi_q35_cxl()
2197 " -device cxl-type3,bus=rp2,persistent-memdev=cxl-mem2,lsa=lsa2" in test_acpi_q35_cxl()
2198 " -device cxl-rp,port=0,bus=cxl.2,id=rp3,chassis=0,slot=5" in test_acpi_q35_cxl()
2199 " -device cxl-type3,bus=rp3,persistent-memdev=cxl-mem3,lsa=lsa3" in test_acpi_q35_cxl()
2200 " -device cxl-rp,port=1,bus=cxl.2,id=rp4,chassis=0,slot=6" in test_acpi_q35_cxl()
2201 " -device cxl-type3,bus=rp4,persistent-memdev=cxl-mem4,lsa=lsa4" in test_acpi_q35_cxl()
2202 … " -M cxl-fmw.0.targets.0=cxl.1,cxl-fmw.0.size=4G,cxl-fmw.0.interleave-granularity=8k," in test_acpi_q35_cxl()
2203 …"cxl-fmw.1.targets.0=cxl.1,cxl-fmw.1.targets.1=cxl.2,cxl-fmw.1.size=4G,cxl-fmw.1.interleave-granul… in test_acpi_q35_cxl()
2221 .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", in test_acpi_aarch64_virt_viot()
2222 .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", in test_acpi_aarch64_virt_viot()
2223 .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", in test_acpi_aarch64_virt_viot()
2228 test_acpi_one("-cpu cortex-a57 " in test_acpi_aarch64_virt_viot()
2229 "-device virtio-iommu-pci", &data); in test_acpi_aarch64_virt_viot()
2247 test_acpi_one("-acpitable sig=SLIC,oem_id=\"CRASH \",oem_table_id=ME," in test_acpi_q35_slic()
2262 /* supply fake 64-byte OSK to silence missing key warning */ in test_acpi_q35_applesmc()
2263 test_acpi_one("-device isa-applesmc,osk=any64characterfakeoskisenough" in test_acpi_q35_applesmc()
2273 .variant = ".pvpanic-isa", in test_acpi_q35_pvpanic_isa()
2276 test_acpi_one("-device pvpanic", &data); in test_acpi_q35_pvpanic_isa()
2291 test_smbios("-smbios type=11,value=TEST", &data); in test_acpi_pc_smbios_options()
2306 test_smbios("-machine smbios-entry-point-type=32 " in test_acpi_pc_smbios_blob()
2307 "-smbios file=tests/data/smbios/type11_blob", &data); in test_acpi_pc_smbios_blob()
2321 test_smbios("-smbios file=tests/data/smbios/type11_blob.legacy " in test_acpi_isapc_smbios_legacy()
2322 "-smbios type=1,family=TEST", &data); in test_acpi_isapc_smbios_legacy()
2330 for (i = 0; i < data->tables->len; ++i) { in test_oem_fields()
2333 sdt = &g_array_index(data->tables, AcpiSdtTable, i); in test_oem_fields()
2339 g_assert(strncmp((char *)sdt->aml + 10, OEM_ID, 6) == 0); in test_oem_fields()
2340 g_assert(strncmp((char *)sdt->aml + 16, OEM_TABLE_ID, 8) == 0); in test_oem_fields()
2405 .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", in test_acpi_aarch64_virt_oem_fields()
2406 .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", in test_acpi_aarch64_virt_oem_fields()
2407 .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", in test_acpi_aarch64_virt_oem_fields()
2413 args = test_acpi_create_args(&data, "-cpu cortex-a57 "OEM_TEST_ARGS); in test_acpi_aarch64_virt_oem_fields()
2451 qtest_add_func("acpi/piix4/oem-fields", test_acpi_piix4_oem_fields); in main()
2453 qtest_add_func("acpi/piix4/pci-hotplug/no_root_hotplug", in main()
2455 qtest_add_func("acpi/piix4/pci-hotplug/no_bridge_hotplug", in main()
2457 qtest_add_func("acpi/piix4/pci-hotplug/off", in main()
2463 qtest_add_func("acpi/piix4/smm-compat", in main()
2465 qtest_add_func("acpi/piix4/smm-compat-nosmm", in main()
2480 qtest_add_func("acpi/piix4/smbios-options", in main()
2482 qtest_add_func("acpi/piix4/smbios-blob", in main()
2484 qtest_add_func("acpi/piix4/smbios-legacy", in main()
2489 qtest_add_func("acpi/q35/oem-fields", test_acpi_q35_oem_fields); in main()
2490 if (tpm_model_is_available("-machine q35", "tpm-tis")) { in main()
2491 qtest_add_func("acpi/q35/tpm2-tis", test_acpi_q35_tcg_tpm2_tis); in main()
2492 qtest_add_func("acpi/q35/tpm12-tis", in main()
2496 qtest_add_func("acpi/q35/no-acpi-hotplug", in main()
2498 qtest_add_func("acpi/q35/multif-bridge", in main()
2505 qtest_add_func("acpi/q35/smm-compat", in main()
2507 qtest_add_func("acpi/q35/smm-compat-nosmm", in main()
2510 qtest_add_func("acpi/q35/acpihmat-noinitiator", in main()
2512 qtest_add_func("acpi/q35/acpihmat-genericx", in main()
2527 qtest_add_func("acpi/q35/pvpanic-isa", test_acpi_q35_pvpanic_isa); in main()
2534 qtest_add_func("acpi/q35/type4-count", in main()
2536 qtest_add_func("acpi/q35/core-count", in main()
2538 qtest_add_func("acpi/q35/core-count2", in main()
2540 qtest_add_func("acpi/q35/thread-count", in main()
2542 qtest_add_func("acpi/q35/thread-count2", in main()
2545 if (qtest_has_device("virtio-iommu-pci")) { in main()
2559 qtest_add_func("acpi/microvm/oem-fields", in main()
2573 if (has_tcg && qtest_has_device("virtio-blk-pci")) { in main()
2583 qtest_add_func("acpi/virt/oem-fields", in main()
2585 if (qtest_has_device("virtio-iommu-pci")) { in main()
2590 if (has_tcg && qtest_has_device("virtio-blk-pci")) { in main()