[uml-user] UML <-> host communication

2015-10-12 Thread Ricardo Nunes
Hi. I'm trying to create a 2 way communication channel between a kernel driver in UML with a process at the host. What's the best way to do it? I started by trying to create a pipe ath the host, share in hostfs but I can't get any communication (write on pipe in UML, nothing appears in host). Plu

Re: [uml-user] UML <-> host communication

2015-10-12 Thread Balaco Baco
Interesting idea! :) But why not using "real" network connections? If you keep a connection open, you will have no "big" overhead besides openning it the first time (or reopenning, if eventually needed). You will be able to choose the format of each message contents, as desired. And the communicat

Re: [uml-user] UML <-> host communication

2015-10-12 Thread Ricardo Nunes
Right now I'm just finding for a way to make it work, so slow communications will also be acceptable for now. This is for device emulation, so a lot of memory reads and writes. Better slower then non existent. If I use a tuntap, a socket or something like that, what API can I use to communicate st

Re: [uml-user] UML <-> host communication

2015-10-12 Thread Richard Weinberger
On Mon, Oct 12, 2015 at 6:21 PM, Ricardo Nunes wrote: > Right now I'm just finding for a way to make it work, so slow communications > will also be acceptable for now. This is for device emulation, so a lot of > memory reads and writes. Better slower then non existent. > > If I use a tuntap, a soc