qemu: Always assume support for QEMU_CAPS_IOTHREAD_POLLING

iothread polling mode and the corresponding properties were added in
qemu-2.9 ( 0d9d86fb4df4882b ). We can always assume that qemu supports
them.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2023-02-23 10:09:46 +01:00
parent 4e9923da92
commit 8a5645d3f7

View File

@ -5055,12 +5055,6 @@ qemuDomainHotplugModIOThread(virDomainObj *vm,
qemuDomainObjPrivate *priv = vm->privateData;
int rc;
if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_IOTHREAD_POLLING)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("IOThreads polling is not supported for this QEMU"));
return -1;
}
qemuDomainObjEnterMonitor(vm);
rc = qemuMonitorSetIOThread(priv->mon, &iothread);