]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuBuildIoEventFdStr: Always assume support for QEMU_CAPS_VIRTIO_IOEVENTFD
authorPeter Krempa <pkrempa@redhat.com>
Mon, 4 Oct 2021 13:17:35 +0000 (15:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:04 +0000 (10:26 +0200)
The support for the 'ioeventfd' knob of virtio devices was introduced by
QEMU commit 25db9ebe15125 contained in v0.14.0-rc0 and it can't be
compiled out. Thus libvirt can assume it's support and remove
conditional code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c

index 2bf9e35663e262bd5ec9d83d6b2f145aac576215..d0410a9f23fa9d6ba75c82dca95ba6128a9557e8 100644 (file)
@@ -1346,9 +1346,9 @@ qemuBuildRomStr(virBuffer *buf,
 static int
 qemuBuildIoEventFdStr(virBuffer *buf,
                       virTristateSwitch use,
-                      virQEMUCaps *qemuCaps)
+                      virQEMUCaps *qemuCaps G_GNUC_UNUSED)
 {
-    if (use && virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_IOEVENTFD))
+    if (use)
         virBufferAsprintf(buf, ",ioeventfd=%s",
                           virTristateSwitchTypeToString(use));
     return 0;