Received: from eggs.gnu.org ([2001:4830:134:3::10]:37552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz2Gw-0000LO-5t for qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz2Gu-0000yx-U6 for qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:00:10 -0400 References: <1469129688-22848-1-git-send-email-eblake@redhat.com> <1469129688-22848-5-git-send-email-eblake@redhat.com> <20160727072543.GF23258@ad.usersys.redhat.com> <5799704D.9060408@redhat.com> <18c31752-8399-1763-a42e-c2b924920b55@redhat.com> <12c8e895-f8ab-825f-82e7-4a2c8cc22de5@kamp.de> <9078195b-160a-e18f-b8ef-c9f2ba712416@redhat.com> <4cd56bb4-fa0d-493c-18b1-4cec0467a6bf@kamp.de> <567caf97-24bd-b5e6-a999-405ef01b2c21@redhat.com> <78e7e5d9-4f43-c50d-4531-de5c1a0e1a83@kamp.de> From: Eric Blake Message-ID: <25f42457-369e-152e-edce-44a4835c6c68@redhat.com> Date: Tue, 25 Oct 2016 08:59:57 -0500 MIME-Version: 1.0 In-Reply-To: <78e7e5d9-4f43-c50d-4531-de5c1a0e1a83@kamp.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lBbOX3Rcwva7uGNREBgcvLa9vkNhL9ApH" Subject: Re: [Qemu-devel] [PATCH 4/4] block: Cater to iscsi with non-power-of-2 discard List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , Paolo Bonzini , Fam Zheng Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Stefan Hajnoczi , Kevin Wolf , Max Reitz This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lBbOX3Rcwva7uGNREBgcvLa9vkNhL9ApH From: Eric Blake To: Peter Lieven , Paolo Bonzini , Fam Zheng Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Stefan Hajnoczi , Kevin Wolf , Max Reitz Message-ID: <25f42457-369e-152e-edce-44a4835c6c68@redhat.com> Subject: Re: [PATCH 4/4] block: Cater to iscsi with non-power-of-2 discard References: <1469129688-22848-1-git-send-email-eblake@redhat.com> <1469129688-22848-5-git-send-email-eblake@redhat.com> <20160727072543.GF23258@ad.usersys.redhat.com> <5799704D.9060408@redhat.com> <18c31752-8399-1763-a42e-c2b924920b55@redhat.com> <12c8e895-f8ab-825f-82e7-4a2c8cc22de5@kamp.de> <9078195b-160a-e18f-b8ef-c9f2ba712416@redhat.com> <4cd56bb4-fa0d-493c-18b1-4cec0467a6bf@kamp.de> <567caf97-24bd-b5e6-a999-405ef01b2c21@redhat.com> <78e7e5d9-4f43-c50d-4531-de5c1a0e1a83@kamp.de> In-Reply-To: <78e7e5d9-4f43-c50d-4531-de5c1a0e1a83@kamp.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/25/2016 07:42 AM, Peter Lieven wrote: >> >> But hey, that firmware is seriously weird. :) >=20 > Yes, so you would not change the new implementation? >=20 > Even if the discard is e.g. 1MB it could theretically be that internall= y > the device has a finer granularity. Its an optimal discard alignment > not the minimum required discard size. I think thats a difference. > It does not say I can't handle smaller discards. The firmware is probably technically buggy for advertising too large of a minimum granularity, if it can piece together smaller requests into a larger discard. If discards need to happen at a smaller granularity, the firmware (or kernel quirk system) should fix the advertisement to the actual granularity that it will honor. I don't see a reason to change qemu's current behavior. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --lBbOX3Rcwva7uGNREBgcvLa9vkNhL9ApH 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/ iQEcBAEBCAAGBQJYD2VdAAoJEKeha0olJ0NqE8kH/Rgzppz7mhCkBOkRrXCnKmE/ Rrp8OlwJeaTCopSB3pqV6ChuW8o4lhttq9zL3eNMn1ME6vx08CuiZuajnyFw8t1c eKpqpudvnB3YBfv7kp9xHYEPaC/DJ/5f3TQb6OduIhY8wqQjLewhMJ3QXAiZ5Ieh NUoZ5WT1u4zamK8cLy9VPOejBKNNJNMXU/tQ0Kr8ahnwavMRbxJj7a3rSABjFOP5 pgRkskLM/WYtB4/M6RNe0B+lSBcBcdTWtqrb+HkgOmYicsDiVQmfpGJnoT25OVIi gCW6lf1hmKA5yCvmY3iTPm6eO4Bl97FnTvT/9o10xlmfwHghOhmKCS1qBWbjrH8= =G/Lf -----END PGP SIGNATURE----- --lBbOX3Rcwva7uGNREBgcvLa9vkNhL9ApH--