]> Git Repo - qemu.git/blobdiff - tests/virtio-rng-test.c
tests: virtio-9p: add walk operation test
[qemu.git] / tests / virtio-rng-test.c
index 41c1cdb1aa2e7701b382ccd280d42fefc0ee228a..dcecf7746363c33d0b3dc3db680a5c21a7091a90 100644 (file)
@@ -7,10 +7,8 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include <glib.h>
-#include <string.h>
-#include "libqtest.h"
 #include "qemu/osdep.h"
+#include "libqtest.h"
 #include "libqos/pci.h"
 
 #define PCI_SLOT_HP             0x06
@@ -22,8 +20,13 @@ static void pci_nop(void)
 
 static void hotplug(void)
 {
+    const char *arch = qtest_get_arch();
+
     qpci_plug_device_test("virtio-rng-pci", "rng1", PCI_SLOT_HP, NULL);
-    qpci_unplug_acpi_device_test("rng1", PCI_SLOT_HP);
+
+    if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) {
+        qpci_unplug_acpi_device_test("rng1", PCI_SLOT_HP);
+    }
 }
 
 int main(int argc, char **argv)
This page took 0.023391 seconds and 4 git commands to generate.