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 3da023b5827543ee4c022986ea2ad9d1274410b2
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
..
2016-10-04 13:28:07 +01:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:03 +03:00
2017-10-27 16:03:54 +02:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:03 +03:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:03 +03:00
2017-12-15 09:49:23 +11:00
2016-01-29 15:07:25 +00:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:03 +03:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:03 +03:00
2017-08-30 18:23:25 +02:00