mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemuBuildIoEventFdStr: Always assume support for QEMU_CAPS_VIRTIO_IOEVENTFD
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>
This commit is contained in:
parent
6c3a85648c
commit
756ce0e50c
@ -1346,9 +1346,9 @@ qemuBuildRomStr(virBuffer *buf,
|
|||||||
static int
|
static int
|
||||||
qemuBuildIoEventFdStr(virBuffer *buf,
|
qemuBuildIoEventFdStr(virBuffer *buf,
|
||||||
virTristateSwitch use,
|
virTristateSwitch use,
|
||||||
virQEMUCaps *qemuCaps)
|
virQEMUCaps *qemuCaps G_GNUC_UNUSED)
|
||||||
{
|
{
|
||||||
if (use && virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_IOEVENTFD))
|
if (use)
|
||||||
virBufferAsprintf(buf, ",ioeventfd=%s",
|
virBufferAsprintf(buf, ",ioeventfd=%s",
|
||||||
virTristateSwitchTypeToString(use));
|
virTristateSwitchTypeToString(use));
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user