]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow chardev of type 'file' for UML domains.
authorSoren Hansen <soren@linux2go.dk>
Mon, 23 Aug 2010 11:25:50 +0000 (13:25 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 24 Aug 2010 09:19:21 +0000 (11:19 +0200)
commit21dcce5364b940e06170a653680eef8038153897
tree291c4f3d98499c826d55c64836c0f53cbd614cc4
parent8c48743b9737ad4d246ab6043fd299316f9a2091
Allow chardev of type 'file' for UML domains.

Like the comment suggested, we just open the file and pass the file
descriptor to uml. The input "stream" is set to "null", since I couldn't
find any useful way to actually use a file for input for a chardev and
this also mimics what e.g. QEmu does internally.

Signed-off-by: Soren Hansen <soren@linux2go.dk>
src/uml/uml_conf.c
src/uml/uml_conf.h
src/uml/uml_driver.c