Skip to contentSkip to conversation

strange bug with virtio-blk-pci properties

Qemu-devel Gleb Natapov 1 participant 1 message May 24, 2010

lore
Share & tools
lore
#0 lore raw

Running:

$ qemu-system-x86_64  -device virtio-blk-pci,logical_block_size=4096,physical_block_size=4096,drive=boot
-drive file=/tmp/a.qcow2,if=none,id=boot

gives me: Floating point exception

The crash is in hw/virtio-blk.c:505 blkcfg.blk_size is zero because s->conf->logical_block_size is zero.

Running:

$ qemu-system-x86_64  -device virtio-blk-pci,physical_block_size=4096,logical_block_size=4096,drive=boot
-drive file=/tmp/a.qcow2,if=none,id=boot

works.

--
Gleb.