Alexey Kardashevskiy dbd94f8e4a spapr-vscsi: fix SOLNT bit in SRP_RSP
The driver calculates SOLNT bit from UCSOLNT and  SCSOLNT bits from
the request. The iu pointer has a type of srp_iu* which points to a union,
so cmd and rsp overlap. As the vscsi_send_rsp function calls
memset(iu, 0, sizeof(rsp)), it clears first 36 bytes of both cmd and rsp
so cmd.sol_not is always zero at the moment of calculating rsp.sol_not.

This fixes the bug.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-id: 1375073319-17488-1-git-send-email-aik@ozlabs.ru
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-07-29 10:37:09 -05:00
2013-07-09 13:38:56 -05:00
2013-07-29 10:37:09 -05:00
2013-07-26 21:10:11 +02:00
2013-07-26 22:01:31 +02:00
2013-07-24 15:37:43 +02:00
2013-07-26 21:10:11 +02:00
2013-05-03 13:58:09 +02:00
2013-07-22 12:52:34 -05:00
2013-06-11 23:45:43 +04:00
2013-07-18 08:17:42 -07:00
2013-07-23 11:12:00 +02:00
2013-07-27 11:22:53 +04:00
2013-07-23 02:41:31 +02:00
2013-07-15 09:49:00 +02:00
2011-12-09 11:25:22 +00:00
2013-07-23 11:12:00 +02:00
2013-06-14 15:33:10 +01:00
2013-05-03 13:05:49 +02:00
2013-05-18 16:35:12 +04:00
2013-06-06 11:27:05 +02:00
2013-06-06 11:27:05 +02:00
2013-07-19 12:52:03 +04:00
2013-05-01 13:06:07 +02:00
2013-05-03 12:04:40 -05:00
2013-07-23 11:11:59 +02:00
2013-07-29 11:13:44 +00:00
2013-05-20 10:55:18 -05:00
2013-07-10 13:42:09 -04:00
2013-07-04 17:42:45 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%