From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP7v8-0001BQ-Kb for qemu-devel@nongnu.org; Wed, 03 Sep 2014 06:36:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XP7uy-0007PR-8t for qemu-devel@nongnu.org; Wed, 03 Sep 2014 06:36:10 -0400 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:65338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP7uy-0007P9-3M for qemu-devel@nongnu.org; Wed, 03 Sep 2014 06:36:00 -0400 Received: by mail-wg0-f47.google.com with SMTP id z12so8130026wgg.18 for ; Wed, 03 Sep 2014 03:35:58 -0700 (PDT) Date: Wed, 3 Sep 2014 11:35:54 +0100 From: Stefan Hajnoczi Message-ID: <20140903103554.GC28095@stefanha-thinkpad.redhat.com> References: <1587858E792C6C48ADD97BCB156E8ED031FB39CC67@APJ1XCHEVSPIN31.SYMC.SYMANTEC.COM> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="m51xatjYGsM+13rf" Content-Disposition: inline In-Reply-To: <1587858E792C6C48ADD97BCB156E8ED031FB39CC67@APJ1XCHEVSPIN31.SYMC.SYMANTEC.COM> Subject: Re: [Qemu-devel] Query regarding bdrv_co_discard List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sanjay Kumar2 Cc: "qemu-devel@nongnu.org" --m51xatjYGsM+13rf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Sep 02, 2014 at 02:09:44AM -0700, Sanjay Kumar2 wrote: > Please let me know how to test bdrv_co_discard interface. I mean what steps I need to do on KVM host and inside guest to do end to end testing of this interface. I have implemented a network protocol based block driver and defined bdrv_co_discard interface as well which free the blocks on the remote storage device. Use a virtio-scsi storage controller and then the guest can send SCSI discard commands. Make sure to use the -drive ...,discard=unmap option, otherwise discard commands are silently ignored. Stefan --m51xatjYGsM+13rf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUBu8KAAoJEJykq7OBq3PIce8H/RRyUpxh4nlCRZF1Fj1u0hPB BI20HWVDkmR9ybz8nfjSBGTEsghDkURe99Vgl3CscjYyZsSBZk2yf7dfpSccaHTk YVrmjWnlsYASCaff1hTnPsNjkHd272gRC/vpYOoLKH3Q4K6der/QFK37F+H2NQL7 4f5PEES+zkwj/k9bYTAzPyt34hwWjjLaQ+MA9hJ5P78ucrHgkdPZHmvDoCxHiEAi h/yILREUP5X3Atrets6sjgMVuGdE2J01u2kZh3ypHs3YKfLMR/XrO5fJOV199anY Qs8FQTRfKz58V/b5ldPAkFs2aRd5C8iLnPralul33iObS6Z6mcyH7W4CSoTA3zw= =BBV7 -----END PGP SIGNATURE----- --m51xatjYGsM+13rf--