Re: [PATCH 1/5] virhostdev: Move IOMMU and VFIO funcs from qemu

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

 



On Fri, Jun 20, 2014 at 04:19:06PM +0200, Michal Privoznik wrote:
> The functions in question are qemuHostdevHostSupportsPassthroughLegacy
> and qemuHostdevHostSupportsPassthroughVFIO. At the same time the
> functions are renamed to match 'vir' prefix instead of 'qemu' one.
> 

I'm not sure I see the reason for moving these functions ? They're
QEMU specific surely ?

eg

> @@ -1635,3 +1640,71 @@ virHostdevUpdateDomainActiveDevices(virHostdevManagerPtr mgr,
>  
>      return 0;
>  }
> +
> +#if HAVE_LINUX_KVM_H
> +bool
> +virHostdevHostSupportsPassthroughLegacy(void)
> +{
> +    int kvmfd = -1;
> +    bool ret = false;
> +
> +    if ((kvmfd = open("/dev/kvm", O_RDONLY)) < 0)
> +        goto cleanup;

is going to be useless for anything except QEMU driver.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
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]