diff options
author | Joerg Roedel | 2019-02-07 12:59:17 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2019-03-06 11:19:26 -0500 |
commit | fd1068e1860e44aaaa337b516df4518d1ce98da1 (patch) | |
tree | 538c2b98b0a1d0c0841e6be1b5b1085965a25d2e /usr | |
parent | e6d6dd6c875eb3c9b69bb640419405726e6e0bbe (diff) |
virtio-blk: Consider virtio_max_dma_size() for maximum segment size
Segments can't be larger than the maximum DMA mapping size
supported on the platform. Take that into account when
setting the maximum segment size for a block device.
Cc: stable@vger.kernel.org
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions