Bug 1196531 - fail to specify the physical_block_size value(not 512) for IDE disk
Summary: fail to specify the physical_block_size value(not 512) for IDE disk
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-26 07:59 UTC by Sibiao Luo
Modified: 2015-02-27 02:03 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-27 02:03:27 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Sibiao Luo 2015-02-26 07:59:31 UTC
Description of problem:
separate this bug from bug 1134693 for ide fail to specify the physical_block_size.

Version-Release number of selected component (if applicable):
host info:
# uname -r && rpm -q qemu-kvm
2.6.32-538.el6.x86_64
qemu-kvm-0.12.1.2-2.454.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.launch a KVM guest with physical_block_size=1024 specified.
e.g:...-drive file=/home/my-data-disk1.qcow2,if=none,id=drive-data-disk1,format=qcow2,cache=none,aio=native -device ide-drive,drive=drive-data-disk1,id=data-disk1,bus=ide.0,unit=0,physical_block_size=1024

2.(qemu) info qtree
...
          type IDE
          dev: ide-drive, id "data-disk1"
            dev-prop: unit = 0
            dev-prop: drive = drive-data-disk1
            dev-prop: logical_block_size = 512
            dev-prop: physical_block_size = 1024
3.check the physical_block_size from guest.
# cat /sys/block/sda/queue/physical_block_size

Actual results:
after step 3, it fail to emulate the physical_block_size correctly.
# cat /sys/block/sda/queue/physical_block_size
512

Expected results:
the physical_block_size should be 1024 in guest.

Additional info:

Comment 1 Kevin Wolf 2015-02-26 10:38:35 UTC
Are you sure that you reproduced this with the fix for bug 1134693? For me, it
just works now.

Comment 2 Sibiao Luo 2015-02-27 02:03:27 UTC
(In reply to Kevin Wolf from comment #1)
> Are you sure that you reproduced this with the fix for bug 1134693? For me,
> it
> just works now.
It also works for me now, did not find any unusual, thanks.

# rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.454.el6.x86_64
# rpm -q --changelog qemu-kvm-0.12.1.2-2.454.el6.x86_64 | grep 1134693
- kvm-ide-Check-validity-of-logical-block-size.patch [bz#1134693]
- Resolves: bz#1134693

e.g:...-drive file=/home/my-data-disk1.qcow2,if=none,id=drive-data-disk1,format=qcow2,cache=none,aio=native -device ide-drive,drive=drive-data-disk1,id=data-disk1,bus=ide.0,unit=0,physical_block_size=1024

# cat /sys/block/sda/queue/physical_block_size
1024


Note You need to log in before you can comment on or make changes to this bug.