From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56930 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGVFt-00054t-8S for qemu-devel@nongnu.org; Mon, 24 May 2010 06:51:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGVFr-0000pn-6w for qemu-devel@nongnu.org; Mon, 24 May 2010 06:51:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36509) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGVFq-0000pa-Vy for qemu-devel@nongnu.org; Mon, 24 May 2010 06:51:31 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4OApTmQ006166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 24 May 2010 06:51:29 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4OApSxg007942 for ; Mon, 24 May 2010 06:51:28 -0400 Date: Mon, 24 May 2010 13:51:27 +0300 From: Gleb Natapov Message-ID: <20100524105127.GF22163@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] strange bug with virtio-blk-pci properties List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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.