]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow specifying zero discard granularity for block devices
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 17 Jul 2025 13:12:40 +0000 (15:12 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 17 Jul 2025 13:42:28 +0000 (15:42 +0200)
commit680ee0e7d18866c4f41774dd8368902470a14a07
treee793163e1c3fafd7793d2410b2dd0e9854bdbf4b
parent3451987fca7c89a1aa9c5b0701471b6bc23dda3d
Allow specifying zero discard granularity for block devices

That allows for disabling discard in a way that some guest
OSes (e.g. Windows) understand and do not try to trim the disk.

Resolves: https://issues.redhat.com/browse/RHEL-72006
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/domain_validate.c
src/qemu/qemu_command.c
tests/qemuxmlconfdata/disk-blockio-no-discard.x86_64-latest.args [new file with mode: 0644]
tests/qemuxmlconfdata/disk-blockio-no-discard.x86_64-latest.xml [new file with mode: 0644]
tests/qemuxmlconfdata/disk-blockio-no-discard.xml [new file with mode: 0644]
tests/qemuxmlconftest.c