mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
parent
4e9923da92
commit
8a5645d3f7
@ -5055,12 +5055,6 @@ qemuDomainHotplugModIOThread(virDomainObj *vm,
|
|||||||
qemuDomainObjPrivate *priv = vm->privateData;
|
qemuDomainObjPrivate *priv = vm->privateData;
|
||||||
int rc;
|
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);
|
qemuDomainObjEnterMonitor(vm);
|
||||||
|
|
||||||
rc = qemuMonitorSetIOThread(priv->mon, &iothread);
|
rc = qemuMonitorSetIOThread(priv->mon, &iothread);
|
||||||
|
Loading…
Reference in New Issue
Block a user