Bug 889135
Summary: | core trace/dump if specify the value of physical_block_size/logical_block_size is not multiple of 512 bytes | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Sibiao Luo <sluo> | ||||
Component: | qemu-kvm | Assignee: | Stefan Hajnoczi <stefanha> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.4 | CC: | acathrow, areis, bsarathy, chayang, flang, juzhang, kwolf, lnovich, michen, mkenneth, pbonzini, qzhang, rhod, sluo, virt-maint, xfu | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | qemu-kvm-0.12.1.2-2.361.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-11-21 06:26:58 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Sibiao Luo
2012-12-20 10:13:44 UTC
Created attachment 666578 [details]
guest call trace logs.
Seems physical_block_size and logical_block_siz only can be set 512 or 4096. A little aggressive. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. Assigning to Stefan, he did the upstream patch. Are these in the whitelist though? Thanks Paolo and sorry for the late response. Here's the error message we get upstream: $ qemu-system-x86_64 -drive file=test.img,if=none,id=drive-data-disk,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x6,scsi=off,drive=drive-data-disk,id=data-disk,physical_block_size=1000,logical_block_size=1000 qemu-system-x86_64: -device virtio-blk-pci,bus=pci.0,addr=0x6,scsi=off,drive=drive-data-disk,id=data-disk,physical_block_size=1000,logical_block_size=1000: Property data-disk.physical_block_size doesn't take value '1000', it's not a power of 2 Let's backport the fix for RHEL 6.5. Reproduce this bug as follow version: Host # uname -r 2.6.32-393.el6.x86_64 # rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.356.el6.x86_64 Guest:win2012-64 Steps: 1.Boot guest with -drive file=/root/test1.raw,if=none,id=drive-data-disk,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-scsi-pci,bus=pci.0,addr=0x6,id=scsi0 -device scsi-hd,drive=drive-data-disk,bus=scsi0.0,id=data-disk,physical_block_size=1000,logical_block_size=1000 Results: (gdb) bt #0 0x00007ffff57428a5 in raise () from /lib64/libc.so.6 #1 0x00007ffff5744085 in abort () from /lib64/libc.so.6 #2 0x00007ffff7e1ef48 in qemu_memalign (alignment=1000, size=4096) at /usr/src/debug/qemu-kvm-0.12.1.2/osdep.c:112 #3 0x00007ffff7e5a632 in scsi_disk_emulate_command (req=0x7fffe8000910, buf=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/scsi-disk.c:1228 #4 scsi_send_command (req=0x7fffe8000910, buf=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/scsi-disk.c:1470 #5 0x00007ffff7e57651 in scsi_req_enqueue (req=0x7fffe8000910) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/scsi-bus.c:665 #6 0x00007ffff7df9de4 in virtio_scsi_handle_cmd (vdev=0x7ffff8791ee0, vq=0x7ffff91a3310) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio-scsi.c:515 #7 0x00007ffff7e03825 in kvm_handle_io (env=0x7ffff870df30) at /usr/src/debug/qemu-kvm-0.12.1.2/kvm-all.c:147 #8 kvm_run (env=0x7ffff870df30) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1048 #9 0x00007ffff7e038d9 in kvm_cpu_exec (env=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1743 #10 0x00007ffff7e047bd in kvm_main_loop_cpu (_env=0x7ffff870df30) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2004 #11 ap_main_loop (_env=0x7ffff870df30) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2060 ---Type <return> to continue, or q <return> to quit--- #12 0x00007ffff7739851 in start_thread () from /lib64/libpthread.so.0 #13 0x00007ffff57f890d in clone () from /lib64/libc.so.6 (gdb) Verify this bug as follow version: Host # uname -r 2.6.32-393.el6.x86_64 # rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.377.el6.x86_64 steps as same as reproduce Results:Error info qemu-kvm: -device scsi-hd,drive=drive-data-disk,bus=scsi0.0,id=data-disk,physical_block_size=1000,logical_block_size=1000: Property 'scsi-hd.physical_block_size' doesn't take value '1000' Addtional info: 1)I also tried virtio-blk and ide-drive.Also can give error info: ... qemu-kvm: -device ide-drive,drive=drive-data-disk,id=data-disk,physical_block_size=3000,logical_block_size=3000: Property 'ide-drive.physical_block_size' doesn't take value '3000' 2)Also test other values ,can give error info. ...physical_block_size=2000,logical_block_size=2000... ...physical_block_size=3000,logical_block_size=3000... According to above test ,this bug fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-1553.html |