Re: [Qemu-devel] [PATCH] spapr-vscsi: fix SOLNT bit in SRP_RSP

2013-07-29 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

[Qemu-devel] [PATCH] spapr-vscsi: fix SOLNT bit in SRP_RSP

2013-07-28 Thread Alexey Kardashevskiy
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 alwa