[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/6] qdev: define list of archs with virtio-pci or virtio-
From: |
Cornelia Huck |
Subject: |
Re: [PATCH v2 1/6] qdev: define list of archs with virtio-pci or virtio-ccw |
Date: |
Fri, 19 Mar 2021 15:40:17 +0100 |
On Fri, 19 Mar 2021 14:25:32 +0100
Laurent Vivier <laurent@vivier.eu> wrote:
> 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>
> ---
> include/sysemu/arch_init.h | 7 +++++
> softmmu/qdev-monitor.c | 53 ++++++++++++++++++--------------------
> 2 files changed, 32 insertions(+), 28 deletions(-)
>
> diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h
> index 54f069d49126..7217a822a14b 100644
> --- a/include/sysemu/arch_init.h
> +++ b/include/sysemu/arch_init.h
> @@ -35,4 +35,11 @@ extern const uint32_t arch_type;
> int kvm_available(void);
> int xen_available(void);
>
Maybe add a comment
/* 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
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
- [PATCH v2 0/6] iotests: fix failures with non-PCI machines, Laurent Vivier, 2021/03/19
- [PATCH v2 1/6] qdev: define list of archs with virtio-pci or virtio-ccw, Laurent Vivier, 2021/03/19
- Re: [PATCH v2 1/6] qdev: define list of archs with virtio-pci or virtio-ccw,
Cornelia Huck <=
- [PATCH v2 2/6] m68k: add the virtio devices aliases, Laurent Vivier, 2021/03/19
- [PATCH v2 3/6] blockdev: with -drive if=virtio, use generic virtio-blk, Laurent Vivier, 2021/03/19
- [PATCH v2 6/6] iotests: iothreads need ioeventfd, Laurent Vivier, 2021/03/19