]> git.proxmox.com Git - mirror_qemu.git/commit
nvme: Limit blkshift to 12 (for 4 kB blocks)
authorMax Reitz <mreitz@redhat.com>
Tue, 30 Jul 2019 11:48:12 +0000 (13:48 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 30 Jul 2019 12:49:24 +0000 (14:49 +0200)
commit1120407bdf70a2c4681464ae08bdb7c615566200
tree525df53f207f0eb32ed7b6a8d9e2be2971b9dd3d
parent6e9a6cbe7d56107f5e0d7711905dc19bb4d7e3f0
nvme: Limit blkshift to 12 (for 4 kB blocks)

Linux does not support blocks greater than 4 kB anyway, so we might as
well limit blkshift to 12 and thus save us from some potential trouble.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Suggested-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190730114812.10493-1-mreitz@redhat.com
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Coverity: CID 1403771
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/nvme.c