]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Put format=raw onto cmd line for SCSI passthrough
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Oct 2018 09:09:56 +0000 (11:09 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 17 Oct 2018 07:16:20 +0000 (09:16 +0200)
commit641a95c9b64e74dccb55ebae8f00da3f10c1feae
treea9da2b4fe1b524bc07eb6d181f0bc8c520819e79
parent3a1cdb06fd9bc5e35230f6198e697d6ec03d1206
qemu: Put format=raw onto cmd line for SCSI passthrough

https://bugzilla.redhat.com/show_bug.cgi?id=1632833

When doing a SCSI passthrough we don't put format= onto the
command line. This causes qemu to probe the format automatically
which ends up in a warning in the domain log and possible qemu
disabling writes to the first block (according to the warning
message).

Based-on-work-of: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/hostdev-scsi-lsi.args
tests/qemuxml2argvdata/hostdev-scsi-readonly.args
tests/qemuxml2argvdata/hostdev-scsi-virtio-scsi.args