Prepare for reuse of the code for 'virtio-scsi' controller.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
static virJSONValue *
-qemuBuildDiskDeviceIothreadMappingProps(GSList *iothreads)
+qemuBuildIothreadMappingProps(GSList *iothreads)
{
g_autoptr(virJSONValue) ret = virJSONValueNewArray();
GSList *n;
iothread = g_strdup_printf("iothread%u", disk->iothread);
if (disk->iothreads &&
- !(iothreadMapping = qemuBuildDiskDeviceIothreadMappingProps(disk->iothreads)))
+ !(iothreadMapping = qemuBuildIothreadMappingProps(disk->iothreads)))
return NULL;
if (virStorageSourceGetActualType(disk->src) != VIR_STORAGE_TYPE_VHOST_USER &&