Allan Jude 2cc8a524af Add VIRTIO_BLK_T_DISCARD support to the virtio-blk driver
If the hypervisor advertises support for the DISCARD command then the
guest can perform TRIM commands, freeing space on the backing store.

If VIRTIO_BLK_F_DISCARD is enabled, advertise DISKFLAG_CANDELETE

Tested with FreeBSD guests on bhyve and KVM

Reviewed by:	jhb
Tested by:	freqlabs
MFC after:	1 month
Relnotes:	yes
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D21708
2020-07-16 16:32:16 +00:00
..
2020-06-19 18:34:27 +00:00
2020-02-13 19:07:42 +00:00
2020-04-18 02:53:19 +00:00
2020-03-30 16:04:25 +00:00
2020-06-15 16:35:27 +00:00
2020-02-03 17:35:11 +00:00
2020-06-19 19:26:55 +00:00
2020-04-18 02:52:59 +00:00
2020-07-01 00:33:16 +00:00
2020-02-03 17:35:11 +00:00
2020-02-12 00:58:17 +00:00
2020-06-22 07:46:24 +00:00
2020-03-30 16:04:25 +00:00
2020-06-14 16:47:16 +00:00
2020-03-24 21:28:48 +00:00
2020-07-08 19:14:44 +00:00
2020-04-18 02:53:09 +00:00
2020-02-03 17:35:11 +00:00
2020-05-20 08:15:09 +00:00
2020-06-05 04:24:34 +00:00
2020-07-04 14:20:03 +00:00
2019-12-26 17:25:51 +00:00
2020-06-21 03:39:26 +00:00
2020-02-07 19:53:07 +00:00
2019-10-21 18:07:11 +00:00
2020-06-18 23:57:10 +00:00
2020-04-18 02:53:04 +00:00
2020-06-15 16:35:27 +00:00
2019-10-21 18:11:58 +00:00
2020-02-03 17:35:11 +00:00
2020-03-30 16:04:25 +00:00
2020-02-07 19:53:07 +00:00
2020-02-03 17:35:11 +00:00
2020-05-10 14:09:30 +00:00
2019-10-21 18:07:35 +00:00
2020-02-27 15:25:31 +00:00
2020-06-14 16:47:16 +00:00
2020-02-27 15:25:21 +00:00
2019-10-21 18:07:40 +00:00
2019-10-21 18:07:44 +00:00
2020-02-03 17:35:11 +00:00
2019-10-21 18:08:03 +00:00
2020-02-01 23:16:30 +00:00
2020-04-18 02:53:14 +00:00
2020-07-01 00:33:16 +00:00
2020-06-30 15:58:29 +00:00
2020-03-30 16:04:25 +00:00
2020-03-04 22:31:41 +00:00