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
pgpnsj0KwnVvS.pgp
Description: PGP signature