Description of problem: When set "physical/logical block size" to "4096_512", wrong block size displayed in guest Version-Release number of selected component (if applicable): kernel version:3.10.0-657.el7.x86_64 qemu-kvm-rhev version:qemu-kvm-rhev-2.9.0-2.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Start win2012 guest with physical/logical block size set to "4096_512", qemu cmds as bellow: /usr/libexec/qemu-kvm \ -name 'avocado-vt-vm1' \ -sandbox off \ -machine pc \ -nodefaults \ -vga std \ -chardev socket,id=qmp_id_qmpmonitor1,path=/var/tmp/monitor-qmpmonitor1-20170124-161452-WcepYpO8,server,nowait \ -mon chardev=qmp_id_qmpmonitor1,mode=control \ -chardev socket,id=qmp_id_catch_monitor,path=/var/tmp/monitor-catch_monitor-20170124-161452-WcepYpO8,server,nowait \ -mon chardev=qmp_id_catch_monitor,mode=control \ -device pvpanic,ioport=0x505,id=idqap0h5 \ -chardev socket,id=serial_id_serial0,path=/var/tmp/serial-serial0-20170124-161452-WcepYpO8,server,nowait \ -device isa-serial,chardev=serial_id_serial0 \ -chardev socket,id=seabioslog_id_20170124-161452-WcepYpO8,path=/var/tmp/seabios-20170124-161452-WcepYpO8,server,nowait \ -device isa-debugcon,chardev=seabioslog_id_20170124-161452-WcepYpO8,iobase=0x402 \ -drive id=drive_image1,if=none,snapshot=on,aio=native,cache=none,format=qcow2,file=/home/kvm_autotest_root/images/win2012-64r2-virtio.qcow2 \ -device virtio-blk-pci,id=image1,drive=drive_image1,bus=pci.0 \ -drive id=data_image1,if=none,snapshot=on,aio=native,cache=none,format=qcow2,file=/home/test.qcow2 \ -device virtio-blk-pci,id=data1,drive=data_image1,bus=pci.0,physical_block_size=4096,logical_block_size=512 \ -device virtio-net-pci,mac=9a:b2:b3:b4:b5:b6,id=iduCv1Ln,vectors=4,netdev=idKgexFk,bus=pci.0,addr=05 \ -netdev tap,id=idKgexFk,vhost=on \ -m 4096 \ -smp 4,maxcpus=4,cores=2,threads=1,sockets=2 \ -cpu host \ -vnc :1 \ -rtc base=localtime,clock=host,driftfix=slew \ -boot order=cdn,menu=on,strict=off \ -enable-kvm \ -monitor stdio \ -spice ipv4,port=5000,disable-ticketing \ 2.Check block size in guest via "powershell 'get-disk|format-list'" Actual results: Wrong block size displayed in guest. ...... LogicalSectorSize:512 PhysicalSectorSize:512 ...... Expected results: ...... LogicalSectorSize:512 PhysicalSectorSize:4096 ...... Additional info: It's a regression bug. Test on rhel7.4, it works ok.
Tested with virtio-scsi not hit this issue, so it only occurred on virtio-blk. cmd: -device virtio-scsi-pci,id=scsi1,bus=pci.0 \ -drive file=/home/scsi/disk2.qcow2,if=none,id=drive-virtio-disk1,format=qcow2,cache=none,aio=native,media=disk,werror=stop,rerror=stop \ -device scsi-hd,bus=scsi1.0,drive=drive-virtio-disk1,id=virtio-scsi-pci1,physical_block_size=4096,logical_block_size=512 \ kernel-3.10.0-656.el7.x86_64 qemu-kvm-rhev-2.9.0-2.el7.x86_64 guest: win10 x86_64
Additional info: Test on win10 guest with virtio-win-prewhql-0.1-136.iso, the same issue also exist. Test on RHEL7.4 guest(kernel version:3.10.0-648.el7.x86_64), not hit this problem.
Hi aliang, Could this issue duplicate to this one Bug 1428641 - [virtio-win][viostor]Windows guest's physical block size change to "512" after installation with the size "4096"? Thanks~ Peixiu
I'm not sure it has the same root cause with https://bugzilla.redhat.com/show_bug.cgi?id=1428641. In this bug, i test the data disk and in https://bugzilla.redhat.com/show_bug.cgi?id=1428641, i test the system disk. So i think if their root cause is the same, it can be tagged as "duplicated".
(In reply to aihua liang from comment #5) > I'm not sure it has the same root cause with > https://bugzilla.redhat.com/show_bug.cgi?id=1428641. > > In this bug, i test the data disk and in > https://bugzilla.redhat.com/show_bug.cgi?id=1428641, i test the system disk. > > So i think if their root cause is the same, it can be tagged as "duplicated". OK, aliang, thanks for your reply~ Hi vadim, Could you help to confirm if this bug is duplicate to Bug 1428641 - [virtio-win][viostor]Windows guest's physical block size change to "512" after installation with the size "4096"? Thanks a lot~ Peixiu
(In reply to Peixiu Hou from comment #6) > (In reply to aihua liang from comment #5) > > I'm not sure it has the same root cause with > > https://bugzilla.redhat.com/show_bug.cgi?id=1428641. > > > > In this bug, i test the data disk and in > > https://bugzilla.redhat.com/show_bug.cgi?id=1428641, i test the system disk. > > > > So i think if their root cause is the same, it can be tagged as "duplicated". > > OK, aliang, thanks for your reply~ > > Hi vadim, > > Could you help to confirm if this bug is duplicate to Bug 1428641 - > [virtio-win][viostor]Windows guest's physical block size change to "512" > after installation with the size "4096"? > > Thanks a lot~ > Peixiu Hi Peixiu, Yes it seems to be the same problem. I'll try to see is I can come up with a quick fix for this issue. Best regards, Vadim.
(In reply to Vadim Rozenfeld from comment #7) > (In reply to Peixiu Hou from comment #6) > > (In reply to aihua liang from comment #5) > > > I'm not sure it has the same root cause with > > > https://bugzilla.redhat.com/show_bug.cgi?id=1428641. > > > > > > In this bug, i test the data disk and in > > > https://bugzilla.redhat.com/show_bug.cgi?id=1428641, i test the system disk. > > > > > > So i think if their root cause is the same, it can be tagged as "duplicated". > > > > OK, aliang, thanks for your reply~ > > > > Hi vadim, > > > > Could you help to confirm if this bug is duplicate to Bug 1428641 - > > [virtio-win][viostor]Windows guest's physical block size change to "512" > > after installation with the size "4096"? > > > > Thanks a lot~ > > Peixiu > > Hi Peixiu, > Yes it seems to be the same problem. I'll try to see is I can come up with a > quick fix for this issue. > Ok, thank for your confirm, then I marked this bug duplicate to this one: Bug 1428641 - [virtio-win][viostor]Windows guest's physical block size change to "512" after installation with the size "4096". *** This bug has been marked as a duplicate of bug 1428641 ***