qemu-e2k/hw/block
Mark Kanda 0a75b60cdb virtio-blk: reject configs with logical block size > physical block size
virtio-blk logical block size should never be larger than physical block
size because it doesn't make sense to have such configurations. QEMU doesn't
have a way to effectively express this condition; the best it can do is
report the physical block exponent as 0 - indicating the logical block size
equals the physical block size.

This is identical to commit 3da023b582
but applied to virtio-blk (instead of virtio-scsi).

Signed-off-by: Mark Kanda <mark.kanda@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Ameya More <ameya.more@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 773169891f9f2deb4cb7c4ef2655580dbe24c1d1.1513005190.git.mark.kanda@oracle.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2017-12-19 10:25:09 +00:00
..
dataplane hw/block: Fix the return type 2017-12-19 09:25:28 +00:00
block.c hw/block: Fix the return type 2017-12-19 09:25:28 +00:00
cdrom.c block: Clean up includes 2016-01-20 13:36:23 +01:00
ecc.c block: Clean up includes 2016-01-20 13:36:23 +01:00
fdc.c hw/block: Use errp directly rather than local_err 2017-12-19 10:25:03 +00:00
hd-geometry.c qemu-common: stop including qemu/bswap.h from qemu-common.h 2016-05-19 16:42:28 +02:00
m25p80.c m25p80: Add support for n25q512a11 and n25q512a13 2017-12-13 17:59:21 +00:00
Makefile.objs xen: do not build backends for targets that do not support xen 2017-03-19 11:12:12 +01:00
nand.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
nvme.c hw/block: Use errp directly rather than local_err 2017-12-19 10:25:03 +00:00
nvme.h nvme: Add support for Read Data and Write Data in CMBs. 2017-06-26 14:51:13 +02:00
onenand.c hw/block/onenand: Remove dead code block 2017-10-06 16:28:58 +02:00
pflash_cfi01.c hw/block/pflash_cfi01, pflash_cfi02: Use memory_region_init_rom_device() 2017-07-14 17:59:42 +01:00
pflash_cfi02.c hw/block/pflash_cfi01, pflash_cfi02: Use memory_region_init_rom_device() 2017-07-14 17:59:42 +01:00
tc58128.c block: Use DIV_ROUND_UP 2016-06-07 18:19:24 +03:00
trace-events xen-disk: use an IOThread per instance 2017-12-14 15:24:22 -08:00
virtio-blk.c virtio-blk: reject configs with logical block size > physical block size 2017-12-19 10:25:09 +00:00
xen_blkif.h xen: import ring.h from xen 2017-04-21 12:41:29 -07:00
xen_disk.c xen-disk: use an IOThread per instance 2017-12-14 15:24:22 -08:00