cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
28f2e1
From 740a2dd943a2e0fcd41a9cd8eb94a136f8f49fa2 Mon Sep 17 00:00:00 2001
22c213
From: Miroslav Rezanina <mrezanin@redhat.com>
febaa2
Date: Wed, 2 Sep 2020 09:39:41 +0200
22c213
Subject: Enable make check
22c213
22c213
Fixing tests after device disabling and machine types changes and enabling
22c213
make check run during build.
22c213
22c213
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
22c213
22c213
Rebase changes (4.0.0):
22c213
- Remove testing for pseries-2.7 in endianess test
22c213
- Disable device-plug-test on s390x as it use disabled device
22c213
- Do not run cpu-plug-tests on 7.3 and older machine types
22c213
22c213
Rebase changes (4.1.0-rc0):
22c213
- removed iotests 068
22c213
22c213
Rebase changes (4.1.0-rc1):
22c213
- remove all 205 tests (unstable)
22c213
22c213
Rebase changes (4.2.0-rc0):
22c213
- partially disable hd-geo-test (requires lsi53c895a)
22c213
febaa2
Rebase changes (5.1.0-rc1):
febaa2
- Disable qtest/q35-test (uses upstream machine types)
febaa2
- Do not run iotests on make checka
febaa2
- Enabled iotests 071 and 099
febaa2
febaa2
Rebase changes (5.2.0 rc0):
febaa2
- Disable cdrom tests (unsupported devices) on x86_64
febaa2
- disable fuzz test
febaa2
febaa2
Rebase changes (6.0.0):
febaa2
- Disabled xlnx-can-test
febaa2
- Disable pxb-pcie subtest for bios-table-test
febaa2
- Replace qtest usage of upstream q35 machine type with pc-q35-rhel8.4.0
febaa2
- Not run cdrom-test on aarch64
febaa2
febaa2
Rebase changes (6.1.0):
febaa2
- Remove unnecessary test disabling changes
febaa2
28f2e1
Rebase changes (weekly-211006):
28f2e1
- New handling for bios-table-test (disabled downstream)
28f2e1
22c213
Merged patches (4.0.0):
22c213
- f7ffd13 Remove 7 qcow2 and luks iotests that are taking > 25 sec to run during the fast train build proce
22c213
22c213
Merged patches (4.1.0-rc0):
22c213
- 41288ff redhat: Remove raw iotest 205
22c213
---
28f2e1
 redhat/qemu-kvm.spec.template       |  2 +-
febaa2
 tests/qemu-iotests/051              |  8 ++++----
28f2e1
 tests/qtest/bios-tables-test.c      |  5 ++++-
febaa2
 tests/qtest/boot-serial-test.c      |  6 +++++-
febaa2
 tests/qtest/cdrom-test.c            |  4 ++++
febaa2
 tests/qtest/cpu-plug-test.c         |  4 ++--
febaa2
 tests/qtest/fuzz-e1000e-test.c      |  2 +-
febaa2
 tests/qtest/fuzz-virtio-scsi-test.c |  2 +-
febaa2
 tests/qtest/hd-geo-test.c           |  4 ++++
febaa2
 tests/qtest/lpc-ich9-test.c         |  2 +-
28f2e1
 tests/qtest/meson.build             | 13 ++++---------
febaa2
 tests/qtest/prom-env-test.c         |  4 ++++
febaa2
 tests/qtest/test-x86-cpuid-compat.c |  2 ++
febaa2
 tests/qtest/usb-hcd-xhci-test.c     |  4 ++++
28f2e1
 14 files changed, 41 insertions(+), 21 deletions(-)
22c213
febaa2
diff --git a/tests/qemu-iotests/051 b/tests/qemu-iotests/051
28f2e1
index 1d2fa93a11..c8a2815f54 100755
febaa2
--- a/tests/qemu-iotests/051
febaa2
+++ b/tests/qemu-iotests/051
febaa2
@@ -174,9 +174,9 @@ run_qemu -drive if=virtio
febaa2
 case "$QEMU_DEFAULT_MACHINE" in
febaa2
     pc)
febaa2
         run_qemu -drive if=none,id=disk -device ide-cd,drive=disk
febaa2
-        run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
febaa2
+#        run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
febaa2
         run_qemu -drive if=none,id=disk -device ide-hd,drive=disk
febaa2
-        run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
febaa2
+#        run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
febaa2
         ;;
febaa2
      *)
febaa2
         ;;
febaa2
@@ -225,9 +225,9 @@ run_qemu -drive file="$TEST_IMG",if=virtio,readonly=on
febaa2
 case "$QEMU_DEFAULT_MACHINE" in
febaa2
     pc)
febaa2
         run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-cd,drive=disk
febaa2
-        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
febaa2
+#        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
febaa2
         run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-hd,drive=disk
febaa2
-        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
febaa2
+#        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
febaa2
         ;;
febaa2
      *)
febaa2
         ;;
febaa2
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
28f2e1
index 258874167e..16d8304cde 100644
febaa2
--- a/tests/qtest/bios-tables-test.c
febaa2
+++ b/tests/qtest/bios-tables-test.c
28f2e1
@@ -1372,6 +1372,7 @@ static void test_acpi_virt_tcg_numamem(void)
febaa2
 
febaa2
 }
28f2e1
 
28f2e1
+#if 0 /* Disabled for Red Hat Enterprise Linux */
febaa2
 static void test_acpi_virt_tcg_pxb(void)
febaa2
 {
febaa2
     test_data data = {
28f2e1
@@ -1403,6 +1404,7 @@ static void test_acpi_virt_tcg_pxb(void)
22c213
 
febaa2
     free_test_data(&data);
febaa2
 }
febaa2
+#endif
28f2e1
 
febaa2
 static void test_acpi_tcg_acpi_hmat(const char *machine)
febaa2
 {
28f2e1
@@ -1644,7 +1646,8 @@ int main(int argc, char *argv[])
28f2e1
             qtest_add_func("acpi/virt", test_acpi_virt_tcg);
28f2e1
             qtest_add_func("acpi/virt/numamem", test_acpi_virt_tcg_numamem);
28f2e1
             qtest_add_func("acpi/virt/memhp", test_acpi_virt_tcg_memhp);
28f2e1
-            qtest_add_func("acpi/virt/pxb", test_acpi_virt_tcg_pxb);
28f2e1
+            /* Disabled for Red Hat Enterprise Linux
28f2e1
+            qtest_add_func("acpi/virt/pxb", test_acpi_virt_tcg_pxb); */
28f2e1
             qtest_add_func("acpi/virt/oem-fields", test_acpi_oem_fields_virt);
28f2e1
         }
febaa2
     }
febaa2
diff --git a/tests/qtest/boot-serial-test.c b/tests/qtest/boot-serial-test.c
28f2e1
index 83828ba270..294476b959 100644
febaa2
--- a/tests/qtest/boot-serial-test.c
febaa2
+++ b/tests/qtest/boot-serial-test.c
febaa2
@@ -148,19 +148,23 @@ static testdef_t tests[] = {
22c213
     { "ppc", "g3beige", "", "PowerPC,750" },
22c213
     { "ppc", "mac99", "", "PowerPC,G4" },
22c213
     { "ppc", "sam460ex", "-m 256", "DRAM:  256 MiB" },
22c213
+#if 0 /* Disabled for Red Hat Enterprise Linux */
22c213
     { "ppc64", "ppce500", "", "U-Boot" },
22c213
     { "ppc64", "40p", "-m 192", "Memory: 192M" },
22c213
     { "ppc64", "mac99", "", "PowerPC,970FX" },
22c213
+#endif
22c213
     { "ppc64", "pseries",
febaa2
       "-machine " PSERIES_DEFAULT_CAPABILITIES,
22c213
       "Open Firmware" },
22c213
+#if 0 /* Disabled for Red Hat Enterprise Linux */
22c213
     { "ppc64", "powernv8", "", "OPAL" },
22c213
     { "ppc64", "powernv9", "", "OPAL" },
22c213
     { "ppc64", "sam460ex", "-device e1000", "8086  100e" },
22c213
+#endif
22c213
     { "i386", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
22c213
     { "i386", "pc", "-device sga", "SGABIOS" },
22c213
     { "i386", "q35", "-device sga", "SGABIOS" },
22c213
-    { "x86_64", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
22c213
+    { "x86_64", "pc", "-cpu qemu32 -device sga", "SGABIOS" },
22c213
     { "x86_64", "q35", "-device sga", "SGABIOS" },
22c213
     { "sparc", "LX", "", "TMS390S10" },
22c213
     { "sparc", "SS-4", "", "MB86904" },
febaa2
diff --git a/tests/qtest/cdrom-test.c b/tests/qtest/cdrom-test.c
febaa2
index 5af944a5fb..69d9bac38a 100644
febaa2
--- a/tests/qtest/cdrom-test.c
febaa2
+++ b/tests/qtest/cdrom-test.c
febaa2
@@ -140,6 +140,7 @@ static void add_x86_tests(void)
febaa2
         qtest_add_data_func("cdrom/boot/isapc", "-M isapc "
febaa2
                             "-drive if=ide,media=cdrom,file=", test_cdboot);
febaa2
     }
febaa2
+#if 0  /* Disabled for Red Hat Enterprise Linux */
febaa2
     qtest_add_data_func("cdrom/boot/am53c974",
febaa2
                         "-device am53c974 -device scsi-cd,drive=cd1 "
febaa2
                         "-drive if=none,id=cd1,format=raw,file=", test_cdboot);
febaa2
@@ -155,6 +156,7 @@ static void add_x86_tests(void)
febaa2
     qtest_add_data_func("cdrom/boot/megasas-gen2", "-M q35 "
febaa2
                         "-device megasas-gen2 -device scsi-cd,drive=cd1 "
febaa2
                         "-blockdev file,node-name=cd1,filename=", test_cdboot);
febaa2
+#endif
febaa2
 }
febaa2
 
febaa2
 static void add_s390x_tests(void)
febaa2
@@ -220,6 +222,7 @@ int main(int argc, char **argv)
febaa2
             "magnum", "malta", "pica61", NULL
febaa2
         };
febaa2
         add_cdrom_param_tests(mips64machines);
febaa2
+#if 0 /* Disabled for Red Hat Enterprise Linux */
febaa2
     } else if (g_str_equal(arch, "arm") || g_str_equal(arch, "aarch64")) {
febaa2
         const char *armmachines[] = {
febaa2
             "realview-eb", "realview-eb-mpcore", "realview-pb-a8",
febaa2
@@ -227,6 +230,7 @@ int main(int argc, char **argv)
febaa2
             "vexpress-a9", "virt", NULL
febaa2
         };
febaa2
         add_cdrom_param_tests(armmachines);
febaa2
+#endif
febaa2
     } else {
febaa2
         const char *nonemachine[] = { "none", NULL };
febaa2
         add_cdrom_param_tests(nonemachine);
febaa2
diff --git a/tests/qtest/cpu-plug-test.c b/tests/qtest/cpu-plug-test.c
febaa2
index a1c689414b..a8f076711c 100644
febaa2
--- a/tests/qtest/cpu-plug-test.c
febaa2
+++ b/tests/qtest/cpu-plug-test.c
febaa2
@@ -110,8 +110,8 @@ static void add_pseries_test_case(const char *mname)
22c213
     char *path;
22c213
     PlugTestData *data;
22c213
 
22c213
-    if (!g_str_has_prefix(mname, "pseries-") ||
22c213
-        (g_str_has_prefix(mname, "pseries-2.") && atoi(&mname[10]) < 7)) {
22c213
+    if (!g_str_has_prefix(mname, "pseries-rhel") ||
22c213
+        (g_str_has_prefix(mname, "pseries-rhel7.") && atoi(&mname[14]) < 4)) {
22c213
         return;
22c213
     }
22c213
     data = g_new(PlugTestData, 1);
febaa2
diff --git a/tests/qtest/fuzz-e1000e-test.c b/tests/qtest/fuzz-e1000e-test.c
febaa2
index 66229e6096..947fba73b7 100644
febaa2
--- a/tests/qtest/fuzz-e1000e-test.c
febaa2
+++ b/tests/qtest/fuzz-e1000e-test.c
febaa2
@@ -17,7 +17,7 @@ static void test_lp1879531_eth_get_rss_ex_dst_addr(void)
febaa2
 {
febaa2
     QTestState *s;
22c213
 
febaa2
-    s = qtest_init("-nographic -monitor none -serial none -M pc-q35-5.0");
febaa2
+    s = qtest_init("-nographic -monitor none -serial none -M pc-q35-rhel8.4.0");
22c213
 
febaa2
     qtest_outl(s, 0xcf8, 0x80001010);
febaa2
     qtest_outl(s, 0xcfc, 0xe1020000);
febaa2
diff --git a/tests/qtest/fuzz-virtio-scsi-test.c b/tests/qtest/fuzz-virtio-scsi-test.c
febaa2
index aaf6d10e18..43727d62ac 100644
febaa2
--- a/tests/qtest/fuzz-virtio-scsi-test.c
febaa2
+++ b/tests/qtest/fuzz-virtio-scsi-test.c
febaa2
@@ -19,7 +19,7 @@ static void test_mmio_oob_from_memory_region_cache(void)
febaa2
 {
febaa2
     QTestState *s;
febaa2
 
febaa2
-    s = qtest_init("-M pc-q35-5.2 -display none -m 512M "
febaa2
+    s = qtest_init("-M pc-q35-rhel8.4.0 -display none -m 512M "
febaa2
                    "-device virtio-scsi,num_queues=8,addr=03.0 ");
febaa2
 
febaa2
     qtest_outl(s, 0xcf8, 0x80001811);
febaa2
diff --git a/tests/qtest/hd-geo-test.c b/tests/qtest/hd-geo-test.c
febaa2
index 113126ae06..999ef2aace 100644
febaa2
--- a/tests/qtest/hd-geo-test.c
febaa2
+++ b/tests/qtest/hd-geo-test.c
febaa2
@@ -737,6 +737,7 @@ static void test_override_ide(void)
22c213
     test_override(args, expected);
22c213
 }
22c213
 
22c213
+#if 0 /* Require lsi53c895a - not supported on RHEL */
22c213
 static void test_override_scsi(void)
22c213
 {
22c213
     TestArgs *args = create_args();
febaa2
@@ -781,6 +782,7 @@ static void test_override_scsi_2_controllers(void)
22c213
     add_scsi_disk(args, 3, 1, 0, 1, 2, 0, 1, 0);
22c213
     test_override(args, expected);
22c213
 }
22c213
+#endif
22c213
 
22c213
 static void test_override_virtio_blk(void)
22c213
 {
febaa2
@@ -960,9 +962,11 @@ int main(int argc, char **argv)
22c213
     qtest_add_func("hd-geo/ide/device/user/chst", test_ide_device_user_chst);
22c213
     if (have_qemu_img()) {
22c213
         qtest_add_func("hd-geo/override/ide", test_override_ide);
22c213
+#if 0 /* Require lsi53c895a - not supported on RHEL */
22c213
         qtest_add_func("hd-geo/override/scsi", test_override_scsi);
22c213
         qtest_add_func("hd-geo/override/scsi_2_controllers",
22c213
                        test_override_scsi_2_controllers);
22c213
+#endif
22c213
         qtest_add_func("hd-geo/override/virtio_blk", test_override_virtio_blk);
22c213
         qtest_add_func("hd-geo/override/zero_chs", test_override_zero_chs);
22c213
         qtest_add_func("hd-geo/override/scsi_hot_unplug",
febaa2
diff --git a/tests/qtest/lpc-ich9-test.c b/tests/qtest/lpc-ich9-test.c
febaa2
index fe0bef9980..7a9d51579b 100644
febaa2
--- a/tests/qtest/lpc-ich9-test.c
febaa2
+++ b/tests/qtest/lpc-ich9-test.c
febaa2
@@ -15,7 +15,7 @@ static void test_lp1878642_pci_bus_get_irq_level_assert(void)
febaa2
 {
febaa2
     QTestState *s;
febaa2
 
febaa2
-    s = qtest_init("-M pc-q35-5.0 "
febaa2
+    s = qtest_init("-M pc-q35-rhel8.4.0 "
febaa2
                    "-nographic -monitor none -serial none");
febaa2
 
febaa2
     qtest_outl(s, 0xcf8, 0x8000f840); /* PMBASE */
febaa2
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
28f2e1
index c9d8458062..049e06c057 100644
febaa2
--- a/tests/qtest/meson.build
febaa2
+++ b/tests/qtest/meson.build
28f2e1
@@ -68,7 +68,6 @@ qtests_i386 = \
28f2e1
   (config_all_devices.has_key('CONFIG_RTL8139_PCI') ? ['rtl8139-test'] : []) +              \
28f2e1
   (config_all_devices.has_key('CONFIG_E1000E_PCI_EXPRESS') ? ['fuzz-e1000e-test'] : []) +   \
28f2e1
   (config_all_devices.has_key('CONFIG_ESP_PCI') ? ['am53c974-test'] : []) +                 \
28f2e1
-  (unpack_edk2_blobs ? ['bios-tables-test'] : []) +                                         \
28f2e1
   qtests_pci +                                                                              \
28f2e1
   ['fdc-test',
febaa2
    'ide-test',
febaa2
@@ -81,7 +80,6 @@ qtests_i386 = \
febaa2
    'drive_del-test',
febaa2
    'tco-test',
febaa2
    'cpu-plug-test',
febaa2
-   'q35-test',
febaa2
    'vmgenid-test',
febaa2
    'migration-test',
febaa2
    'test-x86-cpuid-compat',
febaa2
@@ -130,17 +128,15 @@ qtests_mips64el = \
febaa2
 
febaa2
 qtests_ppc = \
febaa2
   (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) +            \
febaa2
-  (config_all_devices.has_key('CONFIG_M48T59') ? ['m48t59-test'] : []) +                     \
febaa2
-  ['boot-order-test', 'prom-env-test', 'boot-serial-test']                 \
febaa2
+  (config_all_devices.has_key('CONFIG_M48T59') ? ['m48t59-test'] : [])
febaa2
 
febaa2
 qtests_ppc64 = \
febaa2
   (config_all_devices.has_key('CONFIG_PSERIES') ? ['device-plug-test'] : []) +               \
febaa2
   (config_all_devices.has_key('CONFIG_POWERNV') ? ['pnv-xscom-test'] : []) +                 \
febaa2
   (config_all_devices.has_key('CONFIG_PSERIES') ? ['rtas-test'] : []) +                      \
febaa2
-  (slirp.found() ? ['pxe-test', 'test-netfilter'] : []) +              \
febaa2
+  (slirp.found() ? ['pxe-test'] : []) +              \
febaa2
   (config_all_devices.has_key('CONFIG_USB_UHCI') ? ['usb-hcd-uhci-test'] : []) +             \
febaa2
   (config_all_devices.has_key('CONFIG_USB_XHCI_NEC') ? ['usb-hcd-xhci-test'] : []) +         \
febaa2
-  (config_host.has_key('CONFIG_POSIX') ? ['test-filter-mirror'] : []) +                      \
febaa2
   qtests_pci + ['migration-test', 'numa-test', 'cpu-plug-test', 'drive_del-test']
febaa2
 
febaa2
 qtests_sh4 = (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : [])
28f2e1
@@ -186,8 +182,8 @@ qtests_aarch64 = \
febaa2
   ['arm-cpu-features',
febaa2
    'numa-test',
febaa2
    'boot-serial-test',
febaa2
-   'xlnx-can-test',
28f2e1
-   'fuzz-xlnx-dp-test',
febaa2
+#   'xlnx-can-test',
28f2e1
+#   'fuzz-xlnx-dp-test',
febaa2
    'migration-test']
febaa2
 
febaa2
 qtests_s390x = \
28f2e1
@@ -196,7 +192,6 @@ qtests_s390x = \
febaa2
   (config_host.has_key('CONFIG_POSIX') ? ['test-filter-redirector'] : []) +                     \
febaa2
   ['boot-serial-test',
febaa2
    'drive_del-test',
febaa2
-   'device-plug-test',
febaa2
    'virtio-ccw-test',
febaa2
    'cpu-plug-test',
febaa2
    'migration-test']
febaa2
diff --git a/tests/qtest/prom-env-test.c b/tests/qtest/prom-env-test.c
febaa2
index f41d80154a..f8dc478ce8 100644
febaa2
--- a/tests/qtest/prom-env-test.c
febaa2
+++ b/tests/qtest/prom-env-test.c
febaa2
@@ -89,10 +89,14 @@ int main(int argc, char *argv[])
22c213
     if (!strcmp(arch, "ppc")) {
22c213
         add_tests(ppc_machines);
22c213
     } else if (!strcmp(arch, "ppc64")) {
22c213
+#if 0 /* Disabled for Red Hat Enterprise Linux */
22c213
         add_tests(ppc_machines);
22c213
         if (g_test_slow()) {
22c213
+#endif
22c213
             qtest_add_data_func("prom-env/pseries", "pseries", test_machine);
22c213
+#if 0 /* Disabled for Red Hat Enterprise Linux */
22c213
         }
22c213
+#endif
22c213
     } else if (!strcmp(arch, "sparc")) {
22c213
         add_tests(sparc_machines);
22c213
     } else if (!strcmp(arch, "sparc64")) {
febaa2
diff --git a/tests/qtest/test-x86-cpuid-compat.c b/tests/qtest/test-x86-cpuid-compat.c
febaa2
index f28848e06e..6b2fd398a2 100644
febaa2
--- a/tests/qtest/test-x86-cpuid-compat.c
febaa2
+++ b/tests/qtest/test-x86-cpuid-compat.c
22c213
@@ -300,6 +300,7 @@ int main(int argc, char **argv)
febaa2
                    "-cpu 486,xlevel2=0xC0000002,xstore=on",
22c213
                    "xlevel2", 0xC0000002);
22c213
 
22c213
+#if 0 /* Disabled in Red Hat Enterprise Linux */
22c213
     /* Check compatibility of old machine-types that didn't
22c213
      * auto-increase level/xlevel/xlevel2: */
22c213
 
22c213
@@ -350,6 +351,7 @@ int main(int argc, char **argv)
22c213
     add_cpuid_test("x86/cpuid/xlevel-compat/pc-i440fx-2.4/npt-on",
febaa2
                    "-machine pc-i440fx-2.4 -cpu SandyBridge,svm=on,npt=on",
22c213
                    "xlevel", 0x80000008);
22c213
+#endif
22c213
 
22c213
     /* Test feature parsing */
22c213
     add_feature_test("x86/cpuid/features/plus",
febaa2
diff --git a/tests/qtest/usb-hcd-xhci-test.c b/tests/qtest/usb-hcd-xhci-test.c
22c213
index 10ef9d2a91..3855873050 100644
febaa2
--- a/tests/qtest/usb-hcd-xhci-test.c
febaa2
+++ b/tests/qtest/usb-hcd-xhci-test.c
22c213
@@ -21,6 +21,7 @@ static void test_xhci_hotplug(void)
22c213
     usb_test_hotplug(global_qtest, "xhci", "1", NULL);
22c213
 }
22c213
 
22c213
+#if 0 /* Disabled for Red Hat Enterprise Linux */
22c213
 static void test_usb_uas_hotplug(void)
22c213
 {
22c213
     QTestState *qts = global_qtest;
22c213
@@ -36,6 +37,7 @@ static void test_usb_uas_hotplug(void)
22c213
     qtest_qmp_device_del(qts, "scsihd");
22c213
     qtest_qmp_device_del(qts, "uas");
22c213
 }
22c213
+#endif
22c213
 
22c213
 static void test_usb_ccid_hotplug(void)
22c213
 {
22c213
@@ -56,7 +58,9 @@ int main(int argc, char **argv)
22c213
 
22c213
     qtest_add_func("/xhci/pci/init", test_xhci_init);
22c213
     qtest_add_func("/xhci/pci/hotplug", test_xhci_hotplug);
22c213
+#if 0 /* Disabled for Red Hat Enterprise Linux */
22c213
     qtest_add_func("/xhci/pci/hotplug/usb-uas", test_usb_uas_hotplug);
22c213
+#endif
22c213
     qtest_add_func("/xhci/pci/hotplug/usb-ccid", test_usb_ccid_hotplug);
22c213
 
22c213
     qtest_start("-device nec-usb-xhci,id=xhci"
22c213
-- 
28f2e1
2.27.0
22c213