From ad86ffb35dd85fb72a1f21279de35739778b303b Mon Sep 17 00:00:00 2001 From: Malte Janduda Date: Sun, 21 Aug 2022 12:30:08 +0200 Subject: [PATCH] doc: virtio discard is supported since kernel 5.0 Signed-off-by: Malte Janduda --- doc/rbd/qemu-rbd.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/rbd/qemu-rbd.rst b/doc/rbd/qemu-rbd.rst index f5925d6c3531..281335ebe6a0 100644 --- a/doc/rbd/qemu-rbd.rst +++ b/doc/rbd/qemu-rbd.rst @@ -165,8 +165,7 @@ for the block device. To do this, you must specify a qemu -m 1024 -drive format=raw,file=rbd:data/squeeze,id=drive1,if=none \ -device driver=ide-hd,drive=drive1,discard_granularity=512 -Note that this uses the IDE driver. The virtio driver does not -support discard. +Note that this uses the IDE driver. The virtio driver supports discard since Linux kernel version 5.0. If using libvirt, edit your libvirt domain's configuration file using ``virsh edit`` to include the ``xmlns:qemu`` value. Then, add a ``qemu:commandline`` -- 2.47.3