]> git.proxmox.com Git - qemu.git/commit
block: enforce constraints on block size properties
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 14 Mar 2012 15:57:06 +0000 (15:57 +0000)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 12:54:40 +0000 (14:54 +0200)
commit1fc86bf963a0617bc9eabfa6c14dbca76cd57976
tree25d43bed8c5b7b2e02dd8d275145d252455e31ed
parent02fda01c3024463e561820afb0ba09daba4014d9
block: enforce constraints on block size properties

Nicolae Mogoreanu <mogo@google.com> noticed that I/O requests can lead
to QEMU crashes when the logical_block_size property is smaller than 512
bytes.

Using the new "blocksize" property we can properly enforce constraints
on the block size such that QEMU's block layer is able to operate
correctly.

Reported-by: Nicolae Mogoreanu <mogo@google.com>
Reported-by: Michael Halcrow <mhalcrow@google.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.h