]> xenbits.xensource.com Git - libvirt.git/commit
qemuBuildDiskCommandLine: Clarify logic around building -device for disks
authorPeter Krempa <pkrempa@redhat.com>
Mon, 4 May 2020 14:03:59 +0000 (16:03 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 May 2020 04:54:59 +0000 (06:54 +0200)
commit10f5ad9b5883f63bbeb06ee61fb8ca3c1a37e60f
tree1b9decd8cea76d3b50e708470cd6f1436212c713
parentcc4a277db24a06f18650fdfa30a78dd4191e77c9
qemuBuildDiskCommandLine: Clarify logic around building -device for disks

For 'SD' disks and floppies in the pre-blockdev era we don't format
-device. Extract the logic so that it's more clear and add comments.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c