Re: [PATCH 2/3] qemu: XMLToNative: Don't open vhostfd

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

 



On Fri, Mar 14, 2014 at 08:03:27AM -0600, Eric Blake wrote:
> On 03/14/2014 07:42 AM, Daniel P. Berrange wrote:
> 
> > 
> > The point is to get something that works with the "native" tools. In
> > Xen world the goal was to create a valid /etc/xen/ config file, in
> > QEMU world the goal is to create an ARGV set you can use to launch
> > QEMU. So you are correct that we shouldn't generate ARGV that rely
> > on FD passing, since the user can't run those.
> 
> Maybe we could modify the output to give the full shell line, including
> redirections, as in:
> 
> qemu ... -use-of-fd 5 ... 5<>/path/to/file
> 
> But we still have to figure out how to pick fd numbers, and to modify
> our output to handle redirections...

I don't think we should be relying on shell magic in the args we
generate - I'd want something that can be directly used with execve()


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]