Description of problem:
$ qemu-system-x86_64 -device
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.
Analyzed by armbru: setting physical_block_size overwrites logical_block_size due to incorrect use of inttypes macros in parse_uint16().
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
Reproduced in qemu-kvm-0.12.1.2-2.69.el6
Verified in qemu-kvm-0.12.1.2-2.71.el6
1.start VM with following command.
#/usr/libexec/qemu-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name tt -uuid `uuidgen` -rtc-td-hack -boot c -drive file=/home/RHEL-Server-6.0-64-virtio.raw,if=none,id=drive-virtio0-0-0,boot=on,format=raw -device virtio-blk-pci,drive=drive-virtio0-0-0,id=ide0-0-0,logical_block_size=4096,physical_block_size=4096 -net nic,macaddr=20:40:50:12:23:21,model=virtio,vlan=0 -net tap,script=/etc/qemu-ifup,vlan=0 -vnc :8 -monitor stdio
qemu-kvm will not crash for Floating point exception,Guest can work successfully.
The bug has already been fixed.
according to #c7. closing