From 756ce0e50cf01e3939393c7596140fc4dc6823bf Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 4 Oct 2021 15:17:35 +0200 Subject: [PATCH] qemuBuildIoEventFdStr: Always assume support for QEMU_CAPS_VIRTIO_IOEVENTFD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- src/qemu/qemu_command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 2bf9e35663..d0410a9f23 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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;