[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 3/6] blockdev: with -drive if=virtio, use generic virtio-b
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v3 3/6] blockdev: with -drive if=virtio, use generic virtio-blk |
Date: |
Sat, 20 Mar 2021 07:22:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Laurent Vivier <laurent@vivier.eu> writes:
> Rather than checking if the machine is an s390x to use virtio-blk-ccw
> instead of virtio-blk-pci, use the alias virtio-blk that is set to
> the expected target.
>
> This also enables the use of virtio-blk-device for targets without
> PCI or CCW.
>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> ---
> blockdev.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/blockdev.c b/blockdev.c
> index 5cc7c7effe9f..64da5350e3ad 100644
> --- a/blockdev.c
> +++ b/blockdev.c
> @@ -969,11 +969,7 @@ DriveInfo *drive_new(QemuOpts *all_opts,
> BlockInterfaceType block_default_type,
> QemuOpts *devopts;
> devopts = qemu_opts_create(qemu_find_opts("device"), NULL, 0,
> &error_abort);
> - if (arch_type == QEMU_ARCH_S390X) {
> - qemu_opt_set(devopts, "driver", "virtio-blk-ccw", &error_abort);
> - } else {
> - qemu_opt_set(devopts, "driver", "virtio-blk-pci", &error_abort);
> - }
> + qemu_opt_set(devopts, "driver", "virtio-blk", &error_abort);
> qemu_opt_set(devopts, "drive", qdict_get_str(bs_opts, "id"),
> &error_abort);
> }
Acked-by: Markus Armbruster <armbru@redhat.com>
- [PATCH v3 0/6] iotests: fix failures with non-PCI machines, Laurent Vivier, 2021/03/19
- [PATCH v3 1/6] qdev: define list of archs with virtio-pci or virtio-ccw, Laurent Vivier, 2021/03/19
- [PATCH v3 6/6] iotests: iothreads need ioeventfd, Laurent Vivier, 2021/03/19
- [PATCH v3 4/6] iotests: Revert "iotests: use -ccw on s390x for 040, 139, and 182", Laurent Vivier, 2021/03/19
- [PATCH v3 5/6] iotests: test m68k with the virt machine, Laurent Vivier, 2021/03/19
- [PATCH v3 2/6] m68k: add the virtio devices aliases, Laurent Vivier, 2021/03/19
- [PATCH v3 3/6] blockdev: with -drive if=virtio, use generic virtio-blk, Laurent Vivier, 2021/03/19
- Re: [PATCH v3 3/6] blockdev: with -drive if=virtio, use generic virtio-blk,
Markus Armbruster <=
- Re: [PATCH v3 0/6] iotests: fix failures with non-PCI machines, Alex Bennée, 2021/03/22