]> git.ipfire.org Git - thirdparty/qemu.git/commit
megasas: fix mapped frame size
authorPeter Lieven <pl@kamp.de>
Thu, 4 Apr 2019 12:10:15 +0000 (14:10 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Jul 2019 19:10:31 +0000 (14:10 -0500)
commitf173a43a6daa7a21ddeb98ed7ee7eec3601c6747
treedb9d7bfa6fba6bcd60ad9ed738f311eefeed2fb5
parent2157938f7b4fd87340b13b3e74d0284cf178075c
megasas: fix mapped frame size

the current value of 1024 bytes (16 * MFI_FRAME_SIZE) we map is not enough to hold
the maximum number of scatter gather elements we advertise. We actually need a
maximum of 2048 bytes. This is 128 max sg elements * 16 bytes (sizeof (union mfi_sgl)).

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Message-Id: <20190404121015.28634-1-pl@kamp.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 2e56fbc87f6ec3cd56c37b01d313abd502b80d61)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/megasas.c