aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index a486271..42252dd 100755
--- a/kvmx
+++ b/kvmx
@@ -547,6 +547,11 @@ function kvmx_up {
image_opts="-cdrom $image"
else
image_opts="-drive file=$image,if=$drive_interface"
+
+ # TRIM support
+ if [ "$image_discards" != "n" ]; then
+ image_opts="$image_opts,discard=unmap"
+ fi
fi
if [ ! -z "$virtio_rng" ]; then