Skip to content

Commit

Permalink
tests: acpi: add testcase for amd-iommu (IVRS table)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20210902113551.461632-11-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
Igor Mammedov authored and mstsirkin committed Oct 20, 2021
1 parent c5a7baa commit a4c730c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/qtest/bios-tables-test.c
Expand Up @@ -1102,6 +1102,18 @@ static void test_acpi_q35_kvm_dmar(void)
free_test_data(&data);
}

static void test_acpi_q35_tcg_ivrs(void)
{
test_data data;

memset(&data, 0, sizeof(data));
data.machine = MACHINE_Q35;
data.variant = ".ivrs";
data.tcg_only = true,
test_acpi_one(" -device amd-iommu", &data);
free_test_data(&data);
}

static void test_acpi_piix4_tcg_numamem(void)
{
test_data data;
Expand Down Expand Up @@ -1581,6 +1593,7 @@ int main(int argc, char *argv[])
qtest_add_func("acpi/q35/smm-compat-nosmm",
test_acpi_q35_tcg_smm_compat_nosmm);
qtest_add_func("acpi/q35/nohpet", test_acpi_q35_tcg_nohpet);
qtest_add_func("acpi/q35/ivrs", test_acpi_q35_tcg_ivrs);
qtest_add_func("acpi/piix4/dimmpxm", test_acpi_piix4_tcg_dimm_pxm);
qtest_add_func("acpi/q35/dimmpxm", test_acpi_q35_tcg_dimm_pxm);
qtest_add_func("acpi/piix4/acpihmat", test_acpi_piix4_tcg_acpi_hmat);
Expand Down

0 comments on commit a4c730c

Please sign in to comment.