aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2021-03-23 16:53:02 +0000
committerAlex Bennée <alex.bennee@linaro.org>2021-03-24 14:25:48 +0000
commit203adb43fc9d47a8cfa368c327d886cfddfae682 (patch)
treeb1e7c1cc44bba0a6ba9c01fe838e45ba9b5492a7 /include
parent9737c8bce932b760fc82929eebf3e8d3a26b1ce3 (diff)
downloadqemu-203adb43fc9d47a8cfa368c327d886cfddfae682.zip
qemu-203adb43fc9d47a8cfa368c327d886cfddfae682.tar.gz
qemu-203adb43fc9d47a8cfa368c327d886cfddfae682.tar.bz2
qdev: define list of archs with virtio-pci or virtio-ccw
This is used to define virtio-*-pci and virtio-*-ccw aliases rather than substracting the CCW architecture from all the others. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <20210319202335.2397060-2-laurent@vivier.eu> Message-Id: <20210323165308.15244-17-alex.bennee@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/arch_init.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h
index 54f069d..0c90706 100644
--- a/include/sysemu/arch_init.h
+++ b/include/sysemu/arch_init.h
@@ -35,4 +35,12 @@ extern const uint32_t arch_type;
int kvm_available(void);
int xen_available(void);
+/* default virtio transport per architecture */
+#define QEMU_ARCH_VIRTIO_PCI (QEMU_ARCH_ALPHA | QEMU_ARCH_ARM | \
+ QEMU_ARCH_HPPA | QEMU_ARCH_I386 | \
+ QEMU_ARCH_MIPS | QEMU_ARCH_PPC | \
+ QEMU_ARCH_RISCV | QEMU_ARCH_SH4 | \
+ QEMU_ARCH_SPARC | QEMU_ARCH_XTENSA)
+#define QEMU_ARCH_VIRTIO_CCW (QEMU_ARCH_S390X)
+
#endif