freebsd-dev/sys/dev/virtio
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
..
balloon virtio: Support MMIO bus for all devices 2020-05-06 23:31:30 +00:00
block Add VIRTIO_BLK_T_DISCARD support to the virtio-blk driver 2020-07-16 16:32:16 +00:00
console virtio: Support MMIO bus for all devices 2020-05-06 23:31:30 +00:00
mmio virtio_mmio: Negotiate the upper half of the feature bits too 2020-06-08 21:49:42 +00:00
network if_vtnet: let vtnet_rx_vq_intr() and vtnet_rxq_tq_intr() share code 2020-06-15 19:46:34 +00:00
pci [virtio] Fix r/w to PCI configuration area on big endian platforms 2020-02-05 20:39:18 +00:00
random virtio: Support MMIO bus for all devices 2020-05-06 23:31:30 +00:00
scsi virtio: Support MMIO bus for all devices 2020-05-06 23:31:30 +00:00
virtio_bus_if.m
virtio_config.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtio_ids.h
virtio_if.m
virtio_ring.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtio.c virtio: Support non-legacy network device and queue 2020-06-08 21:51:36 +00:00
virtio.h virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
virtqueue.c virtio: Support non-legacy network device and queue 2020-06-08 21:51:36 +00:00
virtqueue.h