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

Daniel P. Berrange berrange at redhat.com
Fri Mar 14 14:35:49 UTC 2014


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




More information about the libvir-list mailing list