Osier Yang a7c4202cdd qemu: Support discard for disk
QEMU introduced "discard" option for drive since commit a9384aff53,

<...>
@var{discard} is one of "ignore" (or "off") or "unmap" (or "on") and
controls whether @dfn{discard} (also known as @dfn{trim} or @dfn{unmap})
requests are ignored or passed to the filesystem.  Some machine types
may not support discard requests.
</...>

This patch exposes the support in libvirt.

QEMU supported "discard" for "-drive" since v1.5.0-rc0:

% git tag --contains a9384aff53
contains
v1.5.0-rc0
v1.5.0-rc1

So this only detects the capability bit using virQEMUCapsProbeQMPCommandLine.
2013-05-15 19:01:00 +08:00
..
2012-04-02 09:33:54 -06:00
2012-09-17 14:59:37 -04:00
2013-05-13 17:24:18 +08:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2013-05-15 11:34:27 +08:00
2013-03-19 13:13:28 -06:00
2013-03-19 13:13:28 -06:00
2011-07-11 09:21:37 -06:00
2012-12-21 11:19:49 +00:00
2013-04-16 07:13:43 -04:00
2013-02-12 09:00:15 -07:00