Received: from eggs.gnu.org ([2001:4830:134:3::10]:44621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi1Co-00079b-0Y for qemu-devel@nongnu.org; Thu, 08 Sep 2016 11:25:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi1Cm-00087n-Pv for qemu-devel@nongnu.org; Thu, 08 Sep 2016 11:25:33 -0400 References: <1473283640-15756-1-git-send-email-eblake@redhat.com> <69ad87e7-69c8-e840-3eb2-13dff6574ce8@fam-schranz.de> From: Eric Blake Message-ID: <52f5dd11-9ade-9ec2-3f06-db0ccecfdec9@redhat.com> Date: Thu, 8 Sep 2016 10:25:21 -0500 MIME-Version: 1.0 In-Reply-To: <69ad87e7-69c8-e840-3eb2-13dff6574ce8@fam-schranz.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cdsxVWK4O8gumqtTRTFh40pgxRTvjbQx0" Subject: Re: [Qemu-devel] [PATCH v2] iscsi: Fix divide-by-zero regression on raw SG devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Holger Schranz , qemu-devel@nongnu.org Cc: kwolf@redhat.com, qemu-block@nongnu.org, qemu-stable@nongnu.org, pbonzini@redhat.com, Ronnie Sahlberg , Peter Lieven , Max Reitz , Ralf Mueller This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cdsxVWK4O8gumqtTRTFh40pgxRTvjbQx0 From: Eric Blake To: Holger Schranz , qemu-devel@nongnu.org Cc: kwolf@redhat.com, qemu-block@nongnu.org, qemu-stable@nongnu.org, pbonzini@redhat.com, Ronnie Sahlberg , Peter Lieven , Max Reitz , Ralf Mueller Message-ID: <52f5dd11-9ade-9ec2-3f06-db0ccecfdec9@redhat.com> Subject: Re: [PATCH v2] iscsi: Fix divide-by-zero regression on raw SG devices References: <1473283640-15756-1-git-send-email-eblake@redhat.com> <69ad87e7-69c8-e840-3eb2-13dff6574ce8@fam-schranz.de> In-Reply-To: <69ad87e7-69c8-e840-3eb2-13dff6574ce8@fam-schranz.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/08/2016 09:27 AM, Holger Schranz wrote: > Hi Eric, >=20 > Thanks a lot, it seems the patch works. The VM starting. Should I take that as a Tested-by: line? > Unfortunately we run into the next issue. By the accessing the > megasas controller we got a SIGSEGV. Seems unrelated, let's figure out who's responsible. >=20 > /home/kvm/SOURCES/qemu.git/qemu/hw/scsi> diff megasas.c > /home/kvm/SOURCES/qemu-2.6.1/hw/scsi/megasas.c 'diff -u' is much easier to read than plain 'diff' (ed script diffs have no context); in fact, 'git diff' uses -u format by default. Also, it's traditional to 'diff old new', but you flipped the argument, so the diff looks backwards. > 32c32 > < #include "qapi/error.h" > --- >> > 51c51,55 > : > 413a422,423 >> >> return bcd_time; > 1984c1994,1998 > < cmd->frame->header.cmd_status =3D frame_status; > --- >> if (cmd->frame) { >> cmd->frame->header.cmd_status =3D frame_status; >> } else { >> megasas_frame_set_cmd_status(s, frame_addr, frame_status);= >> } Here's a nicer way to get the above diff $ git diff v2.6.1 v2.7.0 hw/scsi/megasas.c at which point 'git gui blame hw/scsi/megasas.c' shows that it was commit 8cc46787, by Paolo, that claimed that cmd->frame was non-NULL. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --cdsxVWK4O8gumqtTRTFh40pgxRTvjbQx0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX0YLhAAoJEKeha0olJ0NqVQYH/2WeAiv3FvctFk/0+wxl/Uhr 9+LV6KAIo/qkpLbknySHDOy1F46fB814+9uWyZ7ED4VyAD+Bv4yIZvp9mEoam3Sr tRW963ShBqqBQ13EhIoHL+D5ATc5N23Z9Lhm3rVVBr/j+/eiXwfy4/DZW7AjS+/h Mv67uw3g/WLrHoF+S2RR5adNKwog58zGDqrUK3F1Y+cynkgcG4AHgM8yLlgWpLjb 8x1MEIMAwsse7KyTJSqB70EOddWna7QnNg9BFb842i4Lq37BJAWoKmCTqRircNgl NCuOjamqUIZO0+CC4TpAb2ML9n4CXAHBHBro18TFXxzCsUc4BFOC4/ZeGPYHxCo= =rb7t -----END PGP SIGNATURE----- --cdsxVWK4O8gumqtTRTFh40pgxRTvjbQx0--