mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Always assume presence of QEMU_CAPS_VIRTIO_(BLK|NET)_EVENT_IDX
The 'event_idx' option for virtio devices was introduced by QEMU commit bcbabae8f which is contained in v0.15.0-rc0 and can't be compiled out, thus we don't need to conditionally enable it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
bc5c57ad7e
commit
ea0f408474
@ -2257,8 +2257,7 @@ qemuBuildDiskDeviceStr(const virDomainDef *def,
|
||||
virBufferAsprintf(&opt, ",iothread=iothread%u", disk->iothread);
|
||||
|
||||
qemuBuildIoEventFdStr(&opt, disk->ioeventfd, qemuCaps);
|
||||
if (disk->event_idx &&
|
||||
virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_BLK_EVENT_IDX)) {
|
||||
if (disk->event_idx) {
|
||||
virBufferAsprintf(&opt, ",event_idx=%s",
|
||||
virTristateSwitchTypeToString(disk->event_idx));
|
||||
}
|
||||
@ -3999,8 +3998,7 @@ qemuBuildNicDevStr(virDomainDef *def,
|
||||
}
|
||||
}
|
||||
qemuBuildIoEventFdStr(&buf, net->driver.virtio.ioeventfd, qemuCaps);
|
||||
if (net->driver.virtio.event_idx &&
|
||||
virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_NET_EVENT_IDX)) {
|
||||
if (net->driver.virtio.event_idx) {
|
||||
virBufferAsprintf(&buf, ",event_idx=%s",
|
||||
virTristateSwitchTypeToString(net->driver.virtio.event_idx));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user