Hi all,
Jeff Dike wrote:
>>> What's needed is a little driver which looks like a socket inside UML,
>>> and which talks to a socket on the host, bridging between them. This
>>> would be useful for other things, such as making a host X socket
>>> available inside a UML that has no network
>> Is such a driver available/in the works?
> No, it's been talked about, but no one has done anything.
Well I tried to code something like that using a kernel thread that opens a
socket on the inside od the uml guest and connects to a socket on the
hostside. But I encountered some problems that I could noz solve and so I
gave up.
Problem 1.) How do I shutdown a kernel thread when the uml goes down? At the
moment my patched kernle gets stuck with 100% CPU usage when I trie to shut
down the uml kernel.
Problem 2.) How can I make sure that my kernel thread I startet _after_ the
networking stuff is inited? At the moment I start the kernel thread with a
__initcall and just do a sleep(30) in the thread.
Problem 3.) I can only create sockets in the "anonymous" namespace. The
normal namespace gives me some error which I don't rememeber right now but
I could find out what th errorcode was.
So if somebody could help me with this problem I'd be willing to put some
more work into this. Or I could post my tried on this list or by pm.
HTH,
Patrick "Petschge" Kilian
--
The Board views the endemic use of PowerPoint briefing slides instead of
technical papers as an illustration of the problematic methods of technical
communication at NASA.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
|