qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Query regarding bdrv_co_discard


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] Query regarding bdrv_co_discard
Date: Wed, 3 Sep 2014 11:35:54 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

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

Attachment: pgpiPsrGzDcUL.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]