]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Assume QEMU_CAPS_OBJECT_MEMORY_FILE_DISCARD
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Nov 2022 15:19:27 +0000 (16:19 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Nov 2022 14:27:42 +0000 (15:27 +0100)
commit8c0d43803b0e9aef83956bcb29262f2d72220d40
tree7c376b6f310955ef9338e9626f7b82d5661044d7
parent9d86ae4ca2ad785e276d79786d165495a2d5cd46
qemu: Assume QEMU_CAPS_OBJECT_MEMORY_FILE_DISCARD

Introduced in QEMU's commit of v2.11.0-rc0~95^2~9 the .discard
attribute of memory-backend-file is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/pages-dimm-discard.x86_64-latest.args
tests/qemuxml2argvdata/pages-discard-hugepages.x86_64-latest.args