Re: [PATCH v4 4/9] qemu: Add vhost-scsi string for -device parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[...]

>  
>  void
> +qemuHostdevReAttachSCSIVHostDevices(virQEMUDriverPtr driver,
> +                                    const char *name,
> +                                    virDomainHostdevDefPtr *hostdevs,
> +                                    int nhostdevs)
> +{
> +    size_t i;
> +    virHostdevManagerPtr hostdev_mgr = driver->hostdevMgr;
> +
> +    for (i = 0; i < nhostdevs; i++) {
> +        virDomainHostdevDefPtr hostdev = hostdevs[i];
> +        virDomainDeviceDef dev;
> +
> +        dev.type = VIR_DOMAIN_DEVICE_HOSTDEV;
> +        dev.data.hostdev = hostdev;
> +
> +        ignore_value(qemuRemoveSharedDevice(driver, &dev, name));
> +    }

This whole loop won't be necessary, true?  Since this isn't shared (it
does nothing for now).

I can remove before pushing - just confirm my suspicion...

ACK,

John

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux