]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Remove scsi parameter for vhost-user-blk for qemu < 4.2
authorshenjiatong <yshxxsjt715@gmail.com>
Sat, 22 Jan 2022 04:10:35 +0000 (12:10 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 Jan 2022 09:17:00 +0000 (10:17 +0100)
commit7bc7304ca5ae7de2c68e5b40fa5f2aced1cbb3eb
tree65ebe50ca62f261764948fbee13d04ff72997503
parent5e645b80f4969aa558aac5f467beb07344a9e95d
qemu: Remove scsi parameter for vhost-user-blk for qemu < 4.2

When trying to attach vhost-user-blk device to virtual machine using
qemu < 4.2 libvirt would mistakenly add a scsi=off parameter, which is
not supported by qemu.

Fixes: https://gitlab.com/libvirt/libvirt/-/issues/265
Signed-off-by: shenjiatong <yshxxsjt715@gmail.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/disk-vhostuser-numa.x86_64-4.2.0.args