diff options
author | Joerg Roedel <[email protected]> | 2019-02-07 12:59:17 +0100 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2019-03-06 11:19:26 -0500 |
commit | fd1068e1860e44aaaa337b516df4518d1ce98da1 (patch) | |
tree | 538c2b98b0a1d0c0841e6be1b5b1085965a25d2e /lib/test_overflow.c | |
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: [email protected]
Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions